Skip to Content
author's profile photo Former Member
Former Member

Why is my Lumira SQL Query timing out?

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Apr 29, 2016 at 01:11 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Apr 28, 2016 at 01:20 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.