web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics SL (Archived)

Fatal Exception occurred in VBA

(0) ShareShare
ReportReport
Posted on by 900

When I try to open the Payment Application screen, I get "Fatal Exception occurred in VBA and was caught by .\vba.ccp at line 332". I can't open the screen to troubleshoot the vba code. The screen opens with no errors in Standard level. I am opening the screen from the Server, we just upgraded to SL 7, other customized screens open without a problem.

 Any help would be appreciated

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at

    Does it allow you to open the screen when you check the "exclude event code" in the select Cusotmization Level (91.260.00) screen?

  • Q Profile Picture
    900 on at

    I get the same error even when I check the option

  • pbrattin Profile Picture
    1,850 on at

    Adding the following lines to the Solomon.inn on the computer will usually fix the problem..

    [Customization]

          VBASourceSave=No

          VBASourceCompile=Yes

     

     

     

  • pbrattin Profile Picture
    1,850 on at

    That's Solomon.ini not Solomon.inn. Fat fingers. Location of Solomon.ini is defined in

    Article ID : 2005087 in KnowledgeBase in Customersource.
    .

  • Q Profile Picture
    900 on at

    I added

    [Customization]
    VBASourceSave=No
    VBASourceCompile=Yes

    to the bottom of

    C:\Users\<username>\AppData\Roaming\Microsoft Dynamics SL\solomon.ini

    I am still getting the same "fatal..." message

     

  • pbrattin Profile Picture
    1,850 on at

    Did you figure out this error and fix it?

  • Q Profile Picture
    900 on at

    Yes and No.

    We opened a MS support case and followed their recommendations but we also did our own troubleshooting , so we are nto 100% sure which steps solved it but I can tell you that MS supoprt said:  

    It may also be beneficial to delete your user-specific swimapi.kpr and swimapiex.exd files and allow them to recreate.  These files are responsible for the loading of customizations prior to screen load.  The following are step-by-step instructions for adding the [customization] section to the Solomon.ini and removing your .kpr and .exd files.  Since the [customization] section should force customizations to recompile, we will skip exporting/deleting/re-importing for now:

     

    1.  On the server, browse out to the SL root directory.  It should be something like C:\Program Files\Microsoft Dynamics\SL\Applications.
    2.  

    3. Locate the Solomon.ini file and open with NotePad.
    4.  

    5. Add the following at the bottom:
    6.  

       

      [customization]

      Vbasourcesave = no

      Vbasourcecompile = yes

       

    7.  Save and Close the Solomon.ini file.
    8.  

    9. You will likely need to exit and re-launch SL for the change to take effect.
    10.  

     

    Next, let’s browse to your user profile and locate the swimapi.kpr and SWIMAPIEx.exd files:

    1.  These should be in the following path:

      C:\Users\<yourUserID> \AppData\Roaming\Microsoft Dynamics SL\APC
    2.  

       

      If you do not see that path, you may need to enable the visibility of hidden files/folders.

    3.  Once located, delete the swimapi.kpr and swimapiex.exd files. 
    4.  

    5. The next time a customized screen is launched these should automatically recreate.
    6.  

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics SL (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans