Hello.
I have a process that has been running correctly for a long time. This week I needed to modify it due to a change in the website it works with, and I’m getting the following error:
Login_Cas_T - Invoke workflow file (Functions\Login_Cas_T.xaml): 818, 555, 300, 38 is not a valid value for Int32. (Parameter ‘value’)
I checked the forum and saw this error, but the solution isn’t valid.
After a long time of testing, I decided to start with a clean project to develop it again, and to my surprise, the error keeps happening again. Right now I have two functions:
Login_CAS_P: Obtains credentials from the orchestrator and logs in to a website. Everything is OK.
Login_CAS_T: Is a copy of the previous one, changing the credentials. It gives an error while processing.
If I change the order of the functions, the one that was previously giving an error works, but the other one now gives an error:
Login_Cas_T: 818, 555, 300, 38 is not a valid value for Int32. (Parameter ‘value’)
I’ve been removing activities to a minimum, and the second-most function gives me an error when I try to run “Use Application/Browser.” If I remove it, everything ends and the error doesn’t occur. The two functions are identical, and the error occurs before entering the second function.
All of this happens after the latest updates; everything was fine before.
Function:
Could you please review the variables/arguments being used for this workflow. somewhere value/variable you are passing is defined as Int32 but value being received in it is not right.
Usually the Assign activity System.Threading.Thread.CurrentThread.CurrentCulture with value new CultureInfo("xx-XX") or when the CultureInfo settings affect the parsing of numerical values, particularly when formatted differently than expected by the system is causing such issues.
Try these workarounds before every Invoke Workflow File activity which are impacted:
Approach #1
Reset the CultureInfo settings to the default (en-US) temporarily before invoking the workflow activity.
Hello.
By reducing the process, I only use five variables:
I get the login variables from the orchestrator, and they’re correct.
The error variables are used to read the error text, and the Boolean variable is used to check a popup. I don’t have any arguments right now.
I added before each function and it now works correctly. I’ll continue testing.
This error occurs after updating versions; everything worked fine before.
System.Threading.Thread.CurrentThread.CurrentCulture = New System.Globalization.CultureInfo(“en-US”)
System.Threading.Thread.CurrentThread.CurrentUICulture = New System.Globalization.CultureInfo(“en-US”)
Thank you very much for the help.