WITSML parser error: : symbol is not added at the end of the references, manifest validation fails
Trying to run Energistics parser on the GCP environment. Errors of the following type appear in logs:
ERROR - Error: 'odesprod:work-product-component--WellboreTrajectory:20C60DDC-D36D-4A3C-800F-504CE0B5605D' does not match '^(surrogate-key:.+|[\\w\\-\\.]+:work-product-component\\-\\-[\\w\\-\\.]+:[\\w\\-\\.\\:\\%]+:[0-9]*)$' [2021-04-13 14:56:11,410] {base_task_runner.py:113} INFO - Job 40609: Subtask validate_manifest_schema_task [2021-04-13 14:56:11,410] {base_task_runner.py:113} INFO - Job 40609: Subtask validate_manifest_schema_task Failed validating 'pattern' in schema['properties']['data']['allOf'][1]['properties']['Components']['items']: [2021-04-13 14:56:11,413] {base_task_runner.py:113} INFO - Job 40609: Subtask validate_manifest_schema_task {'description': 'The SRN which identifies this OSDU Work Product ' [2021-04-13 14:56:11,413] {base_task_runner.py:113} INFO - Job 40609: Subtask validate_manifest_schema_task 'Component resource.', [2021-04-13 14:56:11,413] {base_task_runner.py:113} INFO - Job 40609: Subtask validate_manifest_schema_task 'pattern': '^(surrogate-key:.+|[\\w\\-\\.]+:work-product-component\\-\\-[\\w\\-\\.]+:[\\w\\-\\.\\:\\%]+:[0-9]*)$', [2021-04-13 14:56:11,413] {base_task_runner.py:113} INFO - Job 40609: Subtask validate_manifest_schema_task 'type': 'string', [2021-04-13 14:56:11,416] {base_task_runner.py:113} INFO - Job 40609: Subtask validate_manifest_schema_task 'x-osdu-relationship': [{'GroupType': 'work-product-component'}]} [2021-04-13 14:56:11,416] {base_task_runner.py:113} INFO - Job 40609: Subtask validate_manifest_schema_task [2021-04-13 14:56:11,416] {base_task_runner.py:113} INFO - Job 40609: Subtask validate_manifest_schema_task On instance['data']['Components'][0]: [2021-04-13 14:56:11,416] {base_task_runner.py:113} INFO - Job 40609: Subtask validate_manifest_schema_task 'odesprod:work-product-component--WellboreTrajectory:20C60DDC-D36D-4A3C-800F-504CE0B5605D' [2021-04-13 14:56:11,416] {base_task_runner.py:113} INFO - Job 40609: Subtask validate_manifest_schema_task [2021-04-13 14:56:11,416] {validate_schema.py:370} WARNING - Resource with kind odesprod:wks:work-product--WorkProduct:1.0.0 was rejected
This is related to the fact that : symbol is not added at the end of each referenced ids.
According to the DD, if WPC is being referred from WP, it should be defined by the pattern described in this schema:
"Components": { "type": "array", "items": { "description": "The SRN which identifies this OSDU Work Product Component resource.", "type": "string", "pattern": "^(surrogate-key:.+|[\\w\\-\\.]+:work-product-component\\-\\-[\\w\\-\\.]+:[\\w\\-\\.\\:\\%]+:[0-9]*)$",
Similar logic is when referencing Master or Reference data from WPC and referencing Datasets from WPC
Please contact me or @Yan_Sushchynski if you need more details