Using copy/paste on an "Initialize variable" action will cause the action to become uneditable and the flow cannot be saved because of the duplicate variable name.
Reproduction steps:
Clicking on the "Initialize variable 2" action will cause the same error. Clicking on Initialize variable 3 opens correctly. Oddly, creating three actions without the copy paste and using the same variable name will work, so it is something to do with copy/paste.
Note: I was not trying to create variables with the same name. I was just needing to initialize multiple variables to similar values, so was using copy/paste.
Here is the stacktrace from the console:
common.0c197b2f0f4c76099be0.2.js:329 TypeError: Cannot read property 'enumValues' of undefined at t.i._renderSimpleDropdown (dropdown.js:24) at i._renderContent (dropdown.js:18) at t.render (defaulteditorcontrol.js:70) at Di (common.0c197b2f0f4c76099be0.2.js:329) at Oi (common.0c197b2f0f4c76099be0.2.js:329) at Ri (common.0c197b2f0f4c76099be0.2.js:329) at Ka (common.0c197b2f0f4c76099be0.2.js:329) at qa (common.0c197b2f0f4c76099be0.2.js:329) at Ds (common.0c197b2f0f4c76099be0.2.js:329) at Is (common.0c197b2f0f4c76099be0.2.js:329) pa @ common.0c197b2f0f4c76099be0.2.js:329 i.componentDidCatch.n.callback @ common.0c197b2f0f4c76099be0.2.js:329 oa @ common.0c197b2f0f4c76099be0.2.js:329 ra @ common.0c197b2f0f4c76099be0.2.js:329 Ua @ common.0c197b2f0f4c76099be0.2.js:329 Wa @ common.0c197b2f0f4c76099be0.2.js:329 (anonymous) @ common.0c197b2f0f4c76099be0.2.js:329 t.unstable_runWithPriority @ common.0c197b2f0f4c76099be0.2.js:338 Ns @ common.0c197b2f0f4c76099be0.2.js:329 Ds @ common.0c197b2f0f4c76099be0.2.js:329 Is @ common.0c197b2f0f4c76099be0.2.js:329 Cs @ common.0c197b2f0f4c76099be0.2.js:329 Qa @ common.0c197b2f0f4c76099be0.2.js:329 enqueueSetState @ common.0c197b2f0f4c76099be0.2.js:329 S.setState @ common.0c197b2f0f4c76099be0.2.js:321 t.handleViewStateChanged @ cardcontainer.js:450 e._emitChangeInternal @ designer.default.core.all.22c96141355d65fe274a473b67615845.2.min.js:1 g @ office-ui-fabric-react.f46fb7bb1fb837c558a1219a3be5b33d.2.min.js:16 f @ office-ui-fabric-react.f46fb7bb1fb837c558a1219a3be5b33d.2.min.js:16 (anonymous) @ office-ui-fabric-react.f46fb7bb1fb837c558a1219a3be5b33d.2.min.js:16 setTimeout (async) e.setTimeout @ office-ui-fabric-react.f46fb7bb1fb837c558a1219a3be5b33d.2.min.js:16 f @ office-ui-fabric-react.f46fb7bb1fb837c558a1219a3be5b33d.2.min.js:16 _ @ office-ui-fabric-react.f46fb7bb1fb837c558a1219a3be5b33d.2.min.js:16 e._setStateInternal @ designer.default.core.all.22c96141355d65fe274a473b67615845.2.min.js:1 e.setState @ designer.default.core.all.22c96141355d65fe274a473b67615845.2.min.js:1 t._handleToggleCollapse @ designer.default.core.all.22c96141355d65fe274a473b67615845.2.min.js:1 (anonymous) @ designer.default.core.all.22c96141355d65fe274a473b67615845.2.min.js:1 (anonymous) @ designer.default.core.all.22c96141355d65fe274a473b67615845.2.min.js:1 e._invokeCallback @ designer.default.core.all.22c96141355d65fe274a473b67615845.2.min.js:1 e.dispatch @ designer.default.core.all.22c96141355d65fe274a473b67615845.2.min.js:1 e.dispatch @ designer.default.core.all.22c96141355d65fe274a473b67615845.2.min.js:1 e.dispatch @ designer.default.core.all.22c96141355d65fe274a473b67615845.2.min.js:1 t.toggleCollapse @ designer.default.core.all.22c96141355d65fe274a473b67615845.2.min.js:1 t.handleCollapse @ cardcontainer.js:378 n._toggleCollapse @ _card.js:83 n._handleCollapse @ _card.js:27 (anonymous) @ common.0c197b2f0f4c76099be0.2.js:329 p @ common.0c197b2f0f4c76099be0.2.js:329 (anonymous) @ common.0c197b2f0f4c76099be0.2.js:329 w @ common.0c197b2f0f4c76099be0.2.js:329 I @ common.0c197b2f0f4c76099be0.2.js:329 k @ common.0c197b2f0f4c76099be0.2.js:329 N @ common.0c197b2f0f4c76099be0.2.js:329 Cn @ common.0c197b2f0f4c76099be0.2.js:329 As @ common.0c197b2f0f4c76099be0.2.js:329 Le @ common.0c197b2f0f4c76099be0.2.js:329 In @ common.0c197b2f0f4c76099be0.2.js:329 (anonymous) @ common.0c197b2f0f4c76099be0.2.js:329 t.unstable_runWithPriority @ common.0c197b2f0f4c76099be0.2.js:338 Ms @ common.0c197b2f0f4c76099be0.2.js:329 Tn @ common.0c197b2f0f4c76099be0.2.js:329
Hi @pcmccull,
There is a similar comment about your issue in the top of the blog: blog/introducing-clipboard-in-flow-designer-and-three-new-user-experience-updates/
And the MS Flow Staffs have aware of the bug with variables and working on a fix. You can keep continuous attention to update and review the progress of the follow-up.
Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
The issue in the first comment on that blog is not the same problem. In their case, the paste did not work. In my case the paste does work, but the bug will actually stop you from being able to save your work. This bug is much worse because the user will lose any unsaved work since you cannot fix the multiple variables with the same name error.
Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!
Power Platform release plan for the 2021 release wave 1 describes all new features releasing from April through September 2021.
User | Count |
---|---|
1 | |
1 | |
1 | |
1 | |
1 |