The type initializer threw an exception

I got the following error when I tried to run the sample robot:

SAP Application Scope: The type initializer for ‘UiPath.SAP.BAPI.ConnectionService.SapConnectionService.SapConnectionService’ threw an exception.

I found a similar QA on Forum and I also uninstalled and reinstalled the activity package.

(Community Edition error - #7 by dsb18)

But I am getting the same error.
I would like to know the cause and solution.


Hi @yukiota

Check out this document and thread