SindhuKodikal
Novice

Using the Powershell script for deployment in K2 Five, how to pass targetName for Service Instance?

Hi

I have created service Instance in the target server and the System name is different from the source. Hence in the xml config file, I tried to update the Service Instance Name as below:

 

<specificOptions>

<resolve name="FileSystem_Service1" namespace="urn:SourceCode/SmartObjects/ServiceInstance" action="UseExisting"  targetName="FileSystem_Service2" />

</specificOptions>

 

THis gives me an error :

20*personal details removed*T14:55:11.5243427Z Deploy-Package : Invalid configuration entry. The specified target item 
20*personal details removed*T14:55:11.5244272Z 'FileSystem_Service1' with namespace 
20*personal details removed*T14:55:11.5244592Z 'urn:SourceCode/SmartObjects/ServiceInstance' could not be found.
 
Even though I have given the targetName, it is still looking for FileSystem_Service1 in the target server.
 
Can you help me in letting me know how can I fix this issue?
0 Kudos
Reply
1 Reply
Nik1
Apprentice

Re: Using the Powershell script for deployment in K2 Five, how to pass targetName for Service Instance?

Please take a look at the following reference and see if that helps?


https://medium.com/k2-dev-en/k2-package-and-deployment-deploy-with-powershell-47245843b2d0

0 Kudos
Reply