Using DATAPORT type in a codeunit in NAV2009

Hi All,

Recently the company where I work decided to upgrade from Navision 4 to NAV 2009. We found a partner to do the migration and everything is working (almost) fine.

I have an issue caused by a codeunit that was schedule to run on the Navision 4 scheduler and now needs to be ran by the NAV job queue. Then basic flow of execution of the codeunit is:

  1. Check for the existence of any *.csv files on a server share

  2. If found:

a. set the FILENAME property of a specific dataport

b. calls the dataport function RUN

I set the codeunit property TableNo to “Job Queue Entry” and when I try to save and compile I have these 4 warnings (in brackets is the original Portuguese text error):

  1. dataport type not supported (“Dataport” não suportado)

  2. dataport type not supported (Tipo “Dataport” não suportado)

  3. the FILENAME function is obsolete in Microsoft Dynamics NAV Server. (A função ‘FILENAME’ é obsoleta para o Microsoft Dynamics NAV Server.)

  4. the RUN function is obsolete in Microsoft Dynamics NAV Server. (A função ‘RUN’ é obsoleta para o Microsoft Dynamics NAV Server.)

By now every time an user as anything to import has to call me and I have to run the codeunit manually [:S]. Is there a way to keep the functionality and add this codeunit to the NAV job queue?

Thank you all for your time and help.

Best Regards.