Dynamics NAV 2009 R2 Crashes

Hi All,

When I trying fill table by filtering table. when it gets record it works okey. But when the table gets 0 record dynamics NAV crashes .

any suggestion?



you mean manually or through coding?

can you show us the code if via coding?

Through coding,

BOMComponent.SETRANGE(BOMComponent.“Parent Item No.”,“Item No.”);


IF “Source Type” > 0 THEN

BOMComponent.SETRANGE(BOMComponent.“Source Type”,“Source Type”);

when This BOMComponent. returns 0 records it crashes…

I guess Source Type is a customized field…

is it an option type?, if yes, did you try with values rather than integer?

Thanks Mohana,

Option fields filtered by integer and it worked,

the problem was with this line :