When creating a configuration package for table 23 - Vendor and with validation for "No." field, gives an error when the no. series for vendor is not set to manual. The issue is the validate logic of the "No." field in Vendor table. When importing, there is no "xRec". It should do a check if the Vendor with the "new" No. exits.
On the customer table this check is done.
//current code
trigger OnValidate()
begin
if "No." <> xRec."No." then begin
PurchSetup.Get();
NoSeriesMgt.TestManual(PurchSetup."Vendor Nos.");
"No. Series" := '';
end;
if "Invoice Disc. Code" = '' then
"Invoice Disc. Code" := "No.";
OnAfterValidateNo(Rec, xRec);
end;
//new code
trigger OnValidate()
var
Vendor: Record Vendor;
begin
if "No." <> xRec."No." then begin
if not Vendor.Get(Rec."No.") then begin
PurchSetup.Get();
NoSeriesMgt.TestManual(PurchSetup."Vendor Nos.");
"No. Series" := '';
end;
end;
if "Invoice Disc. Code" = '' then
"Invoice Disc. Code" := "No.";
OnAfterValidateNo(Rec, xRec);
end;