Hey,
i have a small issue with my xmlport. I’m trying to import a file to NAV, but it does not work. I’m getting error saying that “Element journal line was not expected”. I don’t know what the error means. Here is my xmlport:
root Element Text <root>
GenJournalLine Element Table <Gen. Journal Line>(Gen. Journal Line)
and here is my code from where i call the xmlport:
CurrFile.OPEN(FileRec.Path + FileRec.Name);
CurrFile.CREATEINSTREAM(Stream);
ImportBR.SETSOURCE(Stream);
ImportBR.IMPORT;