Shortcuts consistently break on iPad

Looking at the image you’ve posted there is a problem with the variable is nothing is set.

Try adding shortcut input into the variable. I’ve run into a problem recently myself where I am passing input from one shortcut to another and the second shortcut has input like yours. It appears that this does not work as you actually have to add “Shortcut input” into the variable.