I check this and I think it happens because the join fields have different lentghs. You can replace the code with something like that. This will work slower, but is better than nothing:
while select inventJournalTable
index hint journalIdx
{
while select inventTrans where inventTrans.TransRefId == inventJournalTable.JournalId
{
info(strFmt("%1, %2", inventJournalTable.JournalNameId, inventTrans.Qty));
}
}
info(“Complete”)
Ciprian, you’re absolutely right.
I found such problem before, and I think this is such think on which single programmer can look and does not see a solution or error.