XMLPort import using Bigtext Instream

hemantOnehemantOne Member Posts: 98
Hi,

I am getting following error while importing data using XMLport when i use BigText for Instream data then i got error on Bigtext.Read(Instream);

Microsoft Dynamics NAV Classic
The XML Parser return the following fatal error:
A document must contain exactly one root element.

Line Number = 1 Column Number = 0


OK


The code I used is
CLEAR(ItemList);
TempBlobRec.Blob.IMPORT('C:\ItemList2.xml');
TempBlobRec.Blob.CREATEINSTREAM(streamin);
ItemList.READ(streamin);

CLEAR(ItemImport);
ItemImport.SETSOURCE(streamin);
ItemImport.IMPORT;

Thanks in advance..
Regards,
Hemant
They can conquer who believe they can
.

Comments

Sign In or Register to comment.