I have created a dataport to match the record to the customer no. and if it is a valid record to import. I want the dataport to fail if there is a record that contains an invalid customer no. Since the import will have a large quantity of records, I would like to return an error to the user that specifies which record in the tab delimited file is invalid.
Can somebody help me do this? It is most appreciated.
0
Comments
You can insert error message displaying the line no., customer no. or a unique record which you are importing.
Manish
Thank you
My Blog - nav.education
But you'll have to import your data into variables.
then something like..
if customer.get(variablecustno) then begin //map all the fields you need back to nav fields
"no." := variablecustomerno;
"name" := variablecustname;
etc etc
end else begin
ExportFile.WRITE("variablecustno");
CurrDataport.SKIP;
end;
Explained here : viewtopic.php?f=23&t=42493
mine might be the 8th post down
http://www.BiloBeauty.com
http://www.autismspeaks.org