M21/Azure/Preship - RAFS DDMS V2 API - fails to create record for NMR
I used this collection.
First step works. But step to create NMR Sample Analysis wpc record fails. @marneson confirmed that he gets the same failure.
{
"code": 422,
"reason": "Validation failed for rafsddms:wks:work-product-component--SamplesAnalysis:1.0.0. Skipped records [{'id': None, 'reason': ValidationError(model='SamplesAnalysis', errors=[{'loc': ('data', 'ParentSamplesAnalysesReports', 0), 'msg': 'str type expected', 'type': 'type_error.str'}, {'loc': ('data', 'DatePublished'), 'msg': 'invalid datetime format', 'type': 'value_error.datetime'}])}]"
}
I tried changing date to full format (with timezone). Even then the error persists. There is also second error with parent record.
"AnalysisDate": "2022-12-16T11:46:20.163Z",
Please check and advise.