Hi,
While importing an XML-file using an XML-port, I’m facing trouble because my XML-file contains an element with a string length of 1033 characters. Sometimes the element contains even more depending on the file at hand.
Actually I don’t need to import the element, but my import fails because of the string length.
Any suggestions please?
Regards
Christian
0
Answers
if you dont need to import it you can reduce the string before importing the XML(COPYSTR)
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
InOrdDocLine.Prod_Description := COPYSTR(Temp_Description, 1, 20);
InOrdDocLine.MODIFY;
(InOrdDocLine reffering to my receiving table and Prod_Description reffering to table field)
Christian
Use it in Import::OnBeforeInsertRecord() of receiving table
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
The value "..." has a length 1033, which exceeds the max size of the destination type Text.
Christian
so use
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
Using 'Product.Description := COPYSTR(Product.Description,1,20);' generates an error that the variable 'Product' does not exist,
and 'InOrdDocLine.Prod_Description := COPYSTR(Temp_Description, 1, 20);' fails generating no error message.
Anyway, is there a way to completely bypass the element? As mentioned I really don't need to import it. It just fails because of the string length.
Christian
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
Christian