Dataport on NAS Server

anjumianjumi Member Posts: 10
Hello Developers
Can you tell me if a dataport can be run on NAS.
If not, what is the solution?
Regards
Ikram
Ikram Anjum

Comments

  • DaveTDaveT Member Posts: 1,039
    Hi Ikram,

    No directly but can be called from a codeunit called by NAS.

    Have a search there's loads of posts on this.
    Dave Treanor

    Dynamics Nav Add-ons
    http://www.simplydynamics.ie/Addons.html
  • anjumianjumi Member Posts: 10
    Thanks a lot Dave
    Regards
    Ikram
    Ikram Anjum
  • DaveTDaveT Member Posts: 1,039
    Glad to Help :mrgreen:
    Dave Treanor

    Dynamics Nav Add-ons
    http://www.simplydynamics.ie/Addons.html
  • jlandeenjlandeen Member Posts: 524
    Are you planning on running the dataport on a regular/recurring schedule?

    You may want to consider using the Job Queue to control when your dataport fires off. That would be a good solution to control your data import/export process without having to modify a lot of code.
    Jeff Landeen - Sr. Consultant
    Epimatic Corp.

    http://www.epimatic.com
  • anjumianjumi Member Posts: 10
    Yes, Please
    I want dataport to be run on a particular date and time defined by the user on a setup form.
    The database is running on NAV 5.01 Server on SQL platform.
    I added Next Date Run and Next Time Run fields on a setup form for users.

    Please tell me in detail all the components required and how to instal/Setup.

    Regards
    Ikram
    Ikram Anjum
  • jlandeenjlandeen Member Posts: 524
    Well the way I see it there's a few changes you will need to build and a NAV Module you may have to purchase.

    The Job Queue is a new NAV component that supports these kinds of automated tasks and use a Navision Application server to execute. The Job Queue forms are in the 670 range and Tables are in the 470 range. All of this is orchestrated by codeunit 448 (Job Queue Dispatcher) that is executed by a Navision Application Server (NAS) instance.

    I'm not sure which granule you need to purchase from Microsoft but you can look that up on the microsoft price list (or you can ask your partner). So to get all this setup there's no code changes required just some out of the box granules and a NAS, plus some setup of the Job Queue Entry records that contorl when the job starts.

    The only thing you'll have to do to is build a codeunit that executes the data port you've built. This is because Job Queue will only run Codeunits and Report objects. building a codeunit to wrap the dataport you've built should be a fairly simple task and shouldn't take a lot of effort.

    This is the approach that I would take as it requires a minimum amount of effort and maximuizes re-use of base components.
    Jeff Landeen - Sr. Consultant
    Epimatic Corp.

    http://www.epimatic.com
  • krikikriki Member, Moderator Posts: 9,110
    There is still one problem : the NAS refuses to run dataports!
    Don't ask me why but it is not possible.

    The only way is to convert your dataport into a codeunit (or a report) and to run that in the NAS.
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


  • ramasettipetaramasettipeta Member Posts: 14
    Hi anjumi,
    Finally were you able to run Dataport called by Codeunit using NAS?
  • ara3nara3n Member Posts: 9,256
    Hi anjumi,
    Finally were you able to run Dataport called by Codeunit using NAS?


    Dataport cannot run on NAS, no matter how you call it.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • Alex_ChowAlex_Chow Member Posts: 5,063
    The work around is to change the import process so it's using a report instead of a dataport.

    Another alternative is to use XMLports.
  • jlandeenjlandeen Member Posts: 524
    thankfully I don't think it should be a huge task to convert a dataport to a report.

    I also find that XML ports can be a great way of working with data imports/exports.
    Jeff Landeen - Sr. Consultant
    Epimatic Corp.

    http://www.epimatic.com
Sign In or Register to comment.