Ctrl E on Page with Temporary Record
-
Ctrl E on Page with Temporary Record
Posted by Jason Wilder on August 15, 2017 at 9:49 am-
We have come across a bit of a performance issue when sending records to Excel using Ctrl+E on certain pages.Ā I can replicate this on demand in our test environment as well.Ā We are on NAV 2016 (executable version 9.0.47444).Ā
I created a nifty page that shows change log entries for certain pages such as sales orders or formulas.Ā For example, from a Sales Order you can go to the ribbon and click view change log and it fills a temporary Change Log entry variable with the Sales Header and Sales Line records for the order you are on and opens the Change Log Entry Page with these records.Ā If you happen to hit Ctrl+E to send the information to Excel our SQL server’s (which is very high end) CPU goes right to 100% and stays there.Ā Not only that but the process never stops.Ā If we kill excel and kill the NAV windows client it does not stop the query from running in SQL.Ā I can see it under “Active Expensive Queries” in Activity Monitor in SSMS.
The only way to get it to go away is to restart the NAV Service Tier.Ā You can try to kill the processes in sql but that is not so easy since they are shared and there are many processes for this one query.
I have found the root issue which is when you open a Page with a temporary record like this:
PAGE.RUNMODAL(5804,TempItemEntry);Ā Ā Ā Ā Ā Ā Ā (Codeunit 5801 “Show Applied Entries” OnRun trigger is an out of the box example of this)For some reason when you hit Ctrl E it seems to be sending the entire table to excel with no filters.Ā It almost makes sense (but it is bad!) that it is doing this since there are no filters on that page.Ā Also sending a large table to excel shouldn’t bring our SQL server to it knees either so there must be something else going on with Ctrl+E on top of this.
So this is most certainly a bug but wanted to know if anyone else has run into this on their version of NAV and if maybe it is fixed in a future version?
——————————
Jason Wilder
Senior Application Developer
Stonewall Kitchen
York ME
—————————— -
An interesting bug you found Jason. I just tried on our NAV 2013 test environment and received the same result where exporting from the Applied Entries resulted in exporting all Item Ledger Entries. I did not get the same results of taxing our SQL server perhaps because we have a small database with only 60,000 entries in the ILE.
I then tried in a Cronus NAV 2017 environment we have running and seems the issue was resolved. Only the Applied Entries exported to excel rather than every record in the Item Ledger Entry table.
——————————
Jonathan Kleist
NAV Administrator
Gustavo Preston
Chelmsford MA
——————————
——————————————- -
Thanks for the responses!Ā
Jon thanks for testing this out in NAV 2017.Ā We are planning a technical upgrade in the next month or so which should solve our problem based on your research!
——————————
Jason Wilder
Senior Application Developer
Stonewall Kitchen
York ME
——————————
——————————————- -
Jason Luchka
MemberAugust 16, 2017 at 9:33 AM
?We haven’t necessarily had this issue, but approached this from a different angle. On our Sales Header, we added an action to run a non-NAV report that was written with SSRS. It executes in seconds compared to 10 minutes when we used to let users access the Change Log directly, within NAV. Plus, the report has an option to save to excel (and many other formats) after it renders.——————————
Jason Luchka
Programmer / Analyst
FFR Merchandising, Inc.
Twinsburg OH
——————————
——————————————-
Jason Wilder replied 8 years, 11 months ago 1 Member · 0 Replies -
-
0 Replies
Sorry, there were no replies found.
The discussion ‘Ctrl E on Page with Temporary Record’ is closed to new replies.