Reading Excel from NAS

danielecacchi
Member Posts: 13
I've a Native database 5.0.
I've created a function to import data from excel files (through "Excel Buffer" functions).
As soon as I'm working from usual client (windows authentication) , it works fine.
If I try to work from NAS (with the same windows login) , I receive the error:
"The call to member Open failed.....", saying it can't access to the excel file that I correctly open from Client 5.0.
Is NOT supported reading excel files with under NAS?
Thank you in advance
I've created a function to import data from excel files (through "Excel Buffer" functions).
As soon as I'm working from usual client (windows authentication) , it works fine.
If I try to work from NAS (with the same windows login) , I receive the error:
"The call to member Open failed.....", saying it can't access to the excel file that I correctly open from Client 5.0.
Is NOT supported reading excel files with under NAS?
Thank you in advance
0
Comments
-
I've simulated everything on my computer (Vista): The service for native database , the client 5.0 and the NAS service (started with my own windows login which is member of the administartors of the computer).
And Excel 2007 installed.
I use a report with the classic
ExcelBuf.OpenBook(FileName,SheetName) and ExcelBuf.ReadSheet
to open and read excel files.
Well , with client 5.0 launching the report --> everything right;
with nas.exe called in a dos session --> everything right;
with NAS I've the error in the event viewer:
"This message is for C/AL programmers:
The call to member Open failed. Microsoft Office Excel returned the following message:
Impossibile accedere al file "\\miocomputer\Input\nomefile.xls". I motivi possibili sono:
• Il nome o il percorso" ,
where the message is truncated, but it says that it cannot access to the file, maybe the name or path is wrong.
Is there anyone reading excel file in NAS ? As I'm supposing excel 2007 not supporting undergroung reads.0 -
what if you digit the path in your "run..." window?(start>run..) from winxp?(i don't know where's on vista)
if the file is opened, the problem is somewhere else, if not, try to locate your file with the syntax appeared in the error, then digit it as the input file and retry0 -
The error I show is taken from the EventViewer of my PC, and if I double click on the excel file name in the error , I open the excel correctly.
As soon as I'm in a interactive environment , I've no problem.
If I'm in the service environment , I've all the problems. ](*,)0 -
0
-
jannestig wrote:
Thank you for help.
Yes , I've Read , but I am a step after.
That is , in function OpenBook (Table 370) there is :
..
IF NOT CREATE(XlApp,TRUE) THEN
ERROR(Text000);
XlApp.Workbooks.Open(FileName);
And the previous post there was the error Text000.("Excel not found")
On the contrary , my service is stopping in XlApp.Workbooks.Open(FileName).
I've re-installed excel , I've installed the NAS service in a dos session started with "Run as administrator" , but nothing.0 -
Hello.
Have you found solution for this?
I have the same problem on Windows Server 2008 and NAS running as a service on it.
Thank you.0 -
Hi all,
there are a couple of things you need to make sure off.
1. The NAS cannot handle any form of screen out/input, so make sure that your excel app is running in the background.
2. The user account that runs the NAS must have access to the excel file, excel buffer table.
3. When you load an excel sheet through the excel buffer table, the trigger will pop up a dialog window. You will have to prevent that with the GUIALLOWED statement.
When you have done all this, it will work. We did it like this.
Hope this helps,
WillyFostering a homeless, abused child is the hardest yet most rewarding thing I have ever done.0 -
Thank you for your advice, but I think this is not the problem I have here.
The problem started after server upgrade to Windows Server 2008 and exe upgrade from NAV400SP3 to NAV500SP1.
Before upgrade the same process worked fine on NAS.0 -
Hi,
Has anyone solved this problem?
I have exactly the same problem.0 -
The solution I have found here:
http://social.msdn.microsoft.com/Forums/en/innovateonoffice/thread/b81a3c4e-62db-488b-af06-44421818ef91
Regards.0 -
Does anyone have an idea how to solve this on Windows Server 2003 R2 + Excel 2010?
The folder C:\Windows\System32\config\systemprofile\Desktop already exists.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions