Skip to main content



No record found.

Microsoft Dynamics SL forum

VBA 20406 error; ROI.exe; Remote Desktop (RDP)

Posted on by Microsoft Employee

I'm working with a client to upgrade to SL 2018 CU5. Right now we're in the testing phase, using RDP to connect to the server.


I've got one user who, when trying to access some customized screens, receives a 20406 VBA error. They also cannot run reports as ROI is not invoking properly. We created a new network user with their same network permissions and SL permissions. That user was able to access the screens and run without issue.


Thinking that the problem was perhaps corruption in the user, I deleted the login from SL and deleted the corresponding SQL user in SQL server. I then recreated the user, and ran Sync Ownership, all to no avail.


Has anyone else seen this, or have suggestions on where to go next? 


  • CFROTON Profile Picture
    CFROTON 4,710 on at
    RE: VBA 20406 error; ROI.exe; Remote Desktop (RDP)

    Dear Stuart,

    It could be that users access rights to the SL program files, but I've seen this resolution:

    •Locate the APC folder (C:\Users\User Name\AppData\Roaming\Microsoft Dynamics SL\APC).

    •By default the APC folder is hidden due to some security reason. You may need to enable the visibility of hidden files / folders.

    •Delete the swimapi.kpr and swimapiex.exd files. These files are responsible for the loading of customizations prior to screen load.

    •On launching the customized screen again, these files will be recreated.

    Jana MacDonald

    MSFT Support

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .


André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 287,696 Super User

Martin Dráb Profile Picture

Martin Dráb 225,490 Super User

nmaenpaa Profile Picture

nmaenpaa 101,148


Featured topics

Product updates

Dynamics 365 release plans