Hi all,
I'm upgrading a process from NAV2009 Classic that takes a small MSAccess file (.mdb) and uses the JET OLEDB driver to import this data into NAV.
In NAV2016, the process requires (as far as I know) that you create a temporary file on the server and upload the file to that temporary file. Then, the NAV codeunit can find the file.
I'm using "standard" functions in CU419 (File Management) to create the temporary file and upload the file
When I select the .mdb file, I get the following error:
I did a test and renamed the .mdb file to .txt, and it uploaded just fine.
So, my question is if this is a restriction of CU419/NAV, or is this a Windows security type of error that has nothing to do with NAV?
Thanks in advance,
Ron
I'm upgrading a process from NAV2009 Classic that takes a small MSAccess file (.mdb) and uses the JET OLEDB driver to import this data into NAV.
In NAV2016, the process requires (as far as I know) that you create a temporary file on the server and upload the file to that temporary file. Then, the NAV codeunit can find the file.
I'm using "standard" functions in CU419 (File Management) to create the temporary file and upload the file
FileName := FileMgt.OpenFileDialog('Select Access Import File','','All Files (*.*)|*.*');
ServerFileName := FileMgt.UploadFileSilent(FileName);
When I select the .mdb file, I get the following error:
The file that you are trying to create cannot be created. The destination file has an extension that may be blocked. Contact your system administrator.
I did a test and renamed the .mdb file to .txt, and it uploaded just fine.
So, my question is if this is a restriction of CU419/NAV, or is this a Windows security type of error that has nothing to do with NAV?
Thanks in advance,
Ron