Hi,
While using “Apply Solution Upgrade” or Import in our Test Instance having managed solution, we got the below error.
The Managed solution had the report set as Viewable By = Organization (we cannot have Individual report in Solution) when it was deployed first. And later the user had set the report to be as Individual manually.
Changing the report back to Organization in TEST and importing the solution again fixed the issue.
Hope it helps..
One thought on “Crm Internal Exception: Singleton Retrieve Query should not return more than 1 record. Query: System.Data.SqlClient.SqlCommand while Importing Solution in Dynamics 365 \CRM 2016 or earlier.”