Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Azure Digital Twins have a maximum size of 32K. Therefore UDTs which exceed that limit will result in the Digital Twin not being created in Azure.
  • UDT Tag and Property names that result in creating Azure Digital Twin Measurements and Attributes name, you must follow the regex expression pattern
    • ^[a-zA-Z](?:[a-zA-Z0-9_]*[a-zA-Z0-9])?$ (for more information on regex expression patterns go to https://regexr.com)

...

Editing User Defined Types (UDTs)

Due to caching within Azure when editing models which may take 10-15 minutes or longer, see Azure Digital Twins - Manage DTDL models, the recommended approach for when a UDT at the Edge requires modification is to use versioning in the UDT name.

Delete the Digital Twin instance(s) using this model. 

Tip
You can use the query SELECT * FROM digitaltwins DT WHERE IS_OF_MODEL(DT, 'dtmi:domain:modelname;1', exact) to find all digital twins using the model

Replicate the UDT adding a version number to the name ie. UDT_name_1.0.0. In your UDT Definitions you will now have both the original UDT and the modified one.  For each of your tags using this original UDT, edit these to use the Parent Type of your modified UDT and refresh Transmission.

A new Azure Digital Twin model will be created along with the associated Digital Twin(s) for that model. 

...

Nested/Hierarchical User Defined Types (UDTs)

...