LogicAppsUX icon indicating copy to clipboard operation
LogicAppsUX copied to clipboard

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

Open nidubey1 opened this issue 2 years ago • 10 comments

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

  • Edge

Additional context

No response

nidubey1 avatar Jan 04 '24 14:01 nidubey1

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

nidubey1 avatar Jan 08 '24 06:01 nidubey1

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

rllyy97 avatar Jan 08 '24 15:01 rllyy97

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 [email protected]

rllyy97 avatar Jan 08 '24 16:01 rllyy97

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

nidubey1 avatar Jan 11 '24 15:01 nidubey1

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

rllyy97 avatar Jan 11 '24 21:01 rllyy97

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.

github-actions[bot] avatar Jan 14 '24 22:01 github-actions[bot]

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

nidubey1 avatar Jan 16 '24 06:01 nidubey1

Hi @rllyy97 ,do you have any update here?

nidubey1 avatar Jan 31 '24 09:01 nidubey1

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!

rllyy97 avatar Feb 05 '24 16:02 rllyy97

@nidubey1 - Are you still facing this issue? If yes, can you please give access to the app to [email protected]?

preetriti1 avatar May 02 '24 03:05 preetriti1

@nidubey1 I will have to close this issue as I didnt get any response on the above ask.. We have made lot of fixes and improvements in past few months, please try again if you still face this you can reopen this issue.

preetriti1 avatar Sep 12 '24 05:09 preetriti1