Open SamDillenio opened 1 year ago
Thank you for your feedback. This has been routed to the support team for assistance.
Adding Service team to look into this.
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @johngallardo @efriesner @abhinav-ghai @Aashish93-stack @sjiherzig @Satya-Kolluri.
I did not find any anomaly so far. If the issue is persistent, please create a ticket on the Azure Portal with more details.
Library name and version
Azure.DigitalTwins.Core version 1.4.0
Describe the bug
We are using the Azure Digital Twins Client to query the ADT. If we add or delete an two nodes with an edge between them, we are encountering an issue. The creation of the first node goes without any problem, but as soon as we try to add a relationship to the newly created node, it sometimes fails with the error that the twin does not exist. The same goes for deleting a twin. We first delete all the relationships of the twin and then delete the twin itself. We sometimes receive this error: {"error":{"code":"RelationshipsNotDeleted","message":"Twin has active relationships. Cannot delete a twin unless all the relationships are deleted. Please ensure that the active relationships on the twin are deleted. See section on retrieving relationships https://aka.ms/adtv2twins."}}
This does not happen when we use the CLI for the same scenario. How can we solve this?
Expected behavior
When the "async" calls return, we can be sure that the following call encounters a state of the DT that resambles the calls.
Actual behavior
The DT behaves "evantually consistant".
Reproduction Steps
Environment
No response