M20 AZURE RAFS - Failure when running "RAFS DDMS/V1/Samples Analysis [Formation Resistivity Index]/03 - Add data" request
I get the following error when running the "RAFS DDMS/V1/Samples Analysis [Formation Resistivity Index]/03 - Add data"
{
"code": 422,
"reason": "Data validation failed.",
"errors": {
"Invalid type": [
{
"SamplesAnalysisID": "opendes:work-product-component--SamplesAnalysis:7a3ce78dc77a494d9792609847fa82e7:"
},
{
"SampleID": "opendes:master-data--Sample:47a:"
},
{
"InitialConditions": "[{'WaterSaturation': {'Value': 8.6, 'UnitOfMeasure': 'opendes:reference-data--UnitOfMeasure:%25:'}, 'GasSaturation': {'Value': 91.4, 'UnitOfMeasure': 'opendes:reference-data--UnitOfMeasure:%25:'}, 'Permeability': [{'PermeabilityType': 'opendes:reference-data--PermeabilityMeasurementType:Gas:', 'Value': 5380, 'UnitOfMeasure': 'opendes:reference-data--UnitOfMeasure:md:'}]}]"
},
{
"TerminalConditions": "[{'GasSaturation': {'Value': 20.3, 'UnitOfMeasure': 'opendes:reference-data--UnitOfMeasure:%25:'}, 'Permeability': [{'PermeabilityType': 'opendes:reference-data--PermeabilityMeasurementType:Water:', 'Value': 1687, 'UnitOfMeasure': 'opendes:reference-data--UnitOfMeasure:md:'}, {'PermeabilityType': 'opendes:reference-data--PermeabilityMeasurementType:RelativeWater:', 'Value': 0.28500000000000003, 'UnitOfMeasure': 'opendes:reference-data--UnitOfMeasure:%25:'}], 'PctOfOriginalGasInPlace': {'Value': 71.0, 'UnitOfMeasure': 'opendes:reference-data--UnitOfMeasure:%25:'}, 'PctOfInitialGasInPlace': {'Value': 77.7, 'UnitOfMeasure': 'opendes:reference-data--UnitOfMeasure:%25:'}}]"
}
]
}
}
Below is the full request that was sent:
curl --location 'https://osdu-ship.msft-osdu-test.org/api/rafs-ddms/v1/formationresistivityindexes/opendes:work-product-component--SamplesAnalysis:e18d0b6a3b9d4baf99fbc1a56c410ebf/data' \
--header 'Authorization: Bearer ...' \
--header 'data-partition-id: opendes' \
--header 'Content-Type: application/json' \
--header 'Accept: */*;version=1.0.0' \
--data '{
"columns": [
"SamplesAnalysisID",
"SampleID",
"InitialConditions",
"TerminalConditions"
],
"index": [
0
],
"data": [
[
"opendes:work-product-component--SamplesAnalysis:7a3ce78dc77a494d9792609847fa82e7:",
"opendes:master-data--Sample:47a:",
[
{
"WaterSaturation": {
"Value": 8.6,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:%25:"
},
"GasSaturation": {
"Value": 91.4,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:%25:"
},
"Permeability": [
{
"PermeabilityType": "opendes:reference-data--PermeabilityMeasurementType:Gas:",
"Value": 5380,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:md:"
}
]
}
],
[
{
"GasSaturation": {
"Value": 20.3,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:%25:"
},
"Permeability": [
{
"PermeabilityType": "opendes:reference-data--PermeabilityMeasurementType:Water:",
"Value": 1687,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:md:"
},
{
"PermeabilityType": "opendes:reference-data--PermeabilityMeasurementType:RelativeWater:",
"Value": 0.285,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:%25:"
}
],
"PctOfOriginalGasInPlace": {
"Value": 71.0,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:%25:"
},
"PctOfInitialGasInPlace": {
"Value": 77.7,
"UnitOfMeasure": "opendes:reference-data--UnitOfMeasure:%25:"
}
}
]
]
]
}'
I used the following postman environment: https://community.opengroup.org/osdu/platform/pre-shipping/-/blob/main/R3-M20/Azure-M20/Environment/Verify_Preshipping_New_TeamA-E.postman_environment.json
and the following postman collections:
- https://community.opengroup.org/osdu/platform/domain-data-mgmt-services/rock-and-fluid-sample/rafs-ddms-services/-/blob/main/deployments/rafsddms_schemas_mvp.postman_collection
- https://community.opengroup.org/osdu/platform/pre-shipping/-/blob/main/R3-M20/Azure-M20/Services/DDMS/RAFS/RAFSDDMSAPI/RAFSDDMS_API_CI-CD_v1.0.postman_collection.json.json
Details on the specific steps I used can be found here: M20-AZURE-RAFS-Michael_Failed_Steps.txt