SSRS: Error while querying data from an Excel file (through ODBC) - excel

I am trying to render a simple chart using SSRS. The data is in an Excel sheet. I have set up an user DSN and created a data source in SSRS using ODBC.
I am able to query the excel in Data tab. However while trying to preview, I get the following error:
error [hy000] [microsoft] [odbc excel driver] the connection for
viewing your linked Microsoft Excel worksheet was lost.
Anyone knows why this is happening and how this can be solved?

I would consider creating a SQL Sever Integration Services package to import the data from Excel to a SQL database and using the database as the data source for the report. The SSIS package could be scheduled to periodically refresh the data.
Using a file based data source like Excel is vulnerable to people modifying the structure of the spreadsheet and moving, deleting or locking the file.

Seems to be a fleeting error. I deleted the dataset, created a new one and re-ran again. It worked.

Related

Refreshable pivot table connected to an external source

I am planning to deploy an Excel file where the users would only need to refresh to see the updated data. I can currently do this by sending out a new Excel file every time.
What I have:
Office 365
MariaDB on Digital Ocean
What I want:
Create a pivot table/data model connected to the database and have the data updated real time upon refresh.
I can do this on my own via ODBC but when sharing the file, it asks for the credentials which is saved on my ODBC file. Ideally, I don't want to share the credentials even though it's read-only.
Is there an alternative to ODBC so I can easily share the refreshable pivot table?

AS400 - Data downloading to Excel from AS400 table with multiple members

I recently started a job at a company that still uses AS400 and need some help!
So currently we do not have any BI tool to access system data files directly, so I'm trying to connect AS400 to excel using ODBC and download/display AS400 data directly to excel.
So I accomplished to make the connection and I am able to access schema, table, views from Excel using data connection. But the problem is that some tables have multiple members in it and the excel's pulling data from what I am guessing as the first member that excel sees when all the important data are in other member files...
Is there anyway I could select specific members and download data of that specific member directly to excel?
I can do this when I use IBM's data transfer program, but I would like to find out if it's possible to do directly with excel..
Thanks!
Matt
No.
Multi-membered files are generally not supported by any SQL tool.
However
You can always CREATE ALIAS myname FOR MYLIB/MYTABLE(MYMBR)
Then use myname to access from Excel.
Download a file multiple members to excel
create a logical file over the physical file with all members. Download the logical file with excel data connection.
Hope this helps.
you can access the data in multi-member files via FTP. For example /QSYS.LIB/your_library.LIB/your_file.FILE will be considered a directly by FTP. Depending on the data structure you may be able to do it directly from Excel.

Unable to refresh powerpivot data in sharepoint

I have a SSAS cube and I would like to create some reports using excel out of the data. Since creating a report directly from the cube involved some performance issues, I loaded the data from the cube into Power pivot and then created reports on top of the power pivot data.
Now, when I upload my excel report to power pivot gallery of sharepoint 2013, I am not able to refresh the data manually as well as automatically (via a schedule). I get the error:
"An error occurred while working on the Data Model in the workbook. Please try again.
We were unable to refresh one or more data connections in this workbook.
The following connections failed to refresh"
When scheduling the report, I get the error:
"Call to Excel Services returned an error"
Can any one help me to solve this issue please!
Thanks in advance
Have you set up credentials in the Secure Store? Make sure you have set SERVER\POWERPIVOT in Manage Service Applications -> Excel Services Application - Data Model Settings.
Also, check ULS logs and post what you might find there.

Update spreadsheet exported from SSRS

I need to update the SSRS exported spreadsheet using Macro connection to the SQL server database. The user runs a SSRS report and exports it to excel and saves it on the desktop. The issue here is, user has to run the SSRS report everytime to check the updated entries. To avoid this, I need to create a macro that matches the job # (on exported spreadsheet) and update the spreadsheet using SQL connection. I've attached the screenshot of the SSRS exported spreadsheet.
In this scenario, I suggest you directly work in EXCEL instead of using SSRS and exporting report. You can use Power View/Power Pivot report to render data directly from SQL database.

Error while opening excel pivot table report from sharepoint 2010

I made a pivot table report using excel 2010 that retrieving data from shareportint 2010 list, the report is working fine in excel but when I uploaded it to document library and put it in web part to view from share point it showing me this error :
Unable to refresh data for a data connection in the workbook.
Try again or contact your system administrator. The following connections failed to refresh:
owssvr[1]
what should I do to resolve this error?
Thanks.
You should refer to this artice in MSDN when working with external data connections within an Excel workbook. Before publishing the workbook into SharePoint you must make sure the connection belongs among the set of (administrator-defined) trusted connections.
I got a similar error when trying to refresh data in an Excel Web Part using SharePoint 2010.
Here is the screenshot of my error:
SharePoint Error
My problem was that I was setting the source of the Excel Pivot tables directly to the SharePoint list. In order to get it to work I had to:
Go to the SharePoint list to be used as a data source
Select the "Export to Excel" button to obtain the .iqy file
Save this file then open it in Excel which will open the list in Excel
Any pivot tables created must then use this table as the source, not the connection that is found under the "existing connections" button in Excel

Resources