Fetch excel file through NAS

pralaykumardas
Member Posts: 3
Hello,
I implemented many projects through NAS. Recently I got surprised when I integrated NAS with excel file. The details of the project is given below,
We have to read some auto generated excel file through NAS by a scheduler. We installed NAS in Windows Server 2008 R2. Excel file reading code was written in a codeunit. While we call the codeunit, it reads the excel file from a particular location and writes in a particular table. We followed these three scenario.
i. We developed a manual button and called the codeunit behind the button.
Result: Data from the excel file was fetched and written in the NAV table perfectly.
ii. We called the codeunit from a timer and attached the timer at CompanyOpen Trigger. Set the timer for a particular time, by coding.
Result: Data from the excel file was fetched and written in the NAV table perfectly as per the time set in timer.
iii. We called the codeunit from a timer and attached the timer with NAS. Set the timer for a particular time, by coding.
Result: NAS is not able to fetch the excel file. I checked the process and followed that the function was called perfectly. problem appeared while calling excel file.
iv. I creted an exe of same function in dot net application.
Result: It worked fine when I ran it manually. Problem of excel fetching appeared when I attached it with SQL Server scheduler.
I tested my all applications in Windows Server 2008. I went through many posts where it was mentioned that NAS cannot fetch Excel file if it runs in Windows Server 2008. Is it true? If no then where is my fault? If yes is there any solution to overcome the problem?
Thanks in advance for your valuable reply
I implemented many projects through NAS. Recently I got surprised when I integrated NAS with excel file. The details of the project is given below,
We have to read some auto generated excel file through NAS by a scheduler. We installed NAS in Windows Server 2008 R2. Excel file reading code was written in a codeunit. While we call the codeunit, it reads the excel file from a particular location and writes in a particular table. We followed these three scenario.
i. We developed a manual button and called the codeunit behind the button.
Result: Data from the excel file was fetched and written in the NAV table perfectly.
ii. We called the codeunit from a timer and attached the timer at CompanyOpen Trigger. Set the timer for a particular time, by coding.
Result: Data from the excel file was fetched and written in the NAV table perfectly as per the time set in timer.
iii. We called the codeunit from a timer and attached the timer with NAS. Set the timer for a particular time, by coding.
Result: NAS is not able to fetch the excel file. I checked the process and followed that the function was called perfectly. problem appeared while calling excel file.
iv. I creted an exe of same function in dot net application.
Result: It worked fine when I ran it manually. Problem of excel fetching appeared when I attached it with SQL Server scheduler.
I tested my all applications in Windows Server 2008. I went through many posts where it was mentioned that NAS cannot fetch Excel file if it runs in Windows Server 2008. Is it true? If no then where is my fault? If yes is there any solution to overcome the problem?
Thanks in advance for your valuable reply
0
Comments
-
I am sure you must have checked the user security option, but that is the first thing that comes to my mind. Does the user account who is running NAS service have access to the folder and the excel file you are trying to read?
Chn0 -
check this: viewtopic.php?f=23&t=552070
-
Thanks ppavuk for the reply. I already checked these forums. I also mentioned that some people tested that NAS cannot fetch MS Office in Windows Server 2008 environment. That's why I build an exe in dot net which behaved same. So there must be some problem with dot net framework in 2008 Server.
Yesterday I tested all of them in Windows Server 2003 Environment and executed perfectly.0 -
You also found the topic in which you needed to add two folders? It does work when login as the nas domain account user? Can you create a excel file? On what moment does it go wrong?0
-
[Topic moved from 'NAV Tips & Tricks' forum to 'NAV/Navision Classic Client' forum]Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!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