Unable to copy and paste the code in uipath one xmal to another

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

1 Like

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

@vhvinodsai

Looks like a compatibiltiy issue or a missing dependency

cheers

1 Like

@vhvinodsai

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.

1 Like

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:

  1. Check missing packages in manage packages in both projects.
  2. If the packages are same, compare and align all the package versions, they also restrict code from being copied.
  3. Check for imported name spaces and other project dependencies
  4. You can as well try copying the xaml file to the project and then use it.