Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

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

(0) ShareShare
ReportReport
Posted on by

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? 

Thanks!

  • CFROTON Profile Picture
    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

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 601 Most Valuable Professional

#2
Abhilash Warrier Profile Picture

Abhilash Warrier 416

#3
Adis Profile Picture

Adis 384 Super User 2025 Season 1

Product updates

Dynamics 365 release plans