Problem dataport with blank fields in txt-file

Marcel
Marcel Member Posts: 26
Hello,

I've created a dataport in order to import customer data. In one of the records the field bankaccount should be left blank but after import the field received the value of a previous record. In the txt-file the values are alle correct.
Strange, i have never seen this before. does anyone know what i m ight have done wrong? :?:
Best Regards,

Marcel Bierens

Comments

  • IB
    IB Member Posts: 20
    Seems that record wasn't initialized.
    Try to INIT it before import.
    //trigger
    Record - OnBeforeImportRecord()
    
    //code
    INIT;
    
  • Marcel
    Marcel Member Posts: 26
    THNX, That works fine!
    Best Regards,

    Marcel Bierens
  • kriki
    kriki Member, Moderator Posts: 9,132
    IB wrote:
    Seems that record wasn't initialized.
    Try to INIT it before import.
    //trigger
    Record - OnBeforeImportRecord()
    
    //code
    INIT;
    
    CLEAR is even better.
    CLEAR clears also the fields of the primary key (and also the filters). INIT doesn't do that.
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!