Sometimes Invoke VBA error From Orchestrator

It is running fine yesterday from orchestrator and also today from Uipath studio. It just gave below error today from orchestrator.

Invoke VBA: Programmatic access to Visual Basic Project is not trusted

@PALKUMARI_PATEL

Trust settings are disabled for Excel files in that Robot machine because of that you are getting this error. Please check below thread and follow the steps to enable it.

It is already enable. It ran ok yesterday and today only it gives error. I tried to run from that machine by Uipath studio and it executed succesfully.

@PALKUMARI_PATEL

It looks weird. Is Bot using same user account credentials to login to the machine if you trigger it from Orchestrator ?

Hi @PALKUMARI_PATEL,

Could you please let us know if this process is a unattended background process?

Regards,
Ashwini Kempraj

Yes, this is unattended process.

Yes, same login.

@PALKUMARI_PATEL Did you use the same input file for studio and Orchestrator run

Hi @PALKUMARI_PATEL,

Is it background process?
What’s the hostidentity when the process is running?
Is it matching with the username specified for the bot?

Regards,
Ashwini Kempraj

Yes, same file. Sometimes it is giving me error and sometimes not. I don’t understand why?

Everything is same.

@PALKUMARI_PATEL Try killing excel process using kill process activity before excel scope

1 Like