Skip to main content
Solved

Odd Error Message in Create Production Order Screen

  • May 18, 2026
  • 5 replies
  • 28 views

I am trying to create a production order from the production order screen and am getting the following error message:

AM Error: The following error occurred when the system tried to copy the BOM: Unable to cast object of type 'PX.Data.PXSegmentedState' to type 'System.String'.

I have checked the BOM and cannot find anything wrong with it. 

Has anyone ever seen this message or know what it’s looking for? 

 

 

Best answer by mohammadnawaz51

@josborn02 ​@EliseMcG 

If you are on 24R2, this is a known issue with phantom type materials not having a BOM defined (or they had a BOM set that is now inactive). I would check both stock item level and item warehouse details level to make sure an active BOM is set for any materials that are phantom BOMs. 

 

5 replies

josborn02
Varsity III
Forum|alt.badge.img+3
  • Varsity III
  • May 18, 2026

Can you check the References tab in Production Order Maintenance and confirm the correct BOM is showing there?  Also, can you confirm the BOM is released?


  • Author
  • Freshman I
  • May 18, 2026

I can confirm that the BOM is correct and released. 


josborn02
Varsity III
Forum|alt.badge.img+3
  • Varsity III
  • May 18, 2026

Are there any customizations to the Production Order Maintenance screen?  Also, can you check the segemented keys for Production Orders? This error typically references a segmented key plain text error.


mohammadnawaz51
Jr Varsity II
Forum|alt.badge.img+6

@josborn02 ​@EliseMcG 

If you are on 24R2, this is a known issue with phantom type materials not having a BOM defined (or they had a BOM set that is now inactive). I would check both stock item level and item warehouse details level to make sure an active BOM is set for any materials that are phantom BOMs. 

 


  • Author
  • Freshman I
  • May 18, 2026

Thanks!!!! There was an item that didn’t have a BOM that was marked as phantom! 

it’s working fine now! 

Thanks again!!