udmi icon indicating copy to clipboard operation
udmi copied to clipboard

Issue with Validation Reports and New UDMI Version - named "state.out"

Open dheeju143 opened this issue 1 year ago • 2 comments

Hi Team,

I am facing an issue with validation reports using the new UDMI version. I encountered the following "state.out" error message. Could you please assist me in resolving this?

Payload Sent from the controller:

{ "version": "1", "timestamp": "2023-08-21T08:47:52.470Z", "system": { "serial_no": "", "last_config": "2022-06-02T09:00:43Z", "operational": true, "hardware": { "make": "LLBMS", "model": "Exhaust Fans", "sku": "", "rev": "" }, "software": { "firmware": "", "os": "" } } }

Validation Report at State.out

{ "timestamp" : "2023-08-21T11:39:58Z", "version" : "1.4.1", "sub_folder" : "update" "sub_type" : "state", "status" : { "message" : "missing pointset subblock", "detail" : "state_update: missing pointset subblock", "category" : "validation.device.schema", "timestamp" : "2023-08-21T11:39:58Z", "level" : 500 }, "errors" : [ { "message" : "missing pointset subblock", "detail" : "state_update: missing pointset subblock", "category" : "validation.device.schema", "timestamp" : "2023-08-21T11:39:58Z", "level" : 500 } ] }

dheeju143 avatar Aug 22 '23 06:08 dheeju143

Hello,

The error here is that the devices metadata here has a pointset, therefore it is required that the state message also includes the pointset blocks with the points the device is publishing data for. If the device does not have data points, then either add an emptoy pointsetblock or remove the pointset block from the metadata.json file.

This is not new UDMI behaviour, there was a bug in one version of the UDMI validator which did not raise this error

noursaidi avatar Aug 22 '23 14:08 noursaidi

@noursaidi Hi Thanks for the Reply i will look into it and get back to you

dheeju143 avatar Aug 29 '23 12:08 dheeju143