Skip to main content
Solved

Error when trying to print invoices in Invoices and Memos Processes

  • June 22, 2021
  • 1 reply
  • 295 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. 

View original
Did this topic help you find an answer to your question?

1 reply

Forum|alt.badge.img+5
  • Jr Varsity II
  • 237 replies
  • 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. 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings