The function visible is called at the end to display the excel file. If it is happening once in a while, then they are doing something different. See if you can replicate it.
Ahmed Rashed Amini
Independent Consultant/Developer
I've seen this happen with some of my users, but I could never really diagnose it. However, it may be because a user is possibly cancelling the Excel export generation, and then trying it again. Since the Visible property was never cleared out, it could possibly cause a problem. But, I've never really been able to fix it, and it only happens to certain users, so it very well may be a user problem.
Well, you can try to fix it by finding in table's 370 code CREATE(xlApp) and change it to CREATE(xlApp,True).
This will create separate Excel process only for Navision, and of course uses twice memory but user working concurently with Excel will not interfere with Navision process.
Comments
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
This will create separate Excel process only for Navision, and of course uses twice memory
Regards,
Slawek
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03