You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I try to update a twin which contains a property using a duration schema.
A have created an "Asset" model (based on opendigitaltwins-building Ontology models) via the Azure Digital Twins Explorer.
As you can see here I have a TestAsset with almost all values filled except these which uses the duration schema.
Then I have tried to update the twin with the "expectedLife" value as following: P1Y for 1 year duration. But it never works. I always get an error:
I have also tried to update the twin via the C# SDK, but I have the same issue.
{"error":{"code":"ValidationFailed","message":"Invalid twin specified","details":[{"code":"ValidationFailed","message":"Validation failed for expectedLife on Twin."}]}}
Am I using a wrong format for my duration value ? I have reported to the documentation which explains that the used format should be ISO 8601.
So I have followed this documentation to build my duration value. But nothing seems to working.
I have tried the following values to update my twin:
P1Y
P1Y0M0D
P1Y0M0W0D
The text was updated successfully, but these errors were encountered:
Hello @Lushkin, we have a bug with duration that is on our list to fix in the next parser update. I don't have an exact date on when that will be available but I will update this thread when we do. Most likely sometime this late spring or early summer.
just leaving this commemt to have a message when this gets solved. Ty Microsoft Team DT look amazing and very promising :) HOpe to see soon more features.
I try to update a twin which contains a property using a duration schema.
A have created an "Asset" model (based on opendigitaltwins-building Ontology models) via the Azure Digital Twins Explorer.
As you can see here I have a TestAsset with almost all values filled except these which uses the duration schema.
Then I have tried to update the twin with the "expectedLife" value as following: P1Y for 1 year duration. But it never works. I always get an error:
I have also tried to update the twin via the C# SDK, but I have the same issue.
Am I using a wrong format for my duration value ? I have reported to the documentation which explains that the used format should be ISO 8601.
So I have followed this documentation to build my duration value. But nothing seems to working.
I have tried the following values to update my twin:
The text was updated successfully, but these errors were encountered: