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

  • 9 September 2020
  • 1 reply
  • 34 views

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?

Reply