REST Requisition - Attribute ChargeAccount cannot be set
Summary
When trying to create a payload for a requisition get an errorContent
Hello,
When creating a PO Requisition (very simple one), I get this error if I try to pass the ChargeAccount or the ChargeaccountID
{
"title": "Bad Request",
"status": "400",
"o:errorDetails": [
{
"detail": "Attribute ChargeAccount in view object PurchaseRequisitionLineVO_distributions_PurchaseRequisitionLineVOToPurchaseRequisitionDistributionVO_PurchaseRequisitionDistributionVO cannot be set.",
"o:errorCode": "27008",
"o:errorPath": "/lines/0/distributions/0/ChargeAccount"
}
]
}
This happens if I do the following payload :
/fscmRestApi/resources/latest/purchaseRequisitions
{
"RequisitioningBUId": 300000046987012,
"PreparerId": 300000047341483,
"Description": "More4Apps Test",
"InterfaceSourceCode": "TestM4A",
"ExternallyManagedFlag" : false,
"lines": [
{
"LineNumber": 1,
"LineTypeId": 1,
"LineTypeCode": "Goods",
"CategoryId": 300000076308541,
"CategoryName": "ZMisc1",
"ItemDescription": "TEST CARLOS",
"ItemId": null,
"Item": null,
Tagged:
0