# REST API ShpDtl Post Error

**URL:** <https://www.epiusers.help/t/rest-api-shpdtl-post-error/80494>\
**Category:** Kinetic ERP\
**Tags:** rest\
**Created:** [July 12, 2021, 8:15pm UTC](https://www.epiusers.help/t/rest-api-shpdtl-post-error/80494 "2021-07-12T20:15:28Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![hutchesonsteven](https://www.epiusers.help/letter_avatar_proxy/v4/letter/h/e19b73/32.png) [@hutchesonsteven](https://www.epiusers.help/u/hutchesonsteven)\
**Post date:** [July 12, 2021, 8:15pm UTC](https://www.epiusers.help/t/rest-api-shpdtl-post-error/80494/1 "2021-07-12T20:15:28Z")

</div>

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](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"
}

```

---

<div class="post-metadata">

**Author:** ![hmwillett](https://www.epiusers.help/user_avatar/www.epiusers.help/hmwillett/32/93207_2.png) [@hmwillett](https://www.epiusers.help/u/hmwillett)\
**Post date:** [July 12, 2021, 8:16pm UTC](https://www.epiusers.help/t/rest-api-shpdtl-post-error/80494/2 "2021-07-12T20:16:59Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![hutchesonsteven](https://www.epiusers.help/letter_avatar_proxy/v4/letter/h/e19b73/32.png) [@hutchesonsteven](https://www.epiusers.help/u/hutchesonsteven)\
**Post date:** [July 12, 2021, 8:27pm UTC](https://www.epiusers.help/t/rest-api-shpdtl-post-error/80494/3 "2021-07-12T20:27:44Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![hutchesonsteven](https://www.epiusers.help/letter_avatar_proxy/v4/letter/h/e19b73/32.png) [@hutchesonsteven](https://www.epiusers.help/u/hutchesonsteven)\
**Post date:** [July 12, 2021, 8:29pm UTC](https://www.epiusers.help/t/rest-api-shpdtl-post-error/80494/4 "2021-07-12T20:29:26Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Olga](https://www.epiusers.help/letter_avatar_proxy/v4/letter/o/57b2e6/32.png) [@Olga](https://www.epiusers.help/u/Olga)\
**Post date:** [July 12, 2021, 11:14pm UTC](https://www.epiusers.help/t/rest-api-shpdtl-post-error/80494/5 "2021-07-12T23:14:35Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![hutchesonsteven](https://www.epiusers.help/letter_avatar_proxy/v4/letter/h/e19b73/32.png) [@hutchesonsteven](https://www.epiusers.help/u/hutchesonsteven)\
**Post date:** [July 13, 2021, 12:45pm UTC](https://www.epiusers.help/t/rest-api-shpdtl-post-error/80494/6 "2021-07-13T12:45:14Z")

</div>

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