Sergei,
yes, I did after I read your post. That didn't change anything but I think we're headed into the right direction. I actually DELETED the query since I needed a different hierarchy anyways. I did a full build/sync and yet the old query (possibly the very first instance before I had any relations created) shows up at runtime.
{Query abc_TransferOrdersQuery object 852a2e10: SELECT * FROM InventTransferTable(InventTransferTable) JOIN * FROM InventTransferLine(InventTransferLine) JOIN * FROM WMSPickingRoute(WMSPickingRoute) WHERE ((InventTransferTable(InventTransferTable).))}
This query executed does no longer exist. The file is gone. The only two relevant areas use the new query:
[DataMemberAttribute, AifQueryTypeAttribute('_packedQuery', querystr(abc_TransferOrderLineQuery))
]
public str parmPackedQuery(str _packedQuery = packedQuery)
{
packedQuery = _packedQuery;
return packedQuery;
}
public void initQuery()
{
// Use this method to add ranges etc. for example:
Query newQuery;
// init Query
newQuery = new Query(queryStr(abc_TransferOrderLineQuery));
this.setQuery(newQuery);
}
This must be some sort of caching problem. I'm also unable to actually hit the break point in my data contract for those two methods.
Best regards