Importing contacts, company validation

KisuKisu Member Posts: 381
I'm importing contact information to contact table but when I try to validate the company name and other info behind its number it wont validate. It skips the validation cause of Rec <> xRec check.
I tryed to put validation to dataport fields but it tryes to validate '' - line. How could I get over this problem?

The name validation works fine before that. But it does not have that earlier record check :p

Please help.

Edit: I'm importing with dataport, just the contact table as dataitem.
K.S.

Answers

  • matttraxmatttrax Member Posts: 2,309
    Can you write in OnAfterImportRecord:
    IF Company <> '' THEN
      VALIDATE(Company, CompanyData);
    
  • KisuKisu Member Posts: 381
    Yeh good reminder to put the tests before validations but for locating the error it was better to keep them off.
    Thanks.

    We found the problem why it didn't validate, the company port didn't bring the company number (which was same as the No field) on the contact table so the validation couldn't set. We changed the company import and got the Company No and then run the contact import and the company got validated :mrgreen:
    K.S.
Sign In or Register to comment.