Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Suggested answer

Dexterity Startup script running twice

Posted on by 25

Does any one know why the Startup script in Dexterity would run twice when GP opens?

I have some triggers to add options to the Additional menu's on some window and they are ending up in there twice.

I traced it to the Startup script running twice and do not know why that happened.

Categories:
  • David Musgrave MVP GPUG All Star Legend Moderator Profile Picture
    David Musgrave MVP ... 13,926 Most Valuable Professional on at
    RE: Dexterity Startup script running twice

    So it was two chunks....

    You must have changed the name and/or ID to make that happen.

    I suggest using a macro to run the chunking process so that it is the same each time.

    See the series below on how to set up your development environment:

    https://winthropdc.wordpress.com/2017/07/12/dexterity-development-environments-series/

    Regards

    David

  • DavidGibbons Profile Picture
    DavidGibbons 25 on at
    RE: Dexterity Startup script running twice

    Thank you.

    This lead me to look at the dynamics.set file.

    I found that there was 2 references to the same .DIC file, hence it was running twice.

    Once I removed the duplicate reference it was only running the Startup script once.

  • Suggested answer
    David Musgrave MVP GPUG All Star Legend Moderator Profile Picture
    David Musgrave MVP ... 13,926 Most Valuable Professional on at
    RE: Dexterity Startup script running twice

    Hi David 

    The Startup script should only run once per dictionary.

    I would expect that you have two chunks installed or have the development Dynamics.dic with code in the live environment.

    What happens in test mode?

    Try adding a warning str(Runtime_GetCurrentProductID()); statement into the Startup script to see what is running in what dictionary ID.

    Regards

    David

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans