A device group with the same name already exists

We are working on a project for an internal development that uses Milestone MIP SDK in order to manage our Milestone XProtect Corporate system and access video and recordings.

Right now, we are in the process to develop a web interface that allow the usser to add new cameras into our Management/Recording Servers and we are experiencing some issues.

First of all, we create a camera group using SDK. The group adds well. Then we add another group for another device (ie: microphone, input ..) with the same name and It’s returning back the following error:

VideoOS.Platform.ArgumentMIPException: Could not create the device group. A device group with the same name already exists. —> System.ServiceModel.FaultException`1[VideoOS.ConfigurationApi.ClientService.ArgumentExceptionFault]: Could not create the device group. A device group with the same name already exists.

Before adding it, we verify that this name (for this particular device) it does not exist. And the strangest thing is that from the Management Client we are able to create groups with same name without any problem.

I will appreciate your help on this.

Best Regards.

Pablo Baustian.

I cannot reproduce the behavior you describe.

What version is the XProtect Corporate?

Hi Bo, thanks for the quick response. I am using Milestone XProtect Corporate 2016 R3 and our application is compiled using SDK last available version.

Now I could reproduce. I was also able to find a bug report describing the issue. The issue was fixed in XProtect Corporate 2017R1 (and newer), there is no fix for 2016R3. You will have to either upgrade the XProtect version or workaround by using different names for device groups of different types.

Thanks Bo. I will modify the logic for group creation then. If some other issues arise I will let you know.

Thanks a lot for your help. :slight_smile:

Regards.