How to run a dataport using Application Server?

fcassolifcassoli Member Posts: 16
edited 2003-07-02 in Navision Attain
Is it possible to execute a dataport using Navision Application Server?
I changed the function NASHandler of the Codeunit 1, and now it calls a Dataport using DATAPORT.RUN(50000, FALSE).
Application Server writes to the log the following error message: "You cannot use C/AL variables of type DATAPORT when running Navision Attain Application Server."
Is there any way to change it?
I have about 20 dataport, already written, used to import data from text files. I dislike the idea of rewriting them using codeunits!

Comments

  • Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    You can't run dataports with the NAS.
    Maybe it will be supported in the next version?
    No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
  • WaldoWaldo Member Posts: 3,412
    We encoutered the same problem some days ago, and solved it by converting the data to an xml-file, and read it that way.

    Eric Wauters
    MVP - Microsoft Dynamics NAV
    My blog
Sign In or Register to comment.