# POHeader.Calc\_ShipToAddrList wrong

**URL:** <https://www.epiusers.help/t/poheader-calc-shiptoaddrlist-wrong/59919>\
**Category:** Epicor ERP 10\
**Tags:** report-data-definiti\
**Created:** [September 18, 2019, 5:15pm UTC](https://www.epiusers.help/t/poheader-calc-shiptoaddrlist-wrong/59919 "2019-09-18T17:15:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Epicorus](https://www.epiusers.help/user_avatar/www.epiusers.help/epicorus/32/12102_2.png) [@Epicorus](https://www.epiusers.help/u/Epicorus)\
**Post date:** [September 18, 2019, 5:15pm UTC](https://www.epiusers.help/t/poheader-calc-shiptoaddrlist-wrong/59919/1 "2019-09-18T17:15:53Z")

</div>

I’m trying to debug an issue where our company address is being printed wrong on Purchase Orders.

In a related thread ([How are Data Definition "Calculated Fields" calculated?! - #18 by EpicorAnon](https://www.epiusers.help/t/how-are-data-definition-calculated-fields-calculated/37703/18)) it is established that for calculated fields in a Report Data Definition the actually calculation cannot be seen or changed by the user. But when our Crystal Report tries to use POHeader.Calc\_ShipToAddrList, instead of seeing it formatted as:

company\_name~address~city\_state\_zip~country…

It is instead passing:

city~address~city\_state\_zip~country

Company configuration and company maintenance both show the correct company name, as does every other place I have seen. There is another slight weirdness - in the database, the city is actually stored with a comma after it, and while this comma shows up in the city\_state\_zip line, it does _not_ show up in the first field where the name should be showing.

If this is an internally calculated field, I’m not even sure what we could have done wrong to get it messed up like this. How can I troubleshoot why this calculated field is passing the wrong company name?

---

<div class="post-metadata">

**Author:** ![jeromy](https://www.epiusers.help/letter_avatar_proxy/v4/letter/j/ecccb3/32.png) [@jeromy](https://www.epiusers.help/u/jeromy)\
**Post date:** [September 18, 2019, 5:54pm UTC](https://www.epiusers.help/t/poheader-calc-shiptoaddrlist-wrong/59919/2 "2019-09-18T17:54:16Z")

</div>

I want to say I ran into this issue about a year ago. Epicor confirmed it was a bug, so you might want to submit a case to verify. I believe we ended up creating the address by looking up all of the individual fields in the Db.

As to how to debug a calculated field, to the best of my knowledge, you can’t. Perhaps someone else has some ideas, but I’ve always been told calculated fields can’t be viewed without the SDK.

---

<div class="post-metadata">

**Author:** ![Jason\_Woods](https://www.epiusers.help/user_avatar/www.epiusers.help/jason_woods/32/80101_2.png) [@Jason\_Woods](https://www.epiusers.help/u/Jason_Woods)\
**Post date:** [September 18, 2019, 6:30pm UTC](https://www.epiusers.help/t/poheader-calc-shiptoaddrlist-wrong/59919/3 "2019-09-18T18:30:17Z")

</div>

It will be the address on the PO. This could be a plant address or other options. Is it possible that is the issue of which one it uses?  
Also, you can set the address layout for certain items.

---

<div class="post-metadata">

**Author:** ![Epicorus](https://www.epiusers.help/user_avatar/www.epiusers.help/epicorus/32/12102_2.png) [@Epicorus](https://www.epiusers.help/u/Epicorus)\
**Post date:** [September 19, 2019, 6:30pm UTC](https://www.epiusers.help/t/poheader-calc-shiptoaddrlist-wrong/59919/4 "2019-09-19T18:30:34Z")

</div>

I looked at the Erp.Plant table and the “Name” field contained the wrong value, so it definitely was related to that. When I brought up Site Maintenance, the site name matched the wrong value, so I changed it there and saved. But when I created a new PO, suddenly the address fields were all completely empty even though the name was right. Apparently they were all blank in Site Maintenance as well, but for some reason it was filling them in from somewhere else correctly until I fixed the site name. After I filled in the address fields in Site Maintenance it appears to be populating correctly.
