Migrating from Native to Integrated Mode SSRS Part 4: Migrating Reports to SharePoint

At long last, it’s time to get your reports in SharePoint! Here comes the manual labor, otherwise known as the “I know I won’t be short on stuff to do today” section.

Here’s an overview of the main migration steps:

  1. Create the necessary shared data sources for the report on the SharePoint site reports library
    1. If you’re using ODBC connections, don’t forget to set up the DSN’s on your SharePoint servers!
  2. Open a copy of the existing report in Report Builder or SSDT
  3. Edit the report data source(s) to point to the applicable SharePoint data source
  4. Save the report to the SharePoint reports library
  5. Edit the report’s properties and apply the correct Report Category and any other metadata being tracked

Create a Shared Data Source

The components of a shared data source in SharePoint are much the same as they are in Native Mode SSRS, so I’ll refer you to the Microsoft documentation  for the basic steps of creating one. However, here are some gotcha’s we discovered:

  • Once we created and saved a Report Data Source, the content type still remains “Report Builder Report”. If the properties were manually edited to set it back to “Report Data Source”, the content type stuck and no further action was needed. I don’t know if this is a quirk of our implementation, but it’s been an issue in both SharePoint 2010 and SharePoint 2013. The data source still works, but until you reclassify its content type, it will keep showing up in views restricted to show content of type “Report Builder Report”.
  • In Native Mode Report Manager, the name of the data source displayed when you manage a report’s data source is taken from the shared data source’s name. In SharePoint, the data source name displayed is taken from the RDL. Why does this matter?
    • Shared Data Sources usually follow some kind of naming convention that explains what they are.
    • Data sources within reports often end up with the name “Datasource1”.
    • When you need to debug a broken report based on the error message it’s displaying, “ERP_Prod” is a lot easier to understand than “Datasource1”.
    • SharePoint does let you click through to get the URL of the data source the report is using, so all is not lost, but the migration might be a great time to remind report authors to name their data sources something other than Datasource1.

Migrate a Report to SharePoint

  1. Open a saved copy of a report from your native mode instance of SSRS in your tool of choice, Report Builder or BIDS/SSDT. These examples will show Report Builder screenshots.
  2. Expand the data sources folder and double-click on the first one you need to change
  3. Click the Browse buttonChgDataSource1
  4. Type the URL of the SharePoint site that stores your shared data sources into the “Name” field and click Open.ChgDataSource2
    Once you’ve navigated to this site once in this manner, it will appear in your Recent Sites & Servers for faster navigation
  5. Browse to the SharePoint equivalent for the report’s data source, select it, then click OpenChgDataSource3
  6. Click OK back at the Data Source Properties window.
  7. Repeat the re-pointing of the data source for each data source in the report.
  8. Perform a “Save As” in your report tool
  9. Type the URL of the site that will host this report in the Name field and hit EnterChgDataSource4
    Once you’ve navigated to the site once, it will show up in your Recent Sites & Servers for faster navigation.
  10. Browse to the Reports library under the site
  11. Save the report
  12. Preview the report to test it to make sure that it renders. For example, if you have a report on SharePoint with a data source still on native SSRS, you’ll get a “The shared data source <name> for the report server or SharePoint site is not valid” error.BadDatasourceRefError

Fix the data source to point to its SharePoint equivalent and you’ll be good to go!

Assign Report Metadata

Sure, it’s good to have a report running in a SharePoint library, but if all you do is re-point the data source and save it in the SSRS library, you’re missing out on the extra functionality available when you assign metadata to the reports. For example, when you fill in a report’s category, you open up options for how to group the display of the reports via custom views. Filling in the report’s title ensures that the report will show up in a friendly way in various Search views. Make sure you complete this important final step – it’s worth the extra effort.

  1. Navigate to the SharePoint reports library (ex. https://intranet.mycompany.net/sites/reports )
  2. Hover over a report to display the down arrow or ellipses button
  3. Click on the button to display the context menu
    SP2010_EditProperties SP2013_EditProperties
  4. Copy the Report Name into the Report Title field. If this name need to be made more user friendly, insert spaces and capitalize where necessary.
  5. Choose the applicable Report Category and Save your changes.

Congratulations, you now have a report fully configured and running in SharePoint! Soon it will be time to test, subscribe, and get ready to cutover from native mode.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.