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,
}
![](https://community.dataminer.services/wp-content/uploads/wp-user-manager-uploads/2022/12/IMG_20220210_152019-3.jpg)
thank you Jorge!