Last 10 entries (specifically all those in last 4 days) show as failed in Run History and have this message in the "Execute CSharp Script Code" action
InvokeFunctionFailed
The function 'CSharp_receive-email-test_execute_csharp_script_code.csx' failed with the error 'Exception binding parameter 'context'' when executing. Please verify function code is valid.
Again, no code was changed. And I can't make sense of that error.
Was there a breaking change made to Logic Apps inline C#?
Edit: there certainly was a breaking change.
Steps to reproduce:
- In designer, add a "Execute CSharp Script Code" step
- Copy the code sample from https://learn.microsoft.com/en-us/azure/logic-apps/add-run-csharp-scripts
- Run the workflow. It works
- Add to the script this statement: using System.Text.Json;
The error now occurs.
Edit: 5/5/25: The breaking change in was that a reference is now needed to use System.Text.Json
#r "System.Text.Json"

