Hi, I am facing a strange issue when running the below cross company query
while select crossCompany specTrans
where specTrans.SpecCompany == _ledgerJournalTrans.company() &&
specTrans.SpecTableId == _ledgerJournalTrans.TableId &&
specTrans.SpecRecId == _ledgerJournalTrans.RecId
join custTransOpen
where specTrans.RefCompany == custTransOpen.DataAreaId &&
specTrans.RefTableId == custTransOpen.TableId &&
specTrans.RefRecId == custTransOpen.RecId
join custTrans
where custTransOpen.RefRecId == custTrans.RecId
join custTransCustomer
where custTrans.AccountNum == custTransCustomer.AccountNum
AX freezes when I run this. But when I run it without the crossCompany keyword it runs smoothly. I have verified that this query only returns one record.
the actual code can be found in \Classes\LedgerJournalTransUpdateCust\checkSettleVoucher
Any idea why this would happen.
*This post is locked for comments
I have the same question (0)