I need help with an SSRS report deployed to localhost which uses ODBC data source to retrieve data from excel file. When the same report is previewed through BIDS 2008, it displays the results as expected. But after deploying the report to the Report Server on the same machine (localhost) where BIDS is running it gives the below error.
ERROR: Throwing Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: , Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Cannot create a connection to data source 'dsInvoice'. ---> System.Data.Odbc.OdbcException: ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
I have tried shared data source as well as custom data source but both didn't work. When I looked up for this error it mentioned that I need to use 32-bit ODBC Administrator tool under %windir%\SysWOW64\odbcad32.exe and that's what I'm using but that also didn't work. I'm an Administrator on the local machine.
Below is some information about the machine:
Steps to reproduce the error:
Create a Microsoft Excel Driver User DSN - Test_Excel_Driver - under %windir%\SysWOW64\odbcad32.exe
Create an SSRS report using BIDS 2008 and select datasource as an ODBC Embedded Connection with following connection string - Dsn=Test_Excel_Driver;dbq=C:...\Test Excel.xlsx;defaultdir=C:...\;driverid=1046;fil=excel 12.0;maxbuffersize=2048;pagetimeout=5
Preview the report in BIDS - Works fine !
Deploy the report to localhost SSRS Report Server with full permissions. Click on the report in report manager and get the above error.
Not all data will come from a SQL Server database when you are creating reports in SSRS. There will be times you will need to create a data source to .CSV files, Excel spreadsheets, and MS Access databases. Recently, I had a customer request setting up sample data sources to these types of files to help the developers complete a migration project.
Error 1 Cannot deploy the report because the shared data source '/Data Sources/DataSource1' that the report references does not exist on the report server. C:\Users\mycomputerusername\Documents\Visual Studio 2008\Projects\Report Project4\Report Project4\bin\Debug\Report1.rdl 0 0
Folder security is the foundation for securing all content in a report server. What you have done is just on Home folder. As you may see a <data source> folder on the home page, please make sure that there is enough permission on that folder: Please remember to mark the replies as answers if they help. Actually there is no Data Source set up.
Navigate to the location of the document and select the file. Complete the process of creating the system DSN. You will now be able to create and test your data source in SSRS. 1. Open the Report Manager and navigate to the folder structure of where you would like to save your data source. Select “New Data Source”. 2.
First off using OLEDB instead of ODBC will be easier to get going, the connection string for OLEDB will look like:
Provider=Microsoft.ACE.OLEDB.12.0;Data Source=c:\myFolder\myExcel2007file.xlsx;
Extended Properties="Excel 12.0 Xml;HDR=YES";
Then in SSRS/BIDS when you click "Test Connection" in the DataSource screen you may see this error:
The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine.
The documentation states MS Access drivers (including the OLEDB driver) only work under the x86 platform and is incompatible under the x64 or AnyCPU platform. However this appears to be untrue. Ref: https://stackoverflow.com/a/32760211/495455
First download the installer making sure you tick the _64.exe version: http://www.microsoft.com/en-us/download/details.aspx?id=13255
AceRedist.msi /passive
After these steps I managed to run the application (and also SSRS without BIDS) after building in x64 or AnyCPU build configuration. This solves issue.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With