RE: I want Skip or Ignore Inserting record which one have a Error while inserting multiple records.
Hi,
To achieve this you can do the following
1. Create a functions in some other objects to Loop through your table to get the records
Function()
{
table repeat
codeunit.setparameter(table);
if not codeunit.run() then
logyourerror here in some other table.
until table.next = 0;
}
2. Now as you can see we are calling Codeunit.run in if condition and before that we are setting up our table paramter
codeunit
trigger OnRun ()
begin
recordingtransferfromhere;
end;
setparameter(table:record)
begin
table2 := table;
end;
local function recordingtransferfromhere()
var
destTable:record;
begin
destTable.transferfields(table2);
destTable.insert();
end;