It looks like the problem was that I haven't read all import lines:
global
updating procedure SomeImportIn()
begin
if WrongSettings then begin goto LWhile; end;
while (TestEOF==false) begin
....
if (NextImportLine(false)) then begin end;
end;//while
LWhile:;
//adding these lines avoids eternal calling of SomeImportIn()
while (TestEOF==false) begin
if (NextImportLine(false)) then begin end;
end;//while
end;