Сделайте по-старинке, без crossCompany:
X++:
table1 = null; //нужно сбросить курсор, если до этого использовался с другой DataAreaId
table2 = null;
table1.company(this.dataAreaid);
select firstonly table1 where table1.TTNId == TTNId;
table2.company(table1.RefCompanyId);
select firstonly table2 where table2.RecId == table1.RefRecId;