Hi Experts,
Can any one help me, how to import data from text file and insert/modify the values of the existing navision tables, but not using dataports.
Anyone had got any idea, how to handle this issue..........
Anil Kumar Korada
Technical Consultant
0
Comments
If you have an access to CAL code then you will have to write a program to read file and insert records in the table manually
Oleg
Technical Consultant
RIS Plus, LLC
I have the same problem: ok, the dataport is very good for import a text file, but it's possible to launch dataport in automatic manner without user intervent ?
I must control a directory at regular interval (every hour) and if there are text files in my "rx directory" I must import to navision table.
This process must be totally automatized; there isn't user intervent.
Thanks anakin
Excuse me for my bad english :oops:
http://www.BiloBeauty.com
http://www.autismspeaks.org
In my "Job Queue Entry Card" I can choose only report e codeunit, not dataport
Create a report, to look for the file, if there is a fle to import, you can then using the dataport as a variable, set the filename, set it as Import, and then run the dataport from the job scheduler!
Mobile: +44(0)7854 842801
Email: david.cox@adeptris.com
Twitter: https://twitter.com/Adeptris
Website: http://www.adeptris.com
What's the mean of "Create a report, to look for the file" ?
- Must be a non printing report ?
- What trigger I must coding ?
- Can you post a report trigger code sample ?
Thanks, anakin
Here is a small part of the code, this will Import and Move the first file, but you will need to code to move Invalid files.
The reason this only brings in one file at a time is because we are using RUNMODAL for the dataport, this means the dataport will run and close the file before we move it.
MyFiles is a variable Type = Record and Name = File
David
Mobile: +44(0)7854 842801
Email: david.cox@adeptris.com
Twitter: https://twitter.com/Adeptris
Website: http://www.adeptris.com
but if I use a codeunit instead of report is the same ?
Yes, sure use a codeunit, reports were often used as default because the Client often had Reports but not Codeunits on the licence.
David
Mobile: +44(0)7854 842801
Email: david.cox@adeptris.com
Twitter: https://twitter.com/Adeptris
Website: http://www.adeptris.com
>>MyDataport.RUNMODAL;
this line show the form for select the file to import, but I don't see this form because the file to import is set by FILENAME property and the import must not require user intervent
Or set Dataport property UseReqForm to No
"You cannot use C/AL variables of type DATAPORT when running the Microsoft Dynamics NAV Application Server."
is there any solution to fix this problem ?
surely i can create a report which imports the file but this means a lot of extrawork.
MCP+I, MCSE NT, Navision MCT (2004,2005)
I wrote 10 complex dataport and I have this message using Job Scheduler.
Is there any solution without rewrite the dataport as report?
](*,)
Andy