Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

GP 2015 Performance Optimization

(0) ShareShare
ReportReport
Posted on by

Upgraded recently from GP 10 to 2015. Went from a physical server to a VMWare environment. I have recently begun looking into doing some performance optimization. 

Using this as my guide:

https://support.microsoft.com/en-us/kb/898982

First thing I noticed was that I don't have PJOURNAL cleanup job. 

https://community.dynamics.com/gp/f/32/t/142342

According to this I should be looking for smCleanupCompanyPostingJournalEntries.  All I have is smCleanupPostingJournalEntries? I then looked in the GP/Utils folder only to find grant.sql? So the question becomes should I have the SPROC installed, and if so why didn't it get installed with the upgrade and patch I installed?

What else may be missing?

*This post is locked for comments

  • Community Member Profile Picture
    on at
    RE: GP 2015 Performance Optimization

    I was able to pull the job from a backup and add it to my production environment.

  • Verified answer
    Beat Bucher  GP Geek  GPUG All Star Profile Picture
    28,058 Moderator on at
    RE: GP 2015 Performance Optimization

    OK,

    Did you do a backup of your previous GP10 program folder ? basically the SQL script hasn't changed over the course of the various GP Releases... I just found it strange that it is missing in your GP 2015 program folder...

    I checked my TEST GP 2015R2 server, which is an upgrade from GP2010R2 and the file is in the SQL\Util folder too.

    Even if you don't have another instance of installed GP client, you could extract the 3 SQL scripts from the GP.CAB file that is located on the ISO DVD image of GP (any version).

    The .CAB file is located in the sub-folder \Bin on the DVD and when opening the GP.cab file with 7-Zip or windows explorer, locate the files starting with SqlUtil_xxxx. Extract them and rename them based on their content (should be fairly easy to identify). One file will be the dex_req.sql, another Grant.sql and the last one PJJob.sql.

    Hope this helps.

  • Community Member Profile Picture
    on at
    RE: GP 2015 Performance Optimization

    As I said before no script in the SQL\Util folder.

    I was able to run a restore of my old SQL server and found the job.

    Could this be something M$ forgot to add to the build? I would think the standard install would check for this?

  • Suggested answer
    Beat Bucher  GP Geek  GPUG All Star Profile Picture
    28,058 Moderator on at
    RE: GP 2015 Performance Optimization

    Hi Matt,

    Typically if this job doesn't exist in the SQL Agent job task schedule, than you should recreate it..

    There is a SQL script readily available in the your GP client folder. Look for the sub-folder SQL\Util for the file PJjob.sql. Run this against your Dynamics GP SQL instance (msdb database) and it will re-create the task.

    The task will then periodically run against the DYNAMICS database and execute the smCleanupCompanyPostingJournalEntries stored procedure. Nothing else..

  • Community Member Profile Picture
    on at
    RE: GP 2015 Performance Optimization

    Just looked again, no job.

     

    The PJOURNAL table has 23000 records in it…

  • Suggested answer
    Beat Bucher  GP Geek  GPUG All Star Profile Picture
    28,058 Moderator on at
    RE: GP 2015 Performance Optimization

    How did you made the GP 2015 setup ? the PJOURNAL cleanup job is part of the regular GP installation and only gets a SQL Agent Job entry on your SQL server... there is no maintenance task created.. just a job.

    Open your SQL management console and jump to the SQL Agent job window. You should see a scheduled job that runs every x-minutes (If not mistaken, it's every 30 minutes).

    Check this thread as well : https://community.dynamics.com/gp/f/32/t/142342

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