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?
Ana Pinho [SLC] [DevOps Advocate] Selected answer as best 24th July 2024
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,
}
Ana Pinho [SLC] [DevOps Advocate] Posted new comment 24th July 2024

thank you Jorge!