Hi everyone,
I'm trying to update a service using the SLNet call TryCreateServiceMessage with the option isReapply=true.
However, I'm always getting: Invalid value for 'Service Name': Another service or service template with this name already exists
It looks like it's trying to create again the same service and not updating it as it should. Any ideas?
Hi Ana,
When re-applying you need to pass an extra TCSExtraData object with the service ID:
new TCSExtraData
{
Name = "serviceID",
Value = string.Format("{0}/{1}", serviceInfo.DataMinerID, serviceInfo.ElementID),
IsFromOriginalService = false,
Options = TCSExtraData.TCSExtraDataOptions.None,
}
thank you Jorge!