Model already exists-thermostat.json and spacemodel.json

Nikunj Phutela 81 Reputation points

During the creation of the client app, where on submitting the thermostatModel.json, and the SpaceModel.json, I encounter an error which says:
Submitting models: ThermostatModel.json, SpaceModel.json...
Response 409: Service request failed.
Status: 409 (Conflict)

{"error":{"code":"ModelAlreadyExists","message":"Model with same ID already exists dtmi:contosocom:DigitalTwins:Thermostat;1,dtmi:contosocom:DigitalTwins:Space;1. Use Model_List API to view models that already exist. See the Swagger example.("}}

Strict-Transport-Security: REDACTED
Date: Wed, 05 Aug 2020 10:32:11 GMT
Content-Length: 275
Content-Type: application/json; charset=utf-8


Azure Digital Twins
Azure Digital Twins
An Azure platform that is used to create digital representations of real-world things, places, business processes, and people.
121 questions
{count} votes

Accepted answer
  1. Satish 13,631 Reputation points Microsoft Employee

    Hello @Nikunj Phutela , Did you tried to run the app for the second time?

    Have look at the section just above this Catch errors


    I can repro the issue, the reason is running twice the same Model.


0 additional answers

Sort by: Most helpful