Model already exists-thermostat.json and spacemodel.json

Nikunj Phutela 86 Reputation points
2020-08-05T18:23:53.297+00:00

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)

Content:
{"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.(http://aka.ms/ModelListSwSmpl)"}}

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

15872-error2.png

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.
220 questions
{count} votes

Accepted answer
  1. QuantumCache 20,031 Reputation points
    2020-08-06T20:36:34.393+00:00

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

    Have look at the section just above this Catch errors

    16234-image.png

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

    16252-image.png


0 additional answers

Sort by: Most helpful