We recently installed NAV 4.0 SP3 with NAS on our customers server. Now I have noticed something very strange: The NAS is setup to export data into text files (no import). The database size is increasing a lot while NAS is running and after just a few days the size has increased about 10G. When restarting NAS the database size immediately drops to normal again, and then the same behavior over and over again.
Anyone had any similar experience with NAS?
Navision developer
0
Comments
I'm assuming that you're talking about SQL database, and the database i in simple recovery model.
Most probably you have somewhere in your code explicit LOCKTABLE. Or maybe your NAS executed code writes something to one of the tables (why not ? yuo've said that it only exports the data but perhaps also logs what and when was exported), which leaves you open transaction(s). Since the transaction)s) remains open SQL log file can't be reused, all subsequent transactions are logged after this one and kept in log file. As soon as you stop NAS the transaction is closed and log space is marked empty and reusable.
Regards,
Slawek
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03
Thing is we have had NAS running the exact same code when the customer was on NAV 4.0 with Windows server 2003.
Thanks for your answer
Are U using a report to export the data? Perhaps it has TransacionType set to Snapshot, and report variable is not cleared after finishing the export process...
Regards,
Slawek
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03
That's my guess only. Perhaps it sounds stupid but did you try to insert COMMIT just after CODEUNIT.RUN(50022) ?
Regards,
Slawek
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Definitely worth trying even if COMMIT helps.
Regards,
Slawek
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03