You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

REST Requisition - Attribute ChargeAccount cannot be set

edited Apr 9, 2020 3:44PM in Self Service Procurement 3 comments

Summary

When trying to create a payload for a requisition get an error

Content

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,

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!