My goal is to invoke a cloud flow from Microsoft Copilot Studio using copilot trigger and pass input data from copilot and a file on sharepoint to Generate text with GPT using prompt action and finally respond back to copilot.
The prompt in the GPT has two inputs - input data from copilot and context prompt in text format which is uploaded on sharepoint
When I try to save my flow after passing the input from copilot trigger action and file data from sharepoint to the GPT action, I'm facing the following error and I don't exactly why I'm seeing this as the Flow Checker shows no error.
The power flow's logic app flow template was invalid. The 'runAfter' property of template action 'Create_text_with_GPT_using_a_prompt' at line '1' and column '1042' contains non-existent action: 'Run_a_flow_from_Copilot'.
My flow looks like this

Can anybody help me what is causing this? Is the reason that the inputs for custom prompt are in different formats thats causing this error?
TIA