Hello experts,
The payroll data for one of our clients are imported from a txt file in a general journal.
A codeunit was developed for this need.
The path to the file parameter from a page and stored in a table.
FilePath:="3tiers".DownloadTempFile(Config."Nom du fichier d'importation");
IF NOT EntryFile.OPEN(FilePath) THEN
ERROR(text01,Config."Nom du fichier d'importation");
The RTC returs everytime the error message
Delegates were configured
This works perfectly on the classic but not on the RTC.
Have you any idea?
The client configuration is:
- Windows 2008
- Dynamics Nav2009 R2
- SQL Server 2008
-- SQL Server and Dynamics NAV server are on the same server
-- RTC is on client
Thank you in advance
0
Answers
|To-Increase|
Then you need to Upload the file, not download. Downloading means you Get something you have on the server like a file you created/writed (which happens on the service tier) to your client to open, or further process it.
Now to import you need to go the other way round, you have a file that is on a path relative to your computer like: C:\temp\myfile, or a network share. You need to use the silent upload function of the 3-tier codeunit to do that then you can open it.
If you don't have the silentupload function (i think is a DACH function) then here it is:
I used the deV.ch's Code, i called the update fonction and that solved my problem.
Best regards
Thank you for the silent upload tip! That was exactly what I was looking for.
It was located in code unit 419. I think it is a standard functionality
Have you checked the cables?
Have you released the filters?
http://www.navfreak.com