Azure - R3M9-patch - Manifest-based Ingestion (Wp-wpc-dataset-file) Surrogate key
Please check
Azure-Manifest-based-Ingestion-wp-wpc-issue-surrogate-key.txt
This is the error from validate_schema step. I was using surrogate key approach to link work-product component with Dataset record.
[2021-12-30 13:49:34,665] {validate_schema.py:293} ERROR - Manifest kind: osdu:wks:work-product-component--WellboreTrajectory:1.1.0 [2021-12-30 13:49:34,666] {validate_schema.py:294} ERROR - Error: 'surrogate-key:file-1:' does not match '^[\w\-\.]+:dataset\-\-[\w\-\.]+:[\w\-\.\:\%]+:[0-9]*$'
Failed validating 'pattern' in schema['properties']['data']['allOf'][1]['properties']['Datasets']['items']: {'description': 'The SRN which identifies this OSDU File resource.', 'pattern': '^[\w\-\.]+:dataset\-\-[\w\-\.]+:[\w\-\.\:\%]+:[0-9]*$', 'type': 'string', 'x-osdu-relationship': [{'GroupType': 'dataset'}]}
On instance['data']['Datasets'][0]: 'surrogate-key:file-1:' [2021-12-30 13:49:34,669] {connectionpool.py:230} DEBUG - Starting new HTTP connection (1): schema.osdu-azure.svc.cluster.local:80
cc - @sje7253bp , @chad , @esmira.rafigayeva , @todaiks , @manishk for information