I have upgraded the code from 19.x to 22.1. After upgraded the code I’m trying to add Variable into global file but while saving the global I’m getting Fattal error. due to this i’m unable to add the Variables into globals.
I’m attaching the Error screenshot.
@BaratamR I think this might be an issue with the specific component mentioned in the exception. 22.1 no longer uses the Robot Inspector from 19.1 and any older copies you may have had will likely not be compatible with the changes to 22.1’s core components. I would delete that component from your Globals as there are now updated ways of testing your automations in 22.1 that no longer utilize Robot Inspector.
@ThomasSasnett Yes as per you i have deleted the Robot inspector in code in Version 19.1 and i have upgraded the code into 22.1.
Again, if im trying to add a variable into global, Global variables blocks are disconnecting in all automation wherever i used those variables. im not sure what i do here.
@BaratamR Can you upload your Globals.pGlobals file? If you cannot upload it here, I would open a support request and provide it to support (I would provide them with the entire project, but for here the Globals should be sufficient).
@BaratamR Can you try deleting the following line (it is line 28 when viewed in Notepad++)?
If this doesn’t work, what build of 22.1 are you using? I am using 22.1.31 and could not reproduce the issue. I do not have the CS files for the scripts to be able to fully validate the Globals. That would be required before I can really be assured that the Globals is usable. Are you able to validate all of the script containers?