I'm working on an Edge device in IoT Central. I have saved my deployment template JSON from the IoT Hub I was using and uploaded that to a new device template in Central. After that I took the following steps:
- Created an interface with telemetry for each module
- Added two views that display graphs and tiles
- Published the template (all goes well)
- Connected the device, data is being sent and displayed correctly!
- I notice I gave the wrong name to one of the views
- I go to the original template and hit Verion, to create a v2
- I change the name of the view, I hit save and publish
Now after this I remove the graph that is on that view and save again, it works just fine. I would love some pointers in what I'm doing wrong. Some more logging and info:
Pricing plan: Standard 2
Location: Europe
Version: 3
Template: iotc-pnp-preview @ 1.0.0
Browser: Chrome
Logs shown in dev tools when the error occurs. A POST was made to
https://<redacted>.azureiotcentral.com/_web/edgeManagement/applications/<redacted>/modelDefinitions/<redacted>/publish
HTTP STATUS 400
{"context":{"errors":"{\"urn:njzeembs0l9:d7tawbtd1bo:9xyk69m49:tiles:k4sdlwntkefv:dataSources:hnnkev2few\":[{\"instanceId\":\"urn:njzeembs0l9:d7tawbtd1bo:9xyk69m49:tiles:k4sdlwntkefv:dataSources:hnnkev2few\",\"errorCode\":\"400.805.006.106\",\"message\":\"TileDataSource property 'capabilitySchema' has invalid reference(s). Following references do not exist or are of not supported types: Unknown\",\"propertyName\":\"vertex\"}],\"urn:njzeembs0l9:d7tawbtd1bo:9xyk69m49:tiles:k4sdlwntkefv:dataSources:z99yd93koqti\":[{\"instanceId\":\"urn:njzeembs0l9:d7tawbtd1bo:9xyk69m49:tiles:k4sdlwntkefv:dataSources:z99yd93koqti\",\"errorCode\":\"400.805.006.106\",\"message\":\"TileDataSource property 'capabilitySchema' has invalid reference(s). Following references do not exist or are of not supported types: Unknown\",\"propertyName\":\"vertex\"}],\"urn:njzeembs0l9:d7tawbtd1bo:9xyk69m49:tiles:k4sdlwntkefv:dataSources:hkju5jfdtj\":[{\"instanceId\":\"urn:njzeembs0l9:d7tawbtd1bo:9xyk69m49:tiles:k4sdlwntkefv:dataSources:hkju5jfdtj\",\"errorCode\":\"400.805.006.106\",\"message\":\"TileDataSource property 'capabilitySchema' has invalid reference(s). Following references do not exist or are of not supported types: Unknown\",\"propertyName\":\"vertex\"}],\"urn:njzeembs0l9:d7tawbtd1bo:9xyk69m49:tiles:d4u1qyg4sj8m:dataSources:zfaqomnbrks\":[{\"instanceId\":\"urn:njzeembs0l9:d7tawbtd1bo:9xyk69m49:tiles:d4u1qyg4sj8m:dataSources:zfaqomnbrks\",\"errorCode\":\"400.805.006.106\",\"message\":\"TileDataSource property 'capabilitySchema' has invalid reference(s). Following references do not exist or are of not supported types: Unknown\",\"propertyName\":\"vertex\"}],\"urn:njzeembs0l9:d7tawbtd1bo:9xyk69m49:tiles:d4u1qyg4sj8m:dataSources:jxcvrzilkcx\":[{\"instanceId\":\"urn:njzeembs0l9:d7tawbtd1bo:9xyk69m49:tiles:d4u1qyg4sj8m:dataSources:jxcvrzilkcx\",\"errorCode\":\"400.805.006.106\",\"message\":\"TileDataSource property 'capabilitySchema' has invalid reference(s). Following references do not exist or are of not supported types: Unknown\",\"propertyName\":\"vertex\"}],\"urn:njzeembs0l9:d7tawbtd1bo:9xyk69m49:tiles:d4u1qyg4sj8m:dataSources:q2kdytuvqt\":[{\"instanceId\":\"urn:njzeembs0l9:d7tawbtd1bo:9xyk69m49:tiles:d4u1qyg4sj8m:dataSources:q2kdytuvqt\",\"errorCode\":\"400.805.006.106\",\"message\":\"TileDataSource property 'capabilitySchema' has invalid reference(s). Following references do not exist or are of not supported types: Unknown\",\"propertyName\":\"vertex\"}]}"},"code":"400.470.006.308","message":"Encountered one or more validation errors: {\"urn:njzeembs0l9:d7tawbtd1bo:9xyk69m49:tiles:k4sdlwntkefv:dataSources:hnnkev2few\":[{\"instanceId\":\"urn:njzeembs0l9:d7tawbtd1bo:9xyk69m49:tiles:k4sdlwntkefv:dataSources:hnnkev2few\",\"errorCode\":\"400.805.006.106\",\"message\":\"TileDataSource property 'capabilitySchema' has invalid reference(s). Following references do not exist or are of not supported types: Unknown\",\"propertyName\":\"vertex\"}],\"urn:njzeembs0l9:d7tawbtd1bo:9xyk69m49:tiles:k4sdlwntkefv:dataSources:z99yd93koqti\":[{\"instanceId\":\"urn:njzeembs0l9:d7tawbtd1bo:9xyk69m49:tiles:k4sdlwntkefv:dataSources:z99yd93koqti\",\"errorCode\":\"400.805.006.106\",\"message\":\"TileDataSource property 'capabilitySchema' has invalid reference(s). Following references do not exist or are of not supported types: Unknown\",\"propertyName\":\"vertex\"}],\"urn:njzeembs0l9:d7tawbtd1bo:9xyk69m49:tiles:k4sdlwntkefv:dataSources:hkju5jfdtj\":[{\"instanceId\":\"urn:njzeembs0l9:d7tawbtd1bo:9xyk69m49:tiles:k4sdlwntkefv:dataSources:hkju5jfdtj\",\"errorCode\":\"400.805.006.106\",\"message\":\"TileDataSource property 'capabilitySchema' has invalid reference(s). Following references do not exist or are of not supported types: Unknown\",\"propertyName\":\"vertex\"}],\"urn:njzeembs0l9:d7tawbtd1bo:9xyk69m49:tiles:d4u1qyg4sj8m:dataSources:zfaqomnbrks\":[{\"instanceId\":\"urn:njzeembs0l9:d7tawbtd1bo:9xyk69m49:tiles:d4u1qyg4sj8m:dataSources:zfaqomnbrks\",\"errorCode\":\"400.805.006.106\",\"message\":\"TileDataSource property 'capabilitySchema' has invalid reference(s). Following references do not exist or are of not supported types: Unknown\",\"propertyName\":\"vertex\"}],\"urn:njzeembs0l9:d7tawbtd1bo:9xyk69m49:tiles:d4u1qyg4sj8m:dataSources:jxcvrzilkcx\":[{\"instanceId\":\"urn:njzeembs0l9:d7tawbtd1bo:9xyk69m49:tiles:d4u1qyg4sj8m:dataSources:jxcvrzilkcx\",\"errorCode\":\"400.805.006.106\",\"message\":\"TileDataSource property 'capabilitySchema' has invalid reference(s). Following references do not exist or are of not supported types: Unknown\",\"propertyName\":\"vertex\"}],\"urn:njzeembs0l9:d7tawbtd1bo:9xyk69m49:tiles:d4u1qyg4sj8m:dataSources:q2kdytuvqt\":[{\"instanceId\":\"urn:njzeembs0l9:d7tawbtd1bo:9xyk69m49:tiles:d4u1qyg4sj8m:dataSources:q2kdytuvqt\",\"errorCode\":\"400.805.006.106\",\"message\":\"TileDataSource property 'capabilitySchema' has invalid reference(s). Following references do not exist or are of not supported types: Unknown\",\"propertyName\":\"vertex\"}]}"}
Edit:
I notice it's happening with one graph in particular. The graph is showing telemetry from an Interface in the capability model that has 3 Objects with 2 doubles per Object. See the attached module.json (in a txt file so upload accepts it)30270-modulejson.txt