No processs in XMLPort

jemmyjemmy Member Posts: 247
Folks,

While I'm pressing Run Button for XMLPort ObjectId=8003 Product.BOM,
Navision 4.0 doesn't do any process.
What's going on these? Did I miss something? :(

Please help.

Jemmy

Comments

  • Iqbal_FebrianoIqbal_Febriano Member Posts: 66
    Try to make a codeunit, on the OnRun trigger write this code
    MyFile.CREATE('testfile.xml');
    MyFile.CREATEOUTSTREAM(OStream);
    XMLPORT.EXPORT(8003,OStream);
    MyFile.CLOSE
    

    MyFile is an object of type File, and OStream is of type OutStream
    Run the codeunit and see the file in your client directory :wink:
    Be fast, be straight, be quiet
  • SorcererSorcerer Member Posts: 107
    hmmmm....if i use your code in the demo database i get a error and fin.exe crashes....is there anything missing?

    MyFile = DataType File
    OStream = DataType Outstream

    both declared as globals
    used version navision 4.0 w1 build 19365
  • jemmyjemmy Member Posts: 247
    Hi Iqbal.
    Yeah, it works! Thanks buddy. :D

    Jemmy
  • eromeineromein Member Posts: 589
    XML Ports can not be run manually. They should be called from another Navision object. I believe this has to do with the fact you can call them from the NAS.
    "Real programmers don't comment their code.
    If it was hard to write, it should be hard to understand."
  • akasererakaserer Member Posts: 6
    I have got the same problem then 'Sorcerer'.

    If i run a small xml port with only a few fields its working well but if i run a big one with more then 20 or 30 xml elements the Navision client crashes.

    For example the XMLport with the ID 10 (IC G/L Account Import/Export) from the Navision 4.0 Demo database works. But my own dataport only works if i have got a few elements only.

    Any solution for this??
Sign In or Register to comment.