We have 2 different assets using the same external library. When we use them in one project, we can test the process in Pega Studio.
The problem occurs when we try to deploy package. We get the message: Error creating deployment package: ‘xxx’.
Information from PegaRobotStudio.log:
Error creating deployment package: ‘xxx’
System.InvalidOperationException: The part for the specified URI cannot be added because it is already in the package.
I checked that if we remove methods using this library from one asset and use this version in the project, package deployment is possible, there are no errors.
In Pega 19 there was no problem with this. If several projects in the solution used the same library, it was somehow solved when creating the package. The package included one copy of library, that all projects used.
Now for some reason it was impossible to use the same dll file in the package.
@PawelB84Would you please clarify? If I understand correctly, you have technically three projects. Two as assets and one using both assets (which I will refer to as “the project” while the others will be referred to as assets). Each asset references an external DLL you have created. When you attempt to deploy “the project”, you receive the error. Is that accurate?
@PawelB84 I suggest opening a support request. I was able to reproduce and can open a request as well, but it would be best coming from you as they can work with your exact assembly and communicate directly with you on timelines and resolution.