Unable to update temperature in digital twin not even manually.

Ankit Kumar Srivastava 0 Reputation points
2023-07-23T05:28:12.82+00:00
Model:




Error on Update:

{
  "code": "ValidationFailed",
  "message": "Invalid twin specified",
  "details": [
    {
      "code": "ValidationFailed",
      "message": "Temperature does not appear on the DTDL for Twin."
    }
  ]
}


User's image

On update of other two field it's working fine:

On update of other two field it's working fine:

Output:

[
  {
    "op": "replace",
    "path": "/equipment",
    "value": "Crust1."
  },
  {
    "op": "replace",
    "path": "/CrustHardness",
    "value": "59"
  }
]
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.
211 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Sander van de Velde 27,046 Reputation points MVP
    2023-07-23T12:31:02.55+00:00

    Hello @Ankit Kumar Srivastava,

    Can you give the temperature a default value (eg. by altering it in the Twin explorer)?

    It's not clear if you perform an 'update' or 'add' patch but ADT is a bit sensitive about this.

    So give it a default temperature (like 0) and try again.


    If the response helped, do "Accept Answer". If it doesn't work, please let us know the progress. All community members with similar issues will benefit by doing so. Your contribution is highly appreciated.

    0 comments No comments