Why my digital twins model DTDL v3 does not upload or appear?

Francisco Jesús Duarte Abellán 20 Reputation points
2023-07-19T21:28:13.67+00:00

Hello!

For some reason, I'm unable to upload a model to Azure Digital Twins with DTDL v3. It works fine with v2, but for some reason it doesn't work in v3.

I took this example from the documentation:

{
  "@context": "dtmi:dtdl:context;3",
  "@id": "dtmi:com:example:Thermostat;1",
  "@type": "Interface",
  "displayName": "Thermostat",
  "contents": [
    {
      "@type": "Telemetry",
      "name": "temp",
      "schema": "double"
    },
    {
      "@type": "Property",
      "name": "setPointTemp",
      "writable": true,
      "schema": "double"
    }
  ]
}

So, if I try to import it in ADT Model I receive the following console output:

*** Uploading selected models
- working on Sample.json

But i can't find the model after import also there aren't errors. It just doesn't appear.

And as I said, it works with v2. It's really weird since it's an example from the documentation.

https://github.com/Azure/opendigitaltwins-dtdl/blob/master/DTDL/v3/DTDL.v3.md

I have tried to change the id, and other stuff, but it stills doesn't work.

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
0 comments No comments
{count} votes

Accepted answer
  1. LeelaRajeshSayana-MSFT 16,046 Reputation points
    2023-07-22T01:48:59.5166667+00:00

    Hi @Francisco Jesús Duarte Abellán We got an update from the Product team regarding this issue. DTDL v3 support is currently limited in the ADT Explorer. In order to upload a Digital Twin model created using DTDL v3, you would need to leverage the following Rest API end point.

    https://{{ADTHostname}}/models?api-version=2020-10-31
    

    You can then view the uploaded model by invoking the API end point https://{{ADTHostname}}/models?api-version=2020-10-31 or https://{{digitaltwins-hostname}}/models/{{model-id}}?api-version=2020-10-31

    Please note that Viewing of v3 models in the Azure Digital Twin Explorer is also limited.

    Here is a resource How to send requests to the Azure Digital Twins APIs using Postman that will provide more details on how to use the Rest API.

    We will also make sure to update the public documentation on DTDL v3 to reflect the following message.

    enter image description here

    Hope this answers your question. Please let us know if you need any further details on this.

    Hope this answers your question. Please let us know if you need any further details on this.


    If the response helped, please do click Accept Answer and Yes for the answer provided. Doing so would help other community members with similar issue identify the solution. I highly appreciate your contribution to the community.

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Sander van de Velde | MVP 33,136 Reputation points MVP
    2023-07-19T22:18:03.07+00:00

    Hello @Francisco Jesús Duarte Abellán ,

    I can confirm I get the same (negative) result.

    I tried this with both an existing and new ADT environment in the West Europe region.

    I will ask around for an update on this one.

    1 person found this answer 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.