POST https://{{d365_url}}/data/EngineeringChangeOrderProductsV3 { "dataAreaId": "demf", "EngineeringChangeOrderNumber": "TestEco", "LineNumber": 2.0, "EngineeringProductCategoryDetailsName": "Test", "EngineeringChangeImpactType": "NewProduct", "ProductName": "CreatedUsingOData", "ProductSearchName": "EcoProduct", "NewProductVersionId": "V-01", "NewItemNumber": "301", "BOMUnitSymbol": "pcs" }
POST https://{{d365_url}}/data/EngineeringChangeOrderProductsV3 { "dataAreaId": "demf", "EngineeringChangeOrderNumber": "TestEco", "LineNumber": 3.0, "EngineeringProductCategoryDetailsName": "Test", "EngineeringChangeImpactType": "NewProduct", "ProductName": "CreatedUsingOData2", "ProductSearchName": "EcoProduct", "NewProductVersionId": "V-01", "NewItemNumber": "302", "BOMUnitSymbol": "pcs" } { "error": { "code": "", "message": "An error has occurred.", "innererror": { "message": "Write failed for table row of type 'EngChgEngineeringChangeOrderProductV3Entity'. Infolog: Warning: New product exists in the engineering change order TestEco and cannot be added.; Warning: The new product number is already reserved in engineering change order TestEco; Warning: validateWrite failed on data source 'EngChgEcmProduct (EngChgEcmProduct)'.", "type": "Microsoft.Dynamics.Platform.Integration.Services.OData.AxODataWriteException", "stacktrace": " at Microsoft.Dynamics.Platform.Integration.Services.OData.Update.UpdateProcessor.CreateEntity_Save(ChangeOperationContext context, ChangeInfo changeInfo)\r\n at Microsoft.Dynamics.Platform.Integration.Services.OData.Update.ChangeInfo.ExecuteActionsInCompanyContext(IEnumerable`1 actionList, ChangeOperationContext operationContext)\r\n at Microsoft.Dynamics.Platform.Integration.Services.OData.Update.ChangeInfo.TrySave(ChangeOperationContext operationContext)\r\n at Microsoft.Dynamics.Platform.Integration.Services.OData.Update.UpdateManager.SaveChanges()\r\n at Microsoft.Dynamics.Platform.Integration.Services.OData.AxODataDelegatingHandler.<SaveChangesAsync>d__2.MoveNext()" } } }
{ "error": { "code": "", "message": "An error has occurred.", "innererror": { "message": "Write failed for table row of type 'EngChgEngineeringChangeOrderProductV3Entity'. Infolog: Warning: New product exists in the engineering change order TestEco and cannot be added.; Warning: The new product number is already reserved in engineering change order TestEco; Warning: validateWrite failed on data source 'EngChgEcmProduct (EngChgEcmProduct)'.", "type": "Microsoft.Dynamics.Platform.Integration.Services.OData.AxODataWriteException", "stacktrace": " at Microsoft.Dynamics.Platform.Integration.Services.OData.Update.UpdateProcessor.CreateEntity_Save(ChangeOperationContext context, ChangeInfo changeInfo)\r\n at Microsoft.Dynamics.Platform.Integration.Services.OData.Update.ChangeInfo.ExecuteActionsInCompanyContext(IEnumerable`1 actionList, ChangeOperationContext operationContext)\r\n at Microsoft.Dynamics.Platform.Integration.Services.OData.Update.ChangeInfo.TrySave(ChangeOperationContext operationContext)\r\n at Microsoft.Dynamics.Platform.Integration.Services.OData.Update.UpdateManager.SaveChanges()\r\n at Microsoft.Dynamics.Platform.Integration.Services.OData.AxODataDelegatingHandler.<SaveChangesAsync>d__2.MoveNext()" } } }
{ "error": { "code": "", "message": "An error has occurred.", "innererror": { "message": "Write failed for table row of type 'EngChgEngineeringChangeOrderProductV3Entity'. Infolog: Error: The released product 230 does not exist.", "type": "Microsoft.Dynamics.Platform.Integration.Services.OData.AxODataWriteException", "stacktrace": " at Microsoft.Dynamics.Platform.Integration.Services.OData.Update.UpdateProcessor.CreateEntity_Save(ChangeOperationContext context, ChangeInfo changeInfo)\r\n at Microsoft.Dynamics.Platform.Integration.Services.OData.Update.ChangeInfo.ExecuteActionsInCompanyContext(IEnumerable`1 actionList, ChangeOperationContext operationContext)\r\n at Microsoft.Dynamics.Platform.Integration.Services.OData.Update.ChangeInfo.TrySave(ChangeOperationContext operationContext)\r\n at Microsoft.Dynamics.Platform.Integration.Services.OData.Update.UpdateManager.SaveChanges()\r\n at Microsoft.Dynamics.Platform.Integration.Services.OData.AxODataDelegatingHandler.<SaveChangesAsync>d__2.MoveNext()" } } }
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156