Error when trying to print invoices in Invoices and Memos Processes

  • 22 June 2021
  • 1 reply

Userlevel 4
Badge +1

This issue popped up over night.. i have made no new customizations and have not edited the form at all. There has been no changes at all. Was working fine yesterday but not today. Here is the error i am getting:

Error: An error occurred during processing of the field UsrSelectedTerminal: Unable to cast object of type 'System.Int32' to type 'System.String'..

Anyone have any ideas what is causing this and how to fix it?

Any help is appreciated. Thank you!


Best answer by markusray17 22 June 2021, 16:57

View original

1 reply

Userlevel 6
Badge +5

That’s a custom field so it is hard to say exactly but the issue is that somewhere it is trying to implicitly cast an int32(whole number) to a string(word/text). In C# it doesn’t implicitly(automatically) allow int32 to be converted to a string. Essentially something is trying to put a number(int32) in a word/text(string) data field without explicitly converting it to a string.

The issue is definitely within the customization related to UsrSelectedTerminal. 


About Acumatica ERP system
Acumatica Cloud ERP provides the best business management solution for transforming your company to thrive in the new digital economy. Built on a future-proof platform with open architecture for rapid integrations, scalability, and ease of use, Acumatica delivers unparalleled value to small and midmarket organizations. Connected Business. Delivered.
© 2008 — 2024  Acumatica, Inc. All rights reserved