Copy a re-usable component to a library

Hi,
I created a sequence with arguments. Now I created a library.
Into the library folder I copied the sequence. I plan to publish this sequence as re-usable.

However when I am trying to run this sequence in the libraries folder before publishing it, I am getting an error saying that “The type or name space name” “Global constant name space” could not be found, are you missing a using directive?

Also, a how to resolve different publish error “could not publish project. Entry point could not be found.”

Can you help? Thank you,

For the Global Constant Name Space issue, remove “GlobalConstantsNamespace” and “GlobalVariablesNamespace” from your import - namespaces

1 Like

Please right click on your sequence from project panel in studio and then set as Main/entry point.

Then publish, it should work

@A_Learner

Library cannot have global variables so remove the names space from imports

Cheers

1 Like

Hi @A_Learner

make sure all referenced constants or namespaces are defined or imported in the library project. For the publish error, set the correct entry point (like main.xaml) in project settings before publishing.

Happy automation

@A_Learner You’re almost at the solution, just a few steps left to complete:

A Library project doesn’t support global variables. So, convert the global variables into Variables or Arguments as needed.

Then, debug the process, provide any required input arguments to run the library, and check the output. If everything looks fine, go ahead and deploy the library project.

Mark it as the solution if it helped you resolve your queries.