error on run record after machine crash
error on run record after machine crash
Hi,
I'm running my Ranorex on a virtual machine that crashed at some point. I was not working at the moment of the crash and all files were previously saved.
Before it happend I was working on some user code (called from a recording) - now as I try to run my recording I get: "Failed to validate if user code update is required. Failed to initialize user code. Index should be between 0 and 406." error. See attached the full information.
Now this kind of blocks me, could I please get fast a solution?
All the best,
D.
I'm running my Ranorex on a virtual machine that crashed at some point. I was not working at the moment of the crash and all files were previously saved.
Before it happend I was working on some user code (called from a recording) - now as I try to run my recording I get: "Failed to validate if user code update is required. Failed to initialize user code. Index should be between 0 and 406." error. See attached the full information.
Now this kind of blocks me, could I please get fast a solution?
All the best,
D.
You do not have the required permissions to view the files attached to this post.
Re: error on run record after machine crash
solved: the problem was in front of the keyboard - had nothing to do with the crash & co
anyway, that is a really funny error for a missing curly bracket
anyway, that is a really funny error for a missing curly bracket
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: error on run record after machine crash
Hi,
Thanks for informing us that you were able to solve the problem
.
This is strange, normally you should get another message if you just forget a curly bracket, maybe it was because of the crash and because something happened what in normal circumstances didn't happen.
Regards,
Markus
Ranorex Support Team
Thanks for informing us that you were able to solve the problem

This is strange, normally you should get another message if you just forget a curly bracket, maybe it was because of the crash and because something happened what in normal circumstances didn't happen.
Regards,
Markus
Ranorex Support Team
Re: error on run record after machine crash
Hi Markus,
It was code I wrote after the crash - and as I was trying to reproduce the error I got into something really bad
(good thing I had a back-up otherwise my work for about a week would be now gone).
I have a UserCode.cs file containing a structure like:
using ..
using..
namespace ...
{
public class ..
{
..
}
public class...
{
..
}
...
//and the generated
public partial class ....
{
..
}
}
as I got the first error I was missing the { of one of my classes (right after the class declaration) - the error you have above
as I was trying to reproduce it (i.e. took out one of the curly brackets, and clicked run record) I found myself in front of the almost empty user code file - only the skeletons of the generated class and user code method were there!!!! hence, all my classes and content of the user code method were gone!
It was code I wrote after the crash - and as I was trying to reproduce the error I got into something really bad

I have a UserCode.cs file containing a structure like:
using ..
using..
namespace ...
{
public class ..
{
..
}
public class...
{
..
}
...
//and the generated
public partial class ....
{
..
}
}
as I got the first error I was missing the { of one of my classes (right after the class declaration) - the error you have above
as I was trying to reproduce it (i.e. took out one of the curly brackets, and clicked run record) I found myself in front of the almost empty user code file - only the skeletons of the generated class and user code method were there!!!! hence, all my classes and content of the user code method were gone!
Re: error on run record after machine crash
happend again - on simple run! HELP!
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: error on run record after machine crash
Hi,
I wasn't able to reproduce the issue on my machine, so you really just deleted one bracket as described in the previous post?
Which Ranorex version are you using?
Did you already try to reinstall Ranorex, maybe some parts of Ranorex gets corrupted because of the crash.
You will find the link to the actual version on the start page of Ranorex Studio.
Regards,
Markus
Ranorex Support Team
I wasn't able to reproduce the issue on my machine, so you really just deleted one bracket as described in the previous post?
Which Ranorex version are you using?
Did you already try to reinstall Ranorex, maybe some parts of Ranorex gets corrupted because of the crash.
You will find the link to the actual version on the start page of Ranorex Studio.
Regards,
Markus
Ranorex Support Team
Re: error on run record after machine crash
first time it happend I did only remove a bracket; second time - it just happened without me doing anything special
Rx v3.3.1.18438
Did not try to reinstall yet. Will do
All the best,
D.
Rx v3.3.1.18438
Did not try to reinstall yet. Will do
All the best,
D.
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: error on run record after machine crash
Hi,
Please inform us if the re-installation helped, by the way a new Ranorex version was released, so please install the new one, you will find the link on the start page of Ranorex Studio.
Regards,
Markus
Ranorex Support Team
Please inform us if the re-installation helped, by the way a new Ranorex version was released, so please install the new one, you will find the link on the start page of Ranorex Studio.
Regards,
Markus
Ranorex Support Team
Re: error on run record after machine crash
Installed the 3.3.2 - so far, all good
I'll let you know if it happens again
Thank you!
D.
I'll let you know if it happens again
Thank you!
D.
Re: error on run record after machine crash
just happend again! after a simple run 
what can I do?

what can I do?
Re: error on run record after machine crash
Hi,
I experienced some mysterious Ranorex crashes at start of my Ranorex evaluation period. It turned out to be a problem with not installed latest Windows updates. So I updated my WinXP with most recent updates and all crashes stopped. Are you sure your machine is up to dated? Just a thought
I experienced some mysterious Ranorex crashes at start of my Ranorex evaluation period. It turned out to be a problem with not installed latest Windows updates. So I updated my WinXP with most recent updates and all crashes stopped. Are you sure your machine is up to dated? Just a thought

Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
Ranorex explorer at Descartes Systems
Please add these details to your questions:
- Ranorex Snapshot. Learn how to create one >here<
- Ranorex xPath of problematic element(s)
- Ranorex version
- OS version
- HW configuration
Re: error on run record after machine crash
Hi,
Ranorex is not crashing - just "kindly" loosing all my user-code without any aparent reason.
I'm using a Win Server 2008 R2 standard with SP1 - up to date.
Thank you for trying!
All the best,
D.
Ranorex is not crashing - just "kindly" loosing all my user-code without any aparent reason.
I'm using a Win Server 2008 R2 standard with SP1 - up to date.
Thank you for trying!
All the best,
D.
Re: error on run record after machine crash
oh joy! now it happens at every run - I'm stuck 
Huston, we have a problem!

Huston, we have a problem!
Re: error on run record after machine crash
Ah...sorry, I missed your post about "emptied" UserCode
Well, I experienced this problem too. Tell me, did you by any chance rename the Recording Module? Because I this is how I experienced this problem. I renamed the "Recording Module", I added some user code lines and after an attempt to run the test case I found the user code is gone. I was busy with other things so I forgot to report this issue. The bad thing is it does not happen all the time. Just sometime 


Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
Ranorex explorer at Descartes Systems
Please add these details to your questions:
- Ranorex Snapshot. Learn how to create one >here<
- Ranorex xPath of problematic element(s)
- Ranorex version
- OS version
- HW configuration
Re: error on run record after machine crash
Can't say for sure but I doubt I did this - more, I tried creating a new record and copy-pasting all the code in the new file - it happened again 
