Error while Importing Text File through Xmlport

Error while Importing Text File through Xmlport Cannot import the specified XML document because the file is empty..
How can i skip these error. or Skip the Empty File.
Thanks & Regards,
Stivan D'souza

Answers

  • swpoloswpolo Member Posts: 80
    The only solution is in checking a file on emptyness before starting xmlport.
    XmlPort does not support working with content of file on it's triggers if XML format is used.
    Nav Upgrades and DEV outsourcing
    Reports transformation to RDLC
    List -1h , Complex List -3h, Document -4h (dev hours)
    navisionupgrade.com
  • tubttubt Member Posts: 1
    You use code bellow:

    FileNameNew.OPEN(FromFolder);
    FileNameNew.CREATEINSTREAM(INST);
    IF XMLPORT.IMPORT(Table ID,INST) THEN
    FileNameNew.CLOSE;
Sign In or Register to comment.