Failed to execute query because no root data source on the form matches the root datasource on the query.
My friend was creating custom lookup and he encounter following error. This error usually occur when the table name differs in SysTableLookup::newParameters() with the table that is used in query.