Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

Inquiry unacceptably slow after upgrade to GP 2018 R2.

Posted on by 75,730

I have now done a few upgrades to GP 2018 R2(18.00.0672 or 18.00.628) and I have noticed that Inquiry->Purchasing->Transactions by Document has become unacceptably slow. I just performed a before and after upgrade test. On an image before the upgrade the screen appears populated almost instantaneously. After the upgrade it takes almost a minute for anything to appear. I believe I have seen this behavior reported previously. Are there any scripts available that I can run to return it to its previous state? I would be reluctant to perform any more upgrades until this is repaired.

*This post is locked for comments

  • Richard Wheeler Profile Picture
    Richard Wheeler 75,730 on at
    RE: Inquiry unacceptably slow after upgrade to GP 2018 R2.

    Tracy, send me a PM and I will email you what I have.

  • Tracy Matthews Profile Picture
    Tracy Matthews 330 on at
    RE: Inquiry unacceptably slow after upgrade to GP 2018 R2.

    Hi Richard, we are experiencing unacceptably slow performance with our GP2018 R2 env, we applied the Canadian Year end Tax upate and we are at 672 version.  So far we have encountered 15 screens that are a show stopper for us being able to upgrade to GP 2018.   We have tried the dropping and recreating the Stored Procedures via database maintenance (as recommended in this thread) and it didn't help. 


    You refer to the pmBuildTrxInquiryByDateRange stored procedure, and seeing differences between then from one env with regular performance and the slow one.


    Can you provide me with the 2 SP's - the fast one and the slow one so I can compare to what we have to see if ours is the "fast" one or the "slow" one.

    Thanks so much.


    Tracy Matthews

  • Richard Wheeler Profile Picture
    Richard Wheeler 75,730 on at
    RE: Inquiry unacceptably slow after upgrade to GP 2018 R2.

    Derek, I too have tried some additional testing. Both of these clients have decades of transactions. I have found that the All-In-One view is much quicker.  Also, I believe I need to train the users on the new functionality on the inquiry screen. Now the user much enter a range first and then click redisplay. By specifying the range the results do appear much quicker. There is still a significant delay so they will need to adjust to this delay.

  • RE: Inquiry unacceptably slow after upgrade to GP 2018 R2.

    I tested first with my GP 2018 (18.0.0496) and GP 2018 R2 (18.0.0672) environments, with the Inquiry->Purchasing->Transactions by Document process, filtering by dates of 1/1/1995 and 12/31/2028.

    I see it first mention the pmBuildTrxInquiryByDateRange procedure you mentioned, then it does a series of calculations in a TEMP objects and the MC020103 table. It then looks at the zDP_PM30200SS_2 procedure and then a SELECT 25 from the PM00200 table. In my GP 2018 R2 environment, these two scripts ran 10x, but with the sample company, the process takes only 3 seconds.

    My 18.00.0496 environment actually took longer, 6 seconds, but it still is running the same pmBuildTrxInquiryByDateRange procedure, then the calculations with TEMP and MC020103, before it begins the zDP_PM30200SS_2 procedure and SELECT 25 scripts about 10x, from the PM00200 table.

    That being said, the sample companies most likely don't have anywhere as near as many records as the client has in the tables (Payables: PM30200, PM20000, PM10000, PM10300, and PM10400 - Receivables: RM30101, RM20101, RM10201, and RM10301), so hard to get a accurate test to re-create what you may be seeing.

    Comparing the two versions of the pmBuildTrxInquiryByDateRange procedure, they're identical in the two versions, so nothing changed there. I'm curious what versions you saw when you looked at this procedure. I even looked at the GP 2018 RTM version, but didn't see the difference, or at least what the Beyond Compare application showed me.

    Speaking with the GP 'Applications' team who look more at this process, they haven't seen the issues arise with the upgraded version, but there was a bigger fix for it in the year-end for GP 2018:

    community.dynamics.com/.../microsoft-dynamics-gp-2018-u-s-year-end-update-released

    If you want to look into it further, I'd recommend opening a support case so we can look at it. What we'd probably want to do is run a SQL Profiler trace on an 'old' and 'new' environment to compare the two to see why one takes almost no time to process and the other takes a minute or more.

    If the client is already on 18.00.0672, other options they could look at using, as a work-around, are mentioned in the blog:

    4. You could look at pulling transaction document by customer or vendor first as that will pull information quick and still allow you to use the Document number search, such as Inquiry | Purchasing | Transaction by Vendor or Inquiry by Customer.  

    The all in one viewers are nice too with drill back capability.

    5. Review your data/tables and see how much history you may have and if you feel necessary look at archiving some of your older year data.

    You may also consider created a historical company prior to remove this information, depending on your need/ use of the information.

    Let us know if you have any questions. I'll be interested to see if others are running into this as well here on the forums.....

    Thanks

  • Richard Wheeler Profile Picture
    Richard Wheeler 75,730 on at
    RE: Inquiry unacceptably slow after upgrade to GP 2018 R2.

    Derek, even restoring the sp does not help much. This client starting using GP in 1995. If I chose to sort by date and enter the range of 01/01/1995 to 12/31/18 and click redisplay it takes almost 90 seconds for anything to appear on the screen. What is this routine doing now that it was not doing before?

  • RE: Inquiry unacceptably slow after upgrade to GP 2018 R2.

    You can use the Database Maintenance Utility to drop and re-create all stored procedures at the new GP 2018 R2 year end version you're on, as that will re-create all stored procedures for any or all databases and modules that you select, including the pmBuildTrxInquiryByDateRange procedure.

    As to why this stored procedure got updated on one of the two separate client upgrades, it's impossible to say if there weren't any actual error messages seen during the upgrade. Even having records in the DU000030 from a prior upgrade wouldn't affect stored procedures such as this.

  • Richard Wheeler Profile Picture
    Richard Wheeler 75,730 on at
    RE: Inquiry unacceptably slow after upgrade to GP 2018 R2.

    Let me clarify. I have done two upgrades for two separate clients. One experiences the sluggish performance and the other does not. There is no relationship between the two of them. Now I am concerned because I jut compared the pmBuildTrxInquiryByDateRange stored procedure between the two instances and there are differences.  If I run the version from the instance that works against the instance where it does not work, the screen now works the same on both instances. Obviously this script never got updated on the non-working instance. The bigger question becomes if this was missed how many other may have been missed?

  • RE: Inquiry unacceptably slow after upgrade to GP 2018 R2.

    If both servers are pointing to the same GP databases, it would be odd that a stored procedure or any object in the databases would be causing an performance hit on one server and not the other.

    On the server that is experiencing the issue, have you tried installing a new instance of Dynamics GP with the same version/build but without any third-party products or customizations installed, to test to see whether you still experience the same performance hit?

    If you still do, then it may be more a network or performance issue on the machine itself.

    Thanks

  • Richard Wheeler Profile Picture
    Richard Wheeler 75,730 on at
    RE: Inquiry unacceptably slow after upgrade to GP 2018 R2.

    Derek, the odd thing here is that I have applied the 2018 R2 year-end update on two servers. On one server I have this issue and on the other I do not. I am wonder if a stored procedure did not get updated on the one where performance is slow.

  • RE: Inquiry unacceptably slow after upgrade to GP 2018 R2.

    Richard, I'm wondering if you aren't running into the following:

    This problem manifested in association with new sorting options added to that window with the release of GP 2018. Here is a link to the new feature:

    community.dynamics.com/.../microsoft-dynamics-gp-2018-new-sort-options-on-many-windows-giving-the-user-easier-access-to-find-information

    The great news is this was fixed with the release of the January Hotfix for GP 2018:

    community.dynamics.com/.../microsoft-dynamics-gp-january-2018-hotfix-has-released

    Thanks

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

Featured topics

Product updates

Dynamics 365 release plans