on 04-27-2016 3:43 PM
I am trying to connect to a large SQL report, but keep getting timed out ("The query has timed out."). My query will be approximately 1.5 million rows. I can execute this well in SQL Server or PowerPivot, but would like to build out using Lumira visualizations. SELECT a.Profit_Center, a.Product_Hierarchy, a.Material, Sold_to, End_Customer, Report_Date, SUM(Dist_WAC_Amount_KZWI1) POS_COST ,sum(a.Agency_Fee_KZWI6) as Agency_Fee ,sum(a.Chargeback_NETWR) as Chargeback FROM cmpa.dbo.SAP_POS_2014 as a --product description LEFT JOIN CMPA.dbo.SAP_MARA AS m WITH(NOLOCK) ON m.material = RIGHT(a.material,10) --Profit Center Hierarchy info LEFT OUTER JOIN cmpa.dbo.SAP_Business_Hierarchy AS pc WITH(NOLOCK) ON pc.Profit_Center = m.Profit_Center where PC.Div = 'ep' GROUP BY a.Profit_Center, a.Product_Hierarchy, a.Material, Sold_to, End_Customer, Report_Date Thank you so much for your time and feedback.
Thank you for looking into this Alan. After further digging, I have taken the joins and where clause out of my SQL code and the query worked. I have not tested to see which was causing the issue. Appreciate the support.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Brent,
Please reproduce the issue again and collect Lumira Desktop trace logs from "%temp%\sapvi\logs\" folder on your desktop. The filename starts with "TraceLog_***". Please paste the log entries here so we can analyze them.
Please also let us know:
1) How long does the query take to return results in SQL Server (assuming you are using the Management Studio), and Powerpivot?
2) If you limit the amount of results in your SQL query (select top ###), does it return data successfully?
Thanks,
Alan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Alan,
Thank you for the support and a fast reply.
The query takes 16 minutes to run in SQL Server Management Studio.
If I limit it to Top 100 rows, it takes 22 minutes in SQL Server Management Studio and I get the same time out within Lumira.
I've attached the trace log as it is quite long.
Kind regards,
Brent
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.