Skip to main content
Answer

Error when trying to print invoices in Invoices and Memos Processes

  • June 22, 2021
  • 1 reply
  • 320 views

stacy16
Varsity I
Forum|alt.badge.img+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

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. 

1 reply

Forum|alt.badge.img+5
  • Jr Varsity II
  • Answer
  • June 22, 2021

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.