I have been deploying a recently completed project to Live.
This involved Exporting & Importing my App between the 2 Environments, and Creating all the required SQL Tables and Stored Procedures.
I had to edit all the flows to change the Connection in the Execute stored procedure control to point to the live database.
When this particular flow is run from the App, it fails with the following error:
Unable to process template language expressions in action 'Execute_stored_procedure_(V2)' inputs at line '1' and column '2137': 'The template language expression 'json(decodeBase64(triggerOutputs().headers['X-MS-APIM-Tokens']))['$connections']['shared_sql_1']['connectionId']' cannot be evaluated because property 'shared_sql_1' doesn't exist, available properties are 'shared_sql'. Please see https://aka.ms/logicexpressions for usage details.'.
This stored procedure is doing an insert.
I am getting similar errors from other stored procedures, only line and column numbers change.
The Flow works when I run Test (in the new environment) but not when run from the App.
What is the problem?