Reputation: 45
I encountered one exception during stepping, I clicked Ok and set next stage to a previously executed stage. In these kind of scenarios blueprism mostly give below error :
"Internal : stack imbalance has reached"
Why am I getting this error?
Please help.
Upvotes: 1
Views: 7108
Reputation: 11
This error is thrown when you are in recover mode (an exception has already occurred but has not cleared by a resume stage) and manually set to run another stage and and another exception occur again.
Upvotes: 1
Reputation: 31
I started working on BluePrism just few months back, and believe me I have got this error a lot of times. According to what I have noticed, this error occurs in debug mode. That is when you are running your code by "Stepping In".
If you have run a Stage, and stepped in while the current Stage is still running you'll get this error.
To get your code back running, you can try the below:
Upvotes: 0
Reputation: 19
It is most likely that you didn't handle the exception properly by passing the exception through Resume and Recover. If the an exception broke it must go through Recover and Resume to be resolved or else it will throw Stack imbalance Error
Upvotes: 0
Reputation: 470
Stack imbalance errors can happen in Blue Prism if:
To recover from a Stack Imbalance error you can:
Upvotes: 6
Reputation: 301
Stack imbalance is caused by moving too fast forward while in debug mode. I can't know exactly how it works but I suspect the behavior is as follows:
When you press F10(Jump over), you will execute the process and system will push a return adress to the stack. If you then press F10 again before exiting the first process you will push new things onto of the stack and now you have created an imballance on the stack and the return adress will be false when the first process tries to pop from the stack.
To know more about the stack in general see wiki link: Wiki Call Stack
Upvotes: 2