# BPM on ShipHead throwing an error

**URL:** <https://www.epiusers.help/t/bpm-on-shiphead-throwing-an-error/114021>\
**Category:** Epicor ERP 10\
**Tags:** customer-shipments, edi, e10\
**Created:** [April 23, 2024, 10:03pm UTC](https://www.epiusers.help/t/bpm-on-shiphead-throwing-an-error/114021 "2024-04-23T22:03:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jhecker](https://www.epiusers.help/user_avatar/www.epiusers.help/jhecker/32/55571_2.png) [@jhecker](https://www.epiusers.help/u/jhecker)\
**Post date:** [April 23, 2024, 10:03pm UTC](https://www.epiusers.help/t/bpm-on-shiphead-throwing-an-error/114021/1 "2024-04-23T22:03:06Z")

</div>

We have a Standard Data Directive BPM that fires on ShipHead when a pack is marked as Shipped. The BPM does an AutoPrint for EDI ASN’s (856). The BPM is quite simple, as shown here:  
 ![image](https://www.epiusers.help/uploads/default/original/3X/3/8/385c855d5cda3def7d15e3a48aa7e0f63e76394e.png)

The Conditions for Condition 0 are:

 ![image](https://www.epiusers.help/uploads/default/original/3X/e/a/ea6dd6ee1aaf0cd91f65a7a94cbfddbb698e9961.png)

The AutoPrint is:  
 ![image](https://www.epiusers.help/uploads/default/original/3X/a/1/a1d64e9e10627aabc512ca0e8669d79850cb5523.png)

But, for some reason when we go and mark a Pack ID as shipped, we are getting the following error:

 ![image](https://www.epiusers.help/uploads/default/original/3X/3/6/36067a879a2d067f88d80fc600ac101747416297.png)

Description: Shipment Not Available ← Uhhh…what now? How is the shipment not available in a BPM that is triggered by a shipment?

---

<div class="post-metadata">

**Author:** ![jhecker](https://www.epiusers.help/user_avatar/www.epiusers.help/jhecker/32/55571_2.png) [@jhecker](https://www.epiusers.help/u/jhecker)\
**Post date:** [April 23, 2024, 10:08pm UTC](https://www.epiusers.help/t/bpm-on-shiphead-throwing-an-error/114021/2 "2024-04-23T22:08:47Z")

</div>

Well, this would probably cause it…the PackNum being passed to the Report was ‘0’…

That explains the “why”…but now I need to figure out the “how”. (IE: what [or who] caused it).

![image](https://www.epiusers.help/uploads/default/original/3X/9/f/9f52c6de00b731661d4e3a67328cdc9d1a540443.png)
