Input variables for function. Error: input.variables: Variable definitions are missing

Are you using the $app prefix? Try to not use that and see if it works.