cancel
Showing results for 
Search instead for 
Did you mean: 

Extended Excel VBO error in Control Room and Scheduler

NickiKristensen
Level 4

Hi all,

We have a problem with our Extended Excel VBO, but only when running a process containing it is running in Control Room or Scheduler.
If we run the process in Process Studio, no problems what so ever.
We receive the following error: "ERROR: Internal : Could not execute code stage because exception thrown by code stage: Exception has been thrown by the target of an invocation."

I have tried following this help article as well as this but to no avail. 

Have anyone found a solution to this issue? We are running on Windows Server 2016, display language English, but the location is Danish.
I have changed the "Language for non-Unicode programs" to English, but still no luck.

Thanks in advance



------------------------------
Nicki Kristensen
RPA Developer
IBC International Business College
------------------------------
7 REPLIES 7

AndreyKudinov
Level 10
I assuming you are testing on the same PC/VM, right?
Could you post a code that doesn't work? If any action crashes, then it could be something in init code - if you simply open VBO and run it's action, then init stage won't run.

------------------------------
Andrey Kudinov
Project Manager
MobileTelesystems PJSC
Europe/Moscow
------------------------------

GopalBhaire
Level 10

Try repairing the Office installation.

Also instead of adding code stage on initialize page, can you try modifying the culture in Global Code (Although it is similar)

Dim culture = New Globalization.CultureInfo("en-US", True)



------------------------------
Gopal Bhaire
Analyst
Accenture
------------------------------

Hi Andrey,
I'm using the same VM when testing the scheduler and when using Process Studio directly.
When running the actions manually in Object Studio (including Initialise), I encounter no problems.

------------------------------
Nicki Kristensen
RPA Developer
IBC International Business College
------------------------------

Hi Gobal,

I will try repairing Office.

I don't have the section in Global Code that you're mentioning, am I supposed to add it manually? In that case where?

------------------------------
Nicki Kristensen
RPA Developer
IBC International Business College
------------------------------

It's present on line 615 Dim culture = Thread.CurrentThread.CurrentCulture just replace it with Dim culture = New Globalization.CultureInfo("en-US", True)



------------------------------
Gopal Bhaire
Analyst
Accenture
------------------------------

I have tried both suggestions now, still no luck 😞

------------------------------
Nicki Kristensen
RPA Developer
IBC International Business College
------------------------------

GabrieleRodono
Level 2

Hi all,

I have the same problem reported in the thread (Excel VBO actions work in debug, but not executing from Control Room or Scheduling). I have already tried the proposed solutions but none of them solved the issue.

Are there any new solutions that have resulted in solving the issue?

Thanks in advance.