New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Condition ID format and example not matching on Agent version 2.3? #444
Comments
The nativeCode and conditionId are separated by a colon ( |
This means the sample shdr in the document is not correct because there is no colon. Is that correct? 2014-09-29T23:59:33.460470Z|htemp|WARNING|HTEMP-1-HIGH|HTEMP|1|HIGH|Oil Temperature High |
The example is wrong. There should not be the extra field. Missed that. I'll ask Dave to fix the docs. There should only be 6 field not 7. |
It seems agent does not produce the data stream correctly or the schema is not correct. I got invalid conditionId value of 1700 when validating with XMLSpy. shdr data: current output: XMLSpy Error: |
It seems missing conditionId in the data stream 2024-04-23T15:15:17.3726547Z|CoolantSystem1_cond|UNAVAILABLE||||
Error: |
It should be a string type not an id type. Shaurabh should fix it in the schema generator. Thanks for finding this! - W |
Based on readme document of version 2.3, the SHDR format of CONDITION only has 6 fields but, in the example, it shows 7 data fields (not included time stamp).
Is that correct?
<timestamp>|<data_item_name>|<level>|<native_code>:<condition_id>|<native_severity>|<qualifier>|<message>
2014-09-29T23:59:33.460470Z|htemp|WARNING|HTEMP-1-HIGH|HTEMP|1|HIGH|Oil
Temperature High**I got errors when validating the current output with schema as shown below that require condition ID:
2024-04-22T18:49:48.2554602Z|UserMessage1||UNAVAILABLE
2024-04-22T18:49:48.2554602Z|system|NORMAL|3|4|5|6
2024-04-22T18:49:48.2554602Z|CoolantSystem1_cond|UNAVAILABLE||||
2024-04-22T18:49:48.2554602Z|ElectricSystem1_cond|UNAVAILABLE||||
2024-04-22T18:49:48.2554602Z|HydraulicSystem1_cond|UNAVAILABLE||||
2024-04-22T18:49:48.2554602Z|LubricationSystem1_cond|UNAVAILABLE||||
2024-04-22T18:49:48.2554602Z|PneumaticSystem1_cond|UNAVAILABLE||||
2024-04-22T18:49:48.2554602Z|LoaderSystem1_cond|UNAVAILABLE||||
2024-04-22T18:49:48.2554602Z|WasteDisposalSystem1_cond|UNAVAILABLE||||
2024-04-22T18:49:48.2554602Z|ToolingDeliverySystem1_cond|UNAVAILABLE||||
2024-04-22T18:49:48.2554602Z|BarFeederSystem1_cond|UNAVAILABLE||||
File http://localhost:5000/current is not valid.
Attribute 'conditionId' is required in element .
Annotations of element 'Unavailable' (see below)
The conditon can not be determined.
Annotations of type 'UnavailableType' (see below)
The conditon can not be determined.
Error location: MTConnectStreams / Streams / DeviceStream / ComponentStream / Condition / Unavailable
Details
cvc-complex-type.4: Required attribute 'conditionId' is missing from element .
cvc-type.3.2: Element is not valid with respect to type definition 'UnavailableType'.
cvc-elt.5: The element is not valid with respect to the actual type definition 'UnavailableType'.
cvc-assess-elt.1.1: Strict assessment of element with governing element declaration 'Unavailable' failed.
Attribute 'conditionId' is required in element .
Annotations of element 'Unavailable' (see below)
The conditon can not be determined.
Annotations of type 'UnavailableType' (see below)
The conditon can not be determined.
Error location: MTConnectStreams / Streams / DeviceStream / ComponentStream / Condition / Unavailable
Details
cvc-complex-type.4: Required attribute 'conditionId' is missing from element .
cvc-type.3.2: Element is not valid with respect to type definition 'UnavailableType'.
cvc-elt.5: The element is not valid with respect to the actual type definition 'UnavailableType'.
cvc-assess-elt.1.1: Strict assessment of element with governing element declaration 'Unavailable' failed.
Attribute 'conditionId' is required in element .
Annotations of element 'Unavailable' (see below)
The conditon can not be determined.
Annotations of type 'UnavailableType' (see below)
The conditon can not be determined.
Error location: MTConnectStreams / Streams / DeviceStream / ComponentStream / Condition / Unavailable
Details
cvc-complex-type.4: Required attribute 'conditionId' is missing from element .
cvc-type.3.2: Element is not valid with respect to type definition 'UnavailableType'.
cvc-elt.5: The element is not valid with respect to the actual type definition 'UnavailableType'.
cvc-assess-elt.1.1: Strict assessment of element with governing element declaration 'Unavailable' failed.
Attribute 'conditionId' is required in element .
Annotations of element 'Unavailable' (see below)
The conditon can not be determined.
Annotations of type 'UnavailableType' (see below)
The conditon can not be determined.
Error location: MTConnectStreams / Streams / DeviceStream / ComponentStream / Condition / Unavailable
Details
cvc-complex-type.4: Required attribute 'conditionId' is missing from element .
cvc-type.3.2: Element is not valid with respect to type definition 'UnavailableType'.
cvc-elt.5: The element is not valid with respect to the actual type definition 'UnavailableType'.
cvc-assess-elt.1.1: Strict assessment of element with governing element declaration 'Unavailable' failed.
Attribute 'conditionId' is required in element .
Annotations of element 'Unavailable' (see below)
The conditon can not be determined.
Annotations of type 'UnavailableType' (see below)
The conditon can not be determined.
Error location: MTConnectStreams / Streams / DeviceStream / ComponentStream / Condition / Unavailable
Details
cvc-complex-type.4: Required attribute 'conditionId' is missing from element .
cvc-type.3.2: Element is not valid with respect to type definition 'UnavailableType'.
cvc-elt.5: The element is not valid with respect to the actual type definition 'UnavailableType'.
cvc-assess-elt.1.1: Strict assessment of element with governing element declaration 'Unavailable' failed.
Attribute 'conditionId' is required in element .
Annotations of element 'Unavailable' (see below)
The conditon can not be determined.
Annotations of type 'UnavailableType' (see below)
The conditon can not be determined.
Error location: MTConnectStreams / Streams / DeviceStream / ComponentStream / Condition / Unavailable
Details
cvc-complex-type.4: Required attribute 'conditionId' is missing from element .
cvc-type.3.2: Element is not valid with respect to type definition 'UnavailableType'.
cvc-elt.5: The element is not valid with respect to the actual type definition 'UnavailableType'.
cvc-assess-elt.1.1: Strict assessment of element with governing element declaration 'Unavailable' failed.
Attribute 'conditionId' is required in element .
Annotations of element 'Unavailable' (see below)
The conditon can not be determined.
Annotations of type 'UnavailableType' (see below)
The conditon can not be determined.
Error location: MTConnectStreams / Streams / DeviceStream / ComponentStream / Condition / Unavailable
Details
cvc-complex-type.4: Required attribute 'conditionId' is missing from element .
cvc-type.3.2: Element is not valid with respect to type definition 'UnavailableType'.
cvc-elt.5: The element is not valid with respect to the actual type definition 'UnavailableType'.
cvc-assess-elt.1.1: Strict assessment of element with governing element declaration 'Unavailable' failed.
Attribute 'conditionId' is required in element .
Annotations of element 'Unavailable' (see below)
The conditon can not be determined.
Annotations of type 'UnavailableType' (see below)
The conditon can not be determined.
Error location: MTConnectStreams / Streams / DeviceStream / ComponentStream / Condition / Unavailable
Details
cvc-complex-type.4: Required attribute 'conditionId' is missing from element .
cvc-type.3.2: Element is not valid with respect to type definition 'UnavailableType'.
cvc-elt.5: The element is not valid with respect to the actual type definition 'UnavailableType'.
cvc-assess-elt.1.1: Strict assessment of element with governing element declaration 'Unavailable' failed.
Attribute 'conditionId' is required in element .
Annotations of element 'Unavailable' (see below)
The conditon can not be determined.
Annotations of type 'UnavailableType' (see below)
The conditon can not be determined.
Error location: MTConnectStreams / Streams / DeviceStream / ComponentStream / Condition / Unavailable
Details
cvc-complex-type.4: Required attribute 'conditionId' is missing from element .
cvc-type.3.2: Element is not valid with respect to type definition 'UnavailableType'.
cvc-elt.5: The element is not valid with respect to the actual type definition 'UnavailableType'.
cvc-assess-elt.1.1: Strict assessment of element with governing element declaration 'Unavailable' failed.
Attribute 'conditionId' is required in element .
Annotations of element 'Normal' (see below)
{{term(condition state)}} that indicates operation within specified
limits.
Annotations of type 'NormalType' (see below)
{{term(condition state)}} that indicates operation within specified
limits.
Error location: MTConnectStreams / Streams / DeviceStream / ComponentStream / Condition / Normal
Details
cvc-complex-type.4: Required attribute 'conditionId' is missing from element .
cvc-type.3.2: Element is not valid with respect to type definition 'NormalType'.
cvc-elt.5: The element is not valid with respect to the actual type definition 'NormalType'.
cvc-assess-elt.1.1: Strict assessment of element with governing element declaration 'Normal' failed.`
The text was updated successfully, but these errors were encountered: