because it has a DefiningQuery and no element exists in the element [duplicate] March 11, 2023 by Tarik My many-to-many mapping table was missing PK added, and the issue is solved.