REST API ShpDtl Post Error

I’m getting this error message when trying to post a REST call to the ShpDtl table. I’m trying to create a record for shipping details. Does anyone know the best way to troubleshoot this issue?

This is what I’m sending.
curl --location --request POST ‘https://centralusdtapp01.epicorsaas.com/xxxx/api/v1/Erp.BO.CustShipSvc/ShipDtls’ \

--data-raw '{
  "Company": "xxxxxx",
  "PackNum": 786515,
  "OrderNum": 1178044,
  "LineDesc": "Erica 497 Ottoman W/Chrome Nail Heirloom Chocolate ISTA3 packaging",
  "OrderRelNum": 1,
  "OrderLine": 1,
  "PartNum": "UER081000CA",
  "IUM": "EA",
  "WUM": "EA",
  "CustNum": 130,
  "ShipToCustNum": 130,
  "ShipToNum": "",
  "SalesUM": "EA",
  "InventoryShipUOM": "EA",
  "JobShipUOM": "EA",
  "SellingInventoryShipQty": "1.00000000",
  "TotalNetWeight": "17.0000000000000",
  "OurInventoryShipQty": "1.00000000",
  "DisplayInvQty": "1.00000000",
  "WarehouseCode": "MQE",
  "BinNum": "BULK",
  "BinType": "std",
  "OurShippedQty": "1.00000000",
  "SellingShippedQty": "1.00000000",
  "MFCustNum": 130,
  "MFShipToNum": "",
  "ShipCmpl": true
}'

This is the response I’m receiving.

{
    "HttpStatus": 400,
    "ReasonPhrase": "REST API Exception",        "ErrorMessage": "BPM runtime caught an unexpected exception of 'TargetException' type.\r\nSee more info in the Inner Exception section of Exception Details.",
    "ErrorType": "Ice.Common.BusinessObjectException",
    "ErrorDetails": [
        {             "Message": "BPM runtime caught an unexpected exception of 'TargetException' type.\r\nSee more info in the Inner Exception section of Exception Details.",
            "Type": "Error",
            "Table": "ShipDtl",
            "Program": "Epicor.RESTApi.Common.dll",
            "Method": "ThrowUpdateExtException",
            "ColumnNumber": 30,
            "LineNumber": 21
        }
    ],
    "CorrelationId": "865cb17a-f533-4a9d-9145-542351503a14"
}

You must have some BPM running that doesn’t like the data you’re sending it.

I’ll checked the Data Directive and Method Directives. But I don’t think there are any BPMs running against the shipdtl table.

I have a changelog that’s active for shipdtl. But I still get the error when it’s disabled.

1 Like

Look into server’s event viewer for Epicor App server, if there more exception information.

1 Like

Thanks. I found the BPM that was causing the issue and fixed it.

1 Like