>Nadya,
>Sorry may be I missed something because I didn't read the whole thread but where m.lnRelations is defined?
I found the problem. In ASCAN if you're searching not from the first element, you need to substract this number from the nElementsSearched.
BTW, why instead of the meaningful error I was getting "Illegal recursion in rule evaluation"?
If it's not broken, fix it until it is.
My Blog