I have the same issue, and have spent hours today investigating and searching. I don't know if it is just an obscure issue in TDS endpoint that has only just come up this month - because there are no instances of this error being reported by anyone prior to now.
In the environment where I am experiencing the error, I do notice that the database name shown in SSMS is different to the unique name/endpoint of the environment. e.g. TDS endpoint is org1234.crm11.dynamics.com, but when connected I see the database name listed as a guid. I've used the TDS endpoint successfully in other environments, and in those, the database name shown in SSMS is as per the endpoint unique name (e.g. org1234).
Does that apply to your environment where you are having problem?
I have managed to resolve my error now.
I simply disabled TDS endpoint in Powerplatform admin, saved the settings, then re-enabled again. Working.
I guess something actually happens in the provisioning when enabling TDS endpoint, and switching it off & on again resolved it.
Hi, switching if OFF and ON was also adviced here (Tip #1393: If TDS endpoint does not work | Power Platform & Dynamics CRM Tip Of The Day)
Unfo, this worked for me on most environments, but not on my most important one. After switching it OFF I am no longer able to switch it ON again. The switch is just no longer clickable 😞
Hi Maurits, I ran into the same issue as you with the switch 'breaking'.
I found a solution to this and got the endpoint connected properly by using the OrgDBOrgSettings managed solution instead of the Admin Centre switch.
https://powerobjects.com/dynamics-365/use-sql-to-query-data-from-cds-and-dynamics-365-ce/
https://github.com/seanmcne/OrgDbOrgSettings#start-of-content
Hope this helps!
Hi Bill, thanks. When I red your reply I checked the XrmToolBox and found the Org Settings tool by LinkeD365 and was able to activate the EnableTDS flag. Currently I am able to access the database using SQL Server Management Studio. Still have to figure out why I can't access it with Power BI anymore, but that's another issue.
Again, thanks @Bill_Ford
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
Read the latest about new experiences and capabilities in the Power Automate product blog.
If you are a small business ISV/Reseller, share your thoughts with our research team.