AZURE M22 - Core Services - Unable to convert Unit without use of persistable reference
Hello,
I`m trying to complete Core Services - FoR (Unit Conversion) without use of persistableReference but when I search the record the unit is not converted. So far I've:
- Collection: Azure_OSDU_Smoke_Tests.postman_collection.json
- Environment: Verify_Preshipping_New_TeamA-E.postman_environment.json
1. Create a Record
PUT https://{{STORAGE_HOST}}/records/
BODY CURL VERSION
curl --location --request PUT 'https://osdu-ship.msft-osdu-test.org/api/storage/v2/records/' \
--header 'data-partition-id: opendes' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <Token>' \
--header 'Content-Type: application/json' \
--data-raw '[
{
"acl": {
"owners": [
"data.default.owners@opendes.contoso.com"
],
"viewers": [
"data.default.viewers@opendes.contoso.com"
]
},
"data": {
"DefaultVerticalMeasurementID": "Rotary Table",
"FacilityEvents": [
{
"EffectiveDateTime": "2002-05-12T00:00:00",
"FacilityEventTypeID": "opendes:reference-data--FacilityEventType:SPUD:"
},
{
"EffectiveDateTime": "2002-06-07T00:00:00",
"FacilityEventTypeID": "opendes:reference-data--FacilityEventType:DRILLING%20FINISH:"
}
],
"FacilityID": "A14-02-test",
"FacilityOperators": [
{
"FacilityOperatorOrganisationID": "opendes:master-data--Organisation:NAM:"
}
],
"FacilityStates": [
{
"FacilityStateTypeID": "opendes:reference-data--FacilityStateType:Abandoned:"
}
],
"FacilityTypeID": "opendes:reference-data--FacilityType:A14-02:",
"GeoContexts": [
{
"GeoPoliticalEntityID": "opendes:master-data--GeoPoliticalEntity:Netherlands:",
"GeoTypeID": "opendes:reference-data--GeoPoliticalEntityType:Country:"
},
{
"GeoPoliticalEntityID": "opendes:master-data--GeoPoliticalEntity:A14:",
"GeoTypeID": "opendes:reference-data--GeoPoliticalEntityType:BlockID:"
}
],
"NameAliases": [
{
"AliasName": "A14-02-test",
"AliasNameTypeID": "opendes:reference-data--AliasNameType:WELL_NAME:"
},
{
"AliasName": "8577-test",
"AliasNameTypeID": "opendes:reference-data--AliasNameType:UWI:"
}
],
"OperatingEnvironmentID": "opendes:reference-data--OperatingEnvironment:OFF:",
"Source": "TNO",
"SpatialLocation": {
"Wgs84Coordinates": {
"features": [
{
"geometry": {
"coordinates": [
3.39488769,
55.32443529
],
"type": "Point"
},
"properties": {},
"type": "Feature"
}
],
"type": "FeatureCollection"
}
},
"VerticalMeasurements": [
{
"VerticalCRSID": "opendes:reference-data--CoordinateReferenceSystem:MSL:",
"VerticalMeasurement": 39.2,
"VerticalMeasurementID": "Rotary Table",
"VerticalMeasurementPathID": "opendes:reference-data--VerticalMeasurementPath:Elevation:",
"VerticalMeasurementUnitOfMeasureID": "opendes:reference-data--UnitOfMeasure:M:"
}
]
},
"id": "opendes:master-data--Well:JFA29JANAZURE",
"kind": "osdu:wks:master-data--Well:1.0.0",
"legal": {
"legaltags": [
"opendes-Test-Legal-Tag-4375119"
],
"otherRelevantDataCountries": [
"US"
],
"status": "compliant"
},
"meta": [
{
"kind": "Unit",
"name": "ft",
"unitOfMeasureID": "opendes:reference-data--UnitOfMeasure:ft:",
"propertyNames": [
"VerticalMeasurements[].VerticalMeasurement"
]
}
],
"version": 0
}
]'
BODY
[
{
"acl": {
"owners": [
"{{New_OwnerDataGroup}}@{{data-partition-id}}{{domain}}"
],
"viewers": [
"{{New_ViewerDataGroup}}@{{data-partition-id}}{{domain}}"
]
},
"data": {
"DefaultVerticalMeasurementID": "Rotary Table",
"FacilityEvents": [
{
"EffectiveDateTime": "2002-05-12T00:00:00",
"FacilityEventTypeID": "{{data-partition-id}}:reference-data--FacilityEventType:SPUD:"
},
{
"EffectiveDateTime": "2002-06-07T00:00:00",
"FacilityEventTypeID": "{{data-partition-id}}:reference-data--FacilityEventType:DRILLING%20FINISH:"
}
],
"FacilityID": "A14-02-test",
"FacilityOperators": [
{
"FacilityOperatorOrganisationID": "{{data-partition-id}}:master-data--Organisation:NAM:"
}
],
"FacilityStates": [
{
"FacilityStateTypeID": "{{data-partition-id}}:reference-data--FacilityStateType:Abandoned:"
}
],
"FacilityTypeID": "{{data-partition-id}}:reference-data--FacilityType:A14-02:",
"GeoContexts": [
{
"GeoPoliticalEntityID": "{{data-partition-id}}:master-data--GeoPoliticalEntity:Netherlands:",
"GeoTypeID": "{{data-partition-id}}:reference-data--GeoPoliticalEntityType:Country:"
},
{
"GeoPoliticalEntityID": "{{data-partition-id}}:master-data--GeoPoliticalEntity:A14:",
"GeoTypeID": "{{data-partition-id}}:reference-data--GeoPoliticalEntityType:BlockID:"
}
],
"NameAliases": [
{
"AliasName": "A14-02-test",
"AliasNameTypeID": "{{data-partition-id}}:reference-data--AliasNameType:WELL_NAME:"
},
{
"AliasName": "8577-test",
"AliasNameTypeID": "{{data-partition-id}}:reference-data--AliasNameType:UWI:"
}
],
"OperatingEnvironmentID": "{{data-partition-id}}:reference-data--OperatingEnvironment:OFF:",
"Source": "TNO",
"SpatialLocation": {
"Wgs84Coordinates": {
"features": [
{
"geometry": {
"coordinates": [
3.39488769,
55.32443529
],
"type": "Point"
},
"properties": {},
"type": "Feature"
}
],
"type": "FeatureCollection"
}
},
"VerticalMeasurements": [
{
"VerticalCRSID": "{{data-partition-id}}:reference-data--CoordinateReferenceSystem:MSL:",
"VerticalMeasurement": 39.2,
"VerticalMeasurementID": "Rotary Table",
"VerticalMeasurementPathID": "{{data-partition-id}}:reference-data--VerticalMeasurementPath:Elevation:",
"VerticalMeasurementUnitOfMeasureID": "{{data-partition-id}}:reference-data--UnitOfMeasure:M:"
}
]
},
"id": "{{data-partition-id}}:master-data--Well:JFA29JANAZURE",
"kind": "osdu:wks:master-data--Well:1.0.0",
"legal": {
"legaltags": [
"{{LegalTagNameExists}}"
],
"otherRelevantDataCountries": [
"US"
],
"status": "compliant"
},
"meta": [
{
"kind": "Unit",
"name": "ft",
"unitOfMeasureID": "{{data-partition-id}}:reference-data--UnitOfMeasure:ft:",
"propertyNames": [
"VerticalMeasurements[].VerticalMeasurement"
]
}
],
"version": 0
}
]
RESULTS
{
"recordCount": 1,
"recordIds": [
"opendes:master-data--Well:JFA29JANAZURE"
],
"skippedRecordIds": [],
"recordIdVersions": [
"opendes:master-data--Well:JFA29JANAZURE:1706539464473285"
]
}
2. Search - Retrieve the record
POST https://{{SEARCH_HOST}}/query
BODY CURL VERSION
curl --location 'https://osdu-ship.msft-osdu-test.org/api/search/v2/query' \
--header 'Authorization: Bearer <Token>' \
--header 'data-partition-id: opendes' \
--header 'Content-Type: application/json' \
--data '{
"kind": "osdu:wks:master-data--Well:*.*.*",
"query": "id: \"opendes:master-data--Well:JFA29JANAZURE\" "
}
'
BODY
{
"kind": "osdu:wks:master-data--Well:*.*.*",
"query": "id: \"opendes:master-data--Well:JFA29JANAZURE\" "
}
RESULTS
{
"results": [
{
"data": {
"FacilityStates": [
{
"FacilityStateTypeID": "opendes:reference-data--FacilityStateType:Abandoned:"
}
],
"VirtualProperties.DefaultLocation.QuantitativeAccuracyBandID": null,
"ResourceLifecycleStatus": null,
"DefaultVerticalMeasurementID": "Rotary Table",
"SpatialLocation.Wgs84Coordinates": {
"geometries": [
{
"coordinates": [
3.39488769,
55.32443529
],
"type": "point"
}
],
"type": "geometrycollection"
},
"ResourceCurationStatus": null,
"TechnicalAssuranceID": null,
"VirtualProperties.DefaultLocation.SpatialGeometryTypeID": null,
"FacilityName": null,
"Source": "TNO",
"FacilityID": "A14-02-test",
"VirtualProperties.DefaultName": null,
"VerticalMeasurements": [
{
"WellboreTVDTrajectoryID": null,
"VerticalCRSID": "opendes:reference-data--CoordinateReferenceSystem:MSL:",
"VerticalReferenceID": null,
"VerticalMeasurementSourceID": null,
"VerticalMeasurementID": "Rotary Table",
"VerticalMeasurementPathID": "opendes:reference-data--VerticalMeasurementPath:Elevation:",
"VerticalMeasurement": 39.2,
"VerticalMeasurementTypeID": null,
"VerticalMeasurementDescription": null,
"VerticalMeasurementUnitOfMeasureID": "opendes:reference-data--UnitOfMeasure:M:",
"VerticalReferenceEntityID": null
}
],
"VirtualProperties.DefaultLocation.CoordinateQualityCheckPerformedBy": null,
"VersionCreationReason": null,
"ResourceSecurityClassification": null,
"InterestTypeID": null,
"DataSourceOrganisationID": null,
"SpatialLocation.SpatialParameterTypeID": null,
"ExistenceKind": null,
"SpatialLocation.CoordinateQualityCheckPerformedBy": null,
"FacilityOperators": [
{
"FacilityOperatorID": null,
"FacilityOperatorOrganisationID": "opendes:master-data--Organisation:NAM:"
}
],
"UWI-JFA": null,
"FacilityTypeID": "opendes:reference-data--FacilityType:A14-02:",
"NameAliases": [
{
"AliasName": "A14-02-test",
"AliasNameTypeID": "opendes:reference-data--AliasNameType:WELL_NAME:",
"DefinitionOrganisationID": null
},
{
"AliasName": "8577-test",
"AliasNameTypeID": "opendes:reference-data--AliasNameType:UWI:",
"DefinitionOrganisationID": null
}
],
"DefaultVerticalCRSID": null,
"FacilityEvents": [
{
"EffectiveDateTime": "2002-05-12T00:00:00+0000",
"FacilityEventTypeID": "opendes:reference-data--FacilityEventType:SPUD:"
},
{
"EffectiveDateTime": "2002-06-07T00:00:00+0000",
"FacilityEventTypeID": "opendes:reference-data--FacilityEventType:DRILLING%20FINISH:"
}
],
"VirtualProperties.DefaultLocation.IsDecimated": false,
"TechnicalAssuranceTypeID": null,
"GeoContexts": [
{
"BasinID": null,
"FieldID": null,
"PlayID": null,
"GeoPoliticalEntityID": "opendes:master-data--GeoPoliticalEntity:Netherlands:",
"GeoTypeID": "opendes:reference-data--GeoPoliticalEntityType:Country:",
"ProspectID": null
},
{
"BasinID": null,
"FieldID": null,
"PlayID": null,
"GeoPoliticalEntityID": "opendes:master-data--GeoPoliticalEntity:A14:",
"GeoTypeID": "opendes:reference-data--GeoPoliticalEntityType:BlockID:",
"ProspectID": null
}
],
"CurrentOperatorID": null,
"SpatialLocation.QualitativeSpatialAccuracyTypeID": null,
"SpatialLocation.SpatialGeometryTypeID": null,
"OperatingEnvironmentID": "opendes:reference-data--OperatingEnvironment:OFF:",
"VirtualProperties.DefaultLocation.SpatialParameterTypeID": null,
"ResourceHomeRegionID": null,
"VirtualProperties.DefaultLocation.QualitativeSpatialAccuracyTypeID": null,
"InitialOperatorID": null,
"VirtualProperties.DefaultLocation.Wgs84Coordinates": {
"geometries": [
{
"coordinates": [
3.39488769,
55.32443529
],
"type": "point"
}
],
"type": "geometrycollection"
},
"SpatialLocation.QuantitativeAccuracyBandID": null
},
"kind": "osdu:wks:master-data--Well:1.0.0",
"source": "wks",
"acl": {
"viewers": [
"data.default.viewers@opendes.contoso.com"
],
"owners": [
"data.default.owners@opendes.contoso.com"
]
},
"type": "master-data--Well",
"version": 1706539464473285,
"tags": {
"normalizedKind": "osdu:wks:master-data--Well:1"
},
"createTime": "2024-01-29T14:44:25.103Z",
"authority": "osdu",
"namespace": "osdu:wks",
"legal": {
"legaltags": [
"opendes-Test-Legal-Tag-4375119"
],
"otherRelevantDataCountries": [
"US"
],
"status": "compliant"
},
"createUser": "preshipping@azureglobal1.onmicrosoft.com",
"id": "opendes:master-data--Well:JFA29JANAZURE"
}
],
"aggregations": null,
"phraseSuggestions": [],
"totalCount": 1
}
The "VerticalMeasurement": 39.2 is not converted. Can you help me with that?
Regards,
Juliana Fernandes