Skip to content

WITSML Parser - Well Trajectory Failure

[2022-08-29, 20:47:17 UTC] {validate_schema.py:322} ERROR - Schema validation error. Data field.
[2022-08-29, 20:47:17 UTC] {validate_schema.py:323} ERROR - Manifest kind: opendes:wks:work-product-component--WellboreTrajectory:1.1.0
[2022-08-29, 20:47:17 UTC] {validate_schema.py:324} ERROR - Error: 'Azi' does not match '^[\\w\\-\\.]+:reference-data\\-\\-TrajectoryStationPropertyType:[\\w\\-\\.\\:\\%]+:[0-9]*$'

Failed validating 'pattern' in schema['properties']['data']['allOf'][3]['properties']['AvailableTrajectoryStationProperties']['items']['properties']['TrajectoryStationPropertyTypeID']:
    {'description': 'The reference to a trajectory station property type - '
                    'of if interpreted as channels, the curve or channel '
                    'name type, identifying e.g. MD, Inclination, Azimuth. '
                    'This is a relationship to a '
                    'reference-data--TrajectoryStationPropertyType record '
                    'id.',
     'example': 'partition-id:reference-data--TrajectoryStationPropertyType:AzimuthTN:',
     'pattern': '^[\\w\\-\\.]+:reference-data\\-\\-TrajectoryStationPropertyType:[\\w\\-\\.\\:\\%]+:[0-9]*$',
     'title': 'Trajectory Station Property Type ID',
     'type': 'string',
     'x-osdu-relationship': [{'EntityType': 'TrajectoryStationPropertyType',
                              'GroupType': 'reference-data'}]}

On instance['data']['AvailableTrajectoryStationProperties'][0]['TrajectoryStationPropertyTypeID']:
    'Azi'

This is error log from azure DEMO validate_manifest_schema_task, but it is common code issue, because it is repro on gcp (cc @Yan_Sushchynski)

I think the main issue inside parser in this line:

https://community.opengroup.org/osdu/platform/data-flow/ingestion/energistics/witsml-parser/-/blob/master/energistics/src/witsml_parser/energistics/libs/energistics_parsers/witsml_2_0/trajectory_parser.py#L117

Because tagname didn't match this schema pattern (cc @epeysson)