azureazure-logic-apps

Error saving JavaScript code in Logic App despite selecting an integration account


I have a workflow in which I want to execute some JavaScript code. For this example, I’m using the following code:

enter image description here

However, when I try to save the workflow, the following error appears:

enter image description here

I don’t understand the cause of this issue, as I have already selected an integration account in the Logic App - Workflow settings.

What am I missing?

1º Edit: Resources are on same location enter image description here


Solution

  • The only solution I found to resolve this issue was to change the integration account to a different Azure region. For example, using "Spain Central" always resulted in this error. However, creating a new integration account in "North Europe" worked immediately.

    Additionally, make sure that the Logic App is also located in the same Azure region as the integration account. If they are in different regions, this can cause issues as well.

    It seems there might be some limitations or inconsistencies depending on the region. This should be documented by Microsoft to prevent users from wasting time testing multiple scenarios just to find a working one.