Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

The Microsoft_Dynamics_GP.vba project references some objects that cannot be found. these objects are listed in the file: C:\Program Files\Microsoft Dynamics\GP\Dynamics.txt.

(0) ShareShare
ReportReport
Posted on by

I have removed some fields in transaction window then i have commented related code in vba editor even though i am getting  an error  The GreatPlains.vba project references some objects that cnot be found when i open the Gp. can some one help me to fix this error.Before getting loggin this pop up is coming 

*This post is locked for comments

  • Community Member Profile Picture
    on at
    RE: The Microsoft_Dynamics_GP.vba project references some objects that cannot be found. these objects are listed in the file: C:\Program Files\Microsoft Dynamics\GP\Dynamics.txt.

    Thanks david for the giving the required information

  • Verified answer
    David Musgrave MVP GPUG All Star Legend Moderator Profile Picture
    14,036 Most Valuable Professional on at
    RE: The Microsoft_Dynamics_GP.vba project references some objects that cannot be found. these objects are listed in the file: C:\Program Files\Microsoft Dynamics\GP\Dynamics.txt.

    Hi Varaprasad,

    Your problem is that you have deleted the fields which were previously added (exposed) to VBA.  The references are still in the VBA data for that window and that is why you are getting the errors.

    The solution is to cut and paste your source code to notepad. Then remove the window from VBA. Add it back and add only the fields used in your scripts. Then paste the script back. Problem solved.

    There is no way to remove a field from VBA, so you must use this approach to adjust the fields exposed to VBA.

    Please note when modifying windows do not delete any of the original fields or you can break code.  If you don't want a field, change it to Visible=False, Editable=False, TabStop=False and move it outside the window.

    It is okay to delete fields you added, but if they were added to VBA, you will need to go through the steps above to remove the reference.

    Hope this helps

    David

  • michelle brayton Profile Picture
    95 on at
    RE: The Microsoft_Dynamics_GP.vba project references some objects that cannot be found. these objects are listed in the file: C:\Program Files\Microsoft Dynamics\GP\Dynamics.txt.

    The vba references need to be included in the gp install directory.  You should see a file for Dynamics.vba

  • Suggested answer
    Beat Bucher  GP Geek  GPUG All Star Profile Picture
    28,058 Moderator on at
    RE: The GreatPlains.vba project references some objects that cannnot be found

    Under what Microsoft Plan (and which GP version) does this customer work ?

    Eventually the customer already has access to the module Field Level Security, and in this case it will much easier to 'hide' the fields with FLS rather then trying a VBA customization that may not be supported in the next upgrade...

  • Community Member Profile Picture
    on at
    RE: The GreatPlains.vba project references some objects that cannnot be found

    Hi Beat Bucher  yes i working on gp first time.i am working client's server which has already installed gp .he requires two fields to be removed from transaction entry window.so i removed from modifier and i forgot to remove from vba editor later i commented the related code in vba .eventhough i am getting same error

  • Suggested answer
    Beat Bucher  GP Geek  GPUG All Star Profile Picture
    28,058 Moderator on at
    RE: The GreatPlains.vba project references some objects that cannnot be found

    Hi Varaprasad,

    Was this a first-time customization for GP (i.e. never had VBA code before) ? What form did you modify ? Did you add some non-standard objects to the form / report ?.

    The point with VBA if you add some library references in your code, is that you need to make sure that all other GP clients where the VBA code is implemented has the proper libraries installed and registered in the system... Many times developers are using not commonly deployed DLL's and forget to make them part of the installation package when deploying their solution.. this can typically lead to that kind of error messages.

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 > 🔒一 Microsoft Dynamics GP (Archived)

#1
Almas Mahfooz Profile Picture

Almas Mahfooz 3 User Group Leader

Featured topics

Product updates

Dynamics 365 release plans