Hi all!
As their is no dependency the activities are transferred pasted to another workflow ?
No error yet all
Hi @vhvinodsai
Might be some temp. issue. For me working try to copy both way (like with hotkey and option) and try to past .
OR try to copy/past into chunk…
Happy Automation
This usually means that the xaml are in different projects, and that the project that you want to paste the code into is missing one of the dependencies that makes the activities you’re copying available
Make sure you have the same namespaces imported as your source workflow on targeted xaml.
If you are trying to copy from one project to another, make sure you have installed the same packages into both the projects.
Also you can’t copy Windows Legacy workflow code to Windows compatibility project workflow.
Hi @vhvinodsai
Yes, if there are no dependencies, you can copy/paste activities to another workflow and they should work fine.
Just make sure:
- Any variables, arguments, or imported namespaces used by the activities exist in the new workflow
- If the activities reference external files or assets, those paths are correct in the new workflow
If these are handled, no errors should occur.
Ensure your target XAML has the same required imports and dependencies of same version as the original workflow.
If you’re moving workflows between projects, confirm that both projects use the same activity packages.
Also note that workflows built in Windows-Legacy cannot be copied directly with Windows Modern.
Even I have come across such a scenario; you can try other below resolutions:
- Check missing packages in manage packages in both projects.
- If the packages are same, compare and align all the package versions, they also restrict code from being copied.
- Check for imported name spaces and other project dependencies
- You can as well try copying the xaml file to the project and then use it.