Forum Discussion

curtismob's avatar
curtismob
Helper IV
9 years ago

Changing Data Source from salesforce reports to SQL Server

We have a report and visuals created using salesforce reports as the source of data.  We would like to change the source to an

on-prem SQL server.  We have created the SQL Server query to mimic the columns and data from salesforce reports.  I added the SQL Server query as a new query to the pbix, I then tried copying the SQL Server query definition from the new query and replacing the salesforce reports "Source" query.   This appears to work because after clicking the green checkmark next to the source query box/window, data is returned.  We get the error when clicking "Apply" or "Close and Apply" from the Edit Query screen.

 

Error:

 

OLE DB or ODBC error: Type mismatch. (Exception from HRESULT:0x80020005 (DISP_E_TYPEMISMATCH)).

 

Anyone seen this error or tried to make a source change like this?

 

Thanks in advance,

curtismob

5 Replies

  • ankitpatira's avatar
    ankitpatira
    Community Champion

    curtismob In my opinion I don't think you will be able to do it that way since Salesforce and SQL Server are both different source connectors. I think easiest option will be to load sql query as a new query (like you have) -> Close&Apply -> then replace fields for all the visuals with fields from sql query and then delete original salesforce query. 

      • curtismob's avatar
        curtismob
        Helper IV

        ankitpatira,

         

        I tried your suggestion of replacing the fields in the visuals with the new query fields, unfortunately it did not work as well as I had hoped.  We will basicaly have to recreate the visuals.

         

        Any other ideas about possibly changing the source from salesforce reports to SQL Server?

         

        Thank you,

        curtismob