question

NikunjPhutela-3837 avatar image
1 Vote"
NikunjPhutela-3837 asked ·

Cannot create multiple rooms on one floor

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-digital-twins
error1.png (32.5 KiB)
· 7
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello @NikunjPhutela-3837 , Thanks for reaching out to us! could you please let us know the exact documentation you have followed for this sample?
Is this the question in continuation with your other question?


0 Votes 0 ·

Yes, it is in continuation to the other question. The same documentation was followed for both the samples(https://docs.microsoft.com/en-us/azure/digital-twins/tutorial-end-to-end), and even for the newest question, which I have mentioned in the query.
@SatishBoddu-MSFT

0 Votes 0 ·

Hello @NikunjPhutela-3837 , Just Checking back, are you still stuck in this issue? Please let us know if you need further help in this matter.

0 Votes 0 ·

Hello @SatishBoddu, I have figured out this error, thank you for your help!

0 Votes 0 ·
Show more comments

1 Answer

SatishBoddu-MSFT avatar image
1 Vote"
SatishBoddu-MSFT answered ·

Hello @NikunjPhutela-3837 ,

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.

·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.