Dear All,
An Enduser is facing the below error message during execution of Export To Excel Report in NAV 2016.
Microsoft Dynamics NAV
A call to Microsoft.Dynamics.Nav.OpenXml.Spreadsheet.WorkbookWriter.Create failed with this message: Could not find a part of the path
'C:\ProgramData\Microsoft\Microsoft Dynamics NAV\90\Server\MicrosoftDynamicsNavServer$DynamicsNAV90\
users\default\Woods\TEMP\__TEMP__589ed7d71b1c4d29b30f4815e1a78ac2.tmp.xlsx'.
OK
All dot net variables have RunOnClient property = yes in Excel Buffer Table.
But when Users are trying to execute the export to excel report built on Excel Buffer, the generated excel file is trying to find the path in the NAV Server instead of Local Temp path.
How to solve it ?
Now or Never
0
Answers
If your writer is declared with RunOnClient property = yes no wonder it cannot find the file.
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03
Should I change the RunOnClient property YES To NO in Excel Buffer Table ?
But Few User are able to generate the excel file without any issue.
The general rule is if var does not have to interact with any local resource there is no need to declare it with RunOnClient=Yes.
Standard write to excel works by creating a temp file on the NST, writing all necessary stuff in there, closing the temp file, downloading it to the client and then opening it in Excel.
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03
After that I have tried to execute the same report but found that no one is able to execute the export excel report (Which are built in Excel Buffer Table)
I have checked...
I would search for errors in there (in custom code in report 6), not in the Excel Buffer table.
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03
I have checked in Default database, no doubt from my side.
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03
The problem was in the Excel Buffer Table.
Now Every Users are able to execute as per last information received from the client Site.
Thanks to everybody for their Time.