Is't Possible to Auto Schedule the XMLport for IMPORT data??

pskannaapskannaa Member Posts: 138
Hi,

Im working on NAV 4.0

I have couple of questions regarding Imporing XMLport in NAV 4.0..

1. Is't possible to schedule the XMLport in the system ??
Reason: i need to execute the particular XMLport for the particular intervel period eg. Every 10min it's should be execute.
2. Is there any option to RUN the NAV4.0 XMLport(my xmlport) through .Net ?

3. How can i import the XML file from .NET or other appl to NAV 4.0 ?
eg: like to import "ITEM" details through XML file via myApplication to NAV 4.0..
Solution Plz...

Regards,
Psk

Comments

  • matttraxmatttrax Member Posts: 2,309
    1 - I can't remember if the job scheduler allows you to run an XMLport. I don't think it does, you have to run a codeunit instead. And I think that codeunit can call an XMLport.

    2 - Search for how to build your own .NET automations here on the forum or on msdn. I believe there's also a solutions for exposing a codeunit via .NET for download on one of the NAV support sites.

    3 - You'll have to be more specific about your application. How's it built :)
  • pskannaapskannaa Member Posts: 138
    Thanks for responce..

    I have tried to schedule the "Codeunit" as per your suggestion, but it's not Running the codeunit for the specified intervel...

    what i did that..

    Job Schedule:

    ID : MYXMLPORT
    Enabled : YES
    Unit of Measure : Second
    Time between check : 30

    Object Setup:
    Object type: codeunit
    Object No: 50000(my codeunit)

    Error Handling:
    Mark as Error and Stop
    All Days are Enabled
    Starting Time: 10 AM
    Ending Time: 10 PM

    Management Setup:
    Log schedule action: enabled
    shutdown date: 04/11/09
    shutdown time: 10PM
    Intrv check sec: 15

    .........I did't get error log and not getting 'message' which is fired 'Imported'. but manually RUN and it's working fine.

    anything missing for 'Job scheduler' ????
  • matttraxmatttrax Member Posts: 2,309
    Did you setup a NAS to handle the job scheduler?
  • santoshmkcetsantoshmkcet Member Posts: 229
    everything is possible in navision under where we have to explore... :lol:
    Thanks & Regards
    Santosh
    Where Stones can be transformed to Gold
  • RallnusRallnus Member Posts: 79
    we do it this way:

    We start a codeunit witch calls a XML Port.


    Infile.OPEN(filenamepath);
    Infile.CREATEINSTREAM(Stream);
    XMLPORT.IMPORT(XMLPortNr,Stream);
    Infile.CLOSE;
    Rallnus (Yamaha FJ1200 - '89 / 25th anniversary was great!)
  • pskannaapskannaa Member Posts: 138
    I hav done, started the job scheduler management.

    .....thank you all for kind responce ..
Sign In or Register to comment.