Dynamics 2013 - When printing a report from an item card REPORT.RUN(reportno, TRUE, FALSE, Rec), the print dialog is displayed as usual. Select the Printer and click Print we intermittently experience the Navision client hanging with the print dialog box still open and more curiously the Item card behind clears all its fields as if the record has been deleted (but it hasn't) or the card has moved to a new record. It can happen on the first print or the 5th/6th/7th totally randomly.
Has anyone else experienced this or similar?
Life is for enjoying ... if you find yourself frowning you're doing something wrong
0
Answers
It could be caused by the content of the report - if you data set includes pictures, and the printed records actually has some picture data it could lead to massive amount of data transferred between server and the client, consuming lots of resources both on the NST and client PC
Slawek
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03
On trying to recreate the scenario, I can print a report, get another user to post a consumption and output journal (a locking issue maybe), during this process I run the report - enter parameters and print - at this point it hangs, doesn't return any rows and won't allow focus on the report dialog box to click cancel.
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03
I'd try to take printing out of posting, run it after the data is committed
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03
What's more confusing is that the production posting wasn't related to the Item I was looking at.
Try to log to the NST box and examine Application Event log. NST server inserts an entry if a query takes longer than predefined time - not sure however if that feature is available in 2013 version, but worth checking.
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03
Look at this Brent Ozar's blog entry to see how to set it up and how to read the data from the log file
Once you have it up and runnig re-try your test with posting/printing in parallel and see what gets logged, and get a proof that it is indeed locking related issue.
If you have too many locking events caought you may limit what gets logged by modify the example code and adding a WHERE clause after ADD EVENT .. (ACTION(...), like this
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03