web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Answered

VS 2019 SSRS + Dynamics365 FetchXML: Dataset preview fails. “Unable to connect to data source"

(0) ShareShare
ReportReport
Posted on by 2

I’m developing SSRS reports for Dynamics 365 (Dataverse) in Visual Studio 2019, using the following developer‑tooling setup:

  • Visual Studio 2019 (16.x)

  • Microsoft Reporting Services Projects extension

  • Dynamics 365 Report Authoring Extension

  • FetchXML datasets via Microsoft Dynamics 365 Fetch data source

This tooling has worked for years, but now the SSRS designer in VS2019 cannot Refresh Fields or Preview datasets, which blocks report development.

Steps to reproduce

  1. Open an existing Report Server Project (RDLs using FetchXML datasets) in Visual Studio 2019.

  2. In Report Data, right‑click a dataset → Query…  Refresh Fields or attempt Preview.

  3. Sign‑in prompt may appear (sometimes it doesn’t).

  4. Operation fails.

This is a failure inside Visual Studio’s SSRS designer, not on the report server.

Error messages

  • Visual Studio error dialog:

    Unable to connect to data source 'DataSource1'.
    The connection to server "https://<org>.crm.dynamics.com" could not be established.
    Make sure that the connection string and credentials are correct, and try again.
    
  • Log file (from the CrmConnection login error log):

    • C:\Users\{Login}\AppData\Roaming\Microsoft Corporation\Microsoft® Visual Studio®\16.7.32413.119\Login_ErrorLog.log
    Error : The authentication type must be specified.
    Parameter name: CrmPassword
    

What I’ve tried (tooling‑specific)

  • Re‑entering credentials / different accounts / device code sign‑in

  • Verified the Dynamics 365 Fetch datasource configuration

  • Tried repairing / reinstalling:

    • Reporting Services Projects extension

    • Dynamics 365 Report Authoring Extension

    • Complete uninstall and reinstall of Visual Studio 2019

  • Clearing temp folders under %LOCALAPPDATA% related to VS/SSRS

  • Creating a brand‑new Report Server Project and a simple FetchXML dataset

Same result across machines: preview/refresh fails with the auth error.

Expected vs. actual

  • Expected: The SSRS designer in VS2019 should authenticate to Dataverse and allow dataset Refresh/Preview.

  • Actual: Fails with the error above.

What causes this Visual Studio 2019 SSRS designer failure when using the Dynamics 365 FetchXML data source, and what developer‑side fix restores normal dataset Refresh/Preview?

 

FOUND THE SOLUTION
  1. Close Visual Studio.
  2. Delete the contents of this folder (do not skip):
    • %APPDATA%\Microsoft\PreviewProcessingService
    • (e.g., C:\Users\<you>\AppData\Roaming\Microsoft\PreviewProcessingService) 
  3. Optional: If Default_PreviewProcessingService.exe is running, end the process (it will be recreated).
  4. Reopen your Report Server Project and refresh the dataset/preview again.
This resets the local preview host that SSRS uses inside VS and clears the bad state that breaks modern auth to Dataverse/CRM. No reinstall required.
Notes / Context
You still need the Microsoft Reporting Services Projects extension + Dynamics 365 Report Authoring Extension for VS 2019; 2022 isn’t fully supported for this workflow yet, so stick with VS 2019. 
If setup is incomplete (tooling missing), see Microsoft Q&A guidance on getting D365 tooling working with VS 2019. 
 
TL;DR:
When D365 SSRS previews suddenly start failing in VS2019 with an auth error, clear %APPDATA%\Microsoft\PreviewProcessingService and restart VS. This has restored preview/refresh reliably.
I have the same question (0)
  • Verified answer
    Don Schiavone at OneGas Profile Picture
    2 on at
    I wanted to share the solution to the problem to prevent anyone else from wasting 2 days.
     
    THE SOLUTION
    1. Close Visual Studio.
    2. Delete the contents of this folder (do not skip):
      • %APPDATA%\Microsoft\PreviewProcessingService
      • (e.g., C:\Users\<yourlogin>\AppData\Roaming\Microsoft\PreviewProcessingService) 
    3. Optional: If Default_PreviewProcessingService.exe is running, end the process (it will be recreated).
    4. Reopen your Report Server Project and refresh the dataset/preview again.
    This resets the local preview host that SSRS uses inside VS and clears the bad state that breaks modern auth to Dataverse/CRM. No reinstall required.
    Notes / Context
    You still need the Microsoft Reporting Services Projects extension + Dynamics 365 Report Authoring Extension for VS 2019; 2022 isn’t fully supported for this workflow yet, so stick with VS 2019. 
    If setup is incomplete (tooling missing), see Microsoft Q&A guidance on getting D365 tooling working with VS 2019. 
     
    TL;DR:
    When D365 SSRS previews suddenly start failing in VS2019 with an auth error, clear %APPDATA%\Microsoft\PreviewProcessingService and restart VS. This has restored preview/refresh reliably.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
BillurSamdancioglu Profile Picture

BillurSamdancioglu 95 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 83 Super User 2025 Season 2

#3
Abhilash Warrier Profile Picture

Abhilash Warrier 55 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans