Azure / LogicAppsUX

https://learn.microsoft.com/azure/logic-apps
MIT License
71 stars 72 forks source link

Copy Pasting the Code View from one workflow to another causes the new workflow(created by copy pasting the code) desginer UI to fail in Standard Logic Apps #3935

Open nidubey1 opened 6 months ago

nidubey1 commented 6 months ago

Describe the Bug with repro steps

  1. Create a Standard Logic Apps and use the below workflow definition JSON to create a new Stateful Workflow in it(use the UI to create a similar design if possible) and save it. The workflow design will look something like this:

image

  1. Now create another Stateful Workflow in the Same Logic Apps, the go to it's code view and replace it with the definition from the workflow created in above step 1 and save it.
  2. Now go to the new workflow designer or go somewhere else say overview of workflow and come back to new workflow designer created in step 2 by copy paste in code view and try to do some changes, after some time following error screen will come in the designer:

image

  1. NOTE: Old designer works fine.

What type of Logic App Is this happening in?

Standard (Portal)

Are you using new designer or old designer

New Designer

Did you refer to the TSG before filing this issue? https://aka.ms/lauxtsg

Yes

Workflow JSON

{
    "definition": {
        "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
        "actions": {
            "Send_event": {
                "inputs": {
                    "body": {
                        "ContentData": "@{triggerBody()?['ContentData']}",
                        "Properties": {
                            "contentType": "application/json"
                        }
                    },
                    "host": {
                        "connection": {
                            "referenceName": "eventhubs-2"
                        }
                    },
                    "method": "post",
                    "path": "/@{encodeURIComponent('testehub')}/events",
                    "retryPolicy": {
                        "count": 4,
                        "interval": "PT3M",
                        "minimumInterval": "PT3M",
                        "type": "exponential"
                    }
                },
                "runAfter": {},
                "type": "ApiConnection"
            }
        },
        "contentVersion": "1.0.0.0",
        "metadata": {
            "ExportMetadata": {
                "ExportCorrelationId": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
                "ExportDate": "2023-09-08T10:15:34"
            }
        },
        "outputs": {},
        "triggers": {
            "When_events_are_available_in_Event_Hub": {
                "inputs": {
                    "host": {
                        "connection": {
                            "referenceName": "eventhubs-2"
                        }
                    },
                    "method": "get",
                    "path": "/@{encodeURIComponent('testehub')}/events/batch/head",
                    "queries": {
                        "consumerGroupName": "$Default",
                        "contentType": "application//json",
                        "maximumEventsCount": 100
                    }
                },
                "recurrence": {
                    "frequency": "Second",
                    "interval": 2
                },
                "splitOn": "@triggerBody()",
                "type": "ApiConnection"
            }
        }
    },
    "kind": "Stateful"
}

Screenshots or Videos

No response

Browser

Additional context

No response

nidubey1 commented 6 months ago

Hi Team is anyone checking on this? And do we have an ETA on the fix?

rllyy97 commented 6 months ago

Hi @nidubey1, I'll be looking into this issue today and let you know what I find

rllyy97 commented 6 months ago

I was able to copy + paste a workflow matching the one you originally posted like in your repro steps 1 and 2 without any issues. I suspect the part in step 3 where you say try to do some changes might be the cause of the issue, what changes are you trying to make to the workflow? And is the error screen showing up while making changes in designer, or making changes in code view then loading into designer? Getting access to the console and network logs would also be beneficial to me for pinpointing the issue, you can find how to do that here: https://purple-pebble-0e11de71e.1.azurestaticapps.net/tsg#collecting-console-errors If you do collect the console and network logs and are comfortable sharing them you can email the files to me at rileyevans@microsoft.com

nidubey1 commented 5 months ago

Hi @rllyy97 contributor access has been provided to your official id on the resource which has the repro: "/subscriptions/df36f4f9-0937-428e-9e7d-437124945424/resourceGroups/NDResourceGroup/providers/Microsoft.Web/sites/testLAND2Jan2024"

Original Workflow which works is: "testLAeHub" Copied code view workflow is: "testLAeHub-1"

To repro the issue you can either copy paste the original workflow in a new workflow or even go to the designer of the copied code view workflow: "testLAeHub-1" and click on trigger and select "minimum partition key" checkbox and click somewhere else, the issue will occur:

image
rllyy97 commented 5 months ago

I tried your repro steps on testLAeHub-1 and the parameters added as expected for me. I tried a few other things but I'm still unable to repro your issue, could you collect the console and network logs and send them to my email I mentioned before?

Showing the parameter added fine: image

github-actions[bot] commented 5 months ago

We requested more information to triage this issue. If the issue goes more than 7 days with no more information it'll be automatically closed.

nidubey1 commented 5 months ago

HI @rllyy97 , the requested network and console logs from repro have been shared over mail.

nidubey1 commented 5 months ago

Hi @rllyy97 ,do you have any update here?

rllyy97 commented 5 months ago

I don't have any updates yet sorry, we've been very busy with other work but we still have this on our radar 👍 I will make an effort to revisit this sometime this week if I have the bandwidth, or I'll have another engineer take a look Either way we'll provide updates here as soon as we have them, thanks for being patient with us!

preetriti1 commented 2 months ago

@nidubey1 - Are you still facing this issue? If yes, can you please give access to the app to psamband@microsoft.com?