Dataport importing twice

SrivasSrivas Member Posts: 89
I am trying to import one record (Item price)from a csv file and the fields are Item No., description , unit price.
CSV file is having only one line with unit price (say 10). When I import the record it
imports 0 unit price. When I debugged the code dataport is reading the record twice and
second time , it has Unit price = 0.
I am not understanding whats wrong as I checked the file it has got only one record.
](*,)

Comments

  • garakgarak Member Posts: 3,263
    Did you have some source behind the OnAfterFormatField() or OnBeforeEvaluateField() of the field?
    Or did you start the Dataport from designmode?
    Do you make it right, it works too!
  • SrivasSrivas Member Posts: 89
    No I donot have code on the above triggers.
    I call the dataport from a codeunit. Do not run from design mode.
  • SrivasSrivas Member Posts: 89
    SOLVED:

    file had an extra column at the end which local version was ignoring but SQl version was reading it as second record.
Sign In or Register to comment.