Closed Andrew-Lahikainen closed 3 weeks ago
Hey @Andrew-Lahikainen thanks for raising this issue. I have taken a look at your workflow definition and found out a couple of things.
You have 2 actions that have the same name (Response_(404_-_key_not_found)
).
default
in the switch statementCase_(support)
case in the switch statementTerminate_(404_-_key_not_found)
and Set_variable_(ApiKey2)
actions are setup to be run after the Response_(404_-_key_not_found)
. Therefore the designer gets confused and messes it up the renderization. As it is tryingot to point different actions from different statements to a single actionsIn the meantime as a workaround could you please rename one of the Response_(404_-_key_not_found)
actions as well as the runAfter from the action that is in the same case that you are remaining the action?
I will take a look, try to repro it an see why this is happening
Thanks for taking a look, yeah that's my problem, there seems to be duplicates being added when I add another action of the same type even if I rename it.
I'll create a new action (let's say Response) and it will immediately inherit the name of the last Response action I used. I will then change the new Response's name (before saving). After I hit save, it will revert back to the initial name (which is the same as the previous Response action) and then it messes up the ui.
It's kinda hard to reproduce reliably, but I do encounter it quite often.
Hi @Andrew-Lahikainen I tried to repro the issue with different types of actions and scenarios, but I wasn't able to do it. I know there was a new deployment with fixes last week, those fixes might have solved this. I will keep trying to repro it and keep this issue open for the next week. Please let me know if this keeps happening.
If I reproduce on my end next week, would it be helpful to set up a Teams meeting so you can have a look?
I have not run into the issue this week, but I have been extremely careful to not break it.
The issue stems from creating an action of the same type in the same “session” (I.e. not closing the designer tab). Have you ever encountered the problem where the new action uses the name of the last action when you create it? If you forget to rename one of these actions and then save, it will break. Usually the designer will validate the action name to prevent duplicates, but since the user doesn’t touch the name input, it seems the validation doesn’t run and allows it to be saved.
On Sat, 28 Sep 2024 at 5:17 AM, Carlos Emiliano Castro Trejo < @.***> wrote:
Hi @Andrew-Lahikainen https://github.com/Andrew-Lahikainen I tried to repro the issue with different types of actions and scenarios, but I wasn't able to do it. I know there was a new deployment with fixes last week, those fixes might have solved this. I will keep trying to repro it and keep this issue open for the next week. Please let me know if this keeps happening.
— Reply to this email directly, view it on GitHub https://github.com/Azure/LogicAppsUX/issues/5702#issuecomment-2379731868, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACQU4MIWYAL5ROFCBA7MFADZYWHJ3AVCNFSM6AAAAABOM2B62CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNZZG4ZTCOBWHA . You are receiving this because you were mentioned.Message ID: @.***>
@Andrew-Lahikainen Yes that would be great, let me know if you face it again and we can sync on a Teams meeting.
Hi @Andrew-Lahikainen I will be closing this issue as it seems that is not happening anymore. Please let me know if its somehow is still repro on your end
This still happens for me
repro steps:
The UI should now be messed up.
Another things I've noticed which you might want to add as separate issues:
a) The array select action automatically stringifies json values if you touch an input.
repro steps:
{
"a": {
"aa": 1,
"ab": true,
"ac": "str"
},
"b": "str",
"c": true
}
{
"a" : "{"aa":1,"ab":true,"ac":"str"}",
"b" : "str",
"c" : "true"
}
b) Pressing save after creating a Initialize variable action causes ui to look like it's loading
repro steps:
c) Updating parameters.json with unsaved changes causes loss of work
repro steps:
d) Moving actions into a scope (and potentially for each, do until etc.) does not persist
repro steps:
Hi @Andrew-Lahikainen thanks for the details, I reopend it and I will take a look at it gain.
Hi @Andrew-Lahikainen. It tried to repro it but couldn't do it.
Is there any chance you can provide us your portal extension version when you open the designer? Here is a small guide on how you can do it Finding your session ID or portal extension version
Here is a video on me couldn't repro it. I will take a look on the other issues as well
https://github.com/user-attachments/assets/5930a47e-6108-48db-89de-10fb357d8deb
I'm using vscode, testing in a workspace with custom code that was created using the wizard.
ok ok, makes sense. I am able to repro the issue. I will take a look at it. Thanks!
Hi @Andrew-Lahikainen this PR https://github.com/Azure/LogicAppsUX/pull/5888 will solve the initial issue and the b) issue. About the other issues:
A) - I will create a separate issue to track this. - https://github.com/Azure/LogicAppsUX/issues/5890 C) - This is expected by design for now. When user switches from the designer view into any file view and the user updates it we try to reload the content of the webview with the latest content of the files, in this case workflow.json, parameters.json, etc. There is an ongoing effort on making this smarter and keep the work done so far. Also, if the customer doesn't update any file, the work in progress will not be lost. D)- I will create a separate issue to track this. - https://github.com/Azure/LogicAppsUX/issues/5891
Thank you so much for being so proactive with letting us know all your issues, we really appreciate it.
Brilliant, thanks for your hard work mate!
Describe the Bug with repro steps
It doesn't happen reliably, but:
EDIT: this seems to happen with multiple Response actions. So use a response inside the Default case and then add a Response directly after the switch statement.
EDIT2: I think this has something to do with the fact that actions get cached in some way. Often when I add an action of the same type, it will be named exactly the same as a previous action I created earlier (after renaming).
EDIT3: Sometimes hitting save multiple times can cause this too. I generally hit save 2-3 times because often any changes I make get reverted for some reason.
I think the cause might be that the runAfter property gets updated incorrectly. In my case it changed the
Switch
action to run after the new action inside theDefault
case. It even shuffled around all the actions inside the other cases.What type of Logic App Is this happening in?
Standard (VSCode)
Which operating system are you using?
Windows
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
Screenshots or Videos
No response
Browser
vscode
Additional context
No response