Cannot create multiple rooms on one floor

Nikunj Phutela 86 Reputation points
2020-08-05T18:22:17.213+00:00

Whilst creating the client app, the demo only shows us how to create a digital twin with 1 floor, 1 room and 1 thermostat, but for our application we require multiple such rooms and thermostats on one given floor. Whilst creating more than one room, I encounter an error which says:
Error 400: Service request failed.
Status: 400 (Bad Request)

Content:
{"error":{"code":"InvalidRelationshipData","message":"$targetId 'room101' cannot be modified. Please provide valid relationship data. See documentation on managing relationships http://aka.ms/adtv2twins."}}

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

15901-error1.png

Azure IoT
Azure IoT
A category of Azure services for internet of things devices.
401 questions
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.
231 questions
{count} votes

Accepted answer
  1. QuantumCache 20,271 Reputation points
    2020-08-12T22:18:37.213+00:00

    Hello @Nikunj Phutela ,

    Content:
    {"error":{"code":"InvalidRelationshipData","message":"$targetId 'room101' cannot be modified. Please provide valid relationship data. See documentation on managing relationships http://aka.ms/adtv2twins.";}}

    Please verify that there are no duplicates or missing data.

    Also please note that we can not create duplicate Twin data, please remove the earlier Data or create a new Twin Data.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.