Forum Discussion

naveenanda_vam's avatar
naveenanda_vam
Frequent Visitor
1 year ago
Solved

There was an error with your subscription

There was an error with your subscription "Agent KPI Summary" but we still delivered it

You are receiving this email because there was an error with a subscription to Power BI Report "Agent KPI Summary External" created by you.

 

 

EmailSubscriptionScreenshotVisualError

Visual errors were encountered while rendering the artifact. This subscription was delivered to recipients, however one or more visuals may be missing.

Resources Exceeded : The query has exceeded the available resources. Try filtering to decrease the amount of data requested.

More details : The XML for Analysis request timed out before it was completed. Timeout value: 225 sec.

 

 

You can check the latest state of the report by clicking in the button below.

Your next subscription is scheduled for December 20, 2024 13:30 UTC.

 

 

View content >

 

 

Technical Information

Activity Id: 86decd49-9d0f-41c7-9311-8e2be2b02e99

Request Id: 744bf9d2-3fcf-4eba-b166-ea2a9b69bce1

Cluster Name: WABI-US-NORTH-CENTRAL-B-redirect.analysis.windows.net

Subscription Start Time: December 13, 2024 0:00 UTC

Subscription End Time: December 13, 2025 0:00 UTC

 

2 Replies

  • Hi naveenanda_vam ,

    This error indicates that a subscription in Power BI experienced issues due to resource constraints while rendering the visuals for the report. Here’s how you can troubleshoot and resolve the problem effectively:

    Root Cause

    1. Resource Exceeded Error: The query associated with one or more visuals exceeded the resources available for rendering. This could be due to:

      • Large datasets being queried.
      • Inefficient data models or measures (DAX code).
      • Excessive complexity in visuals.
    2. Timeout Error: The report query exceeded the 225-second timeout limit in Power BI Service. While it may still render in Power BI Desktop, the Power BI Service has stricter time and resource constraints.

    Solutions

    1. Optimize the Data Model

    • Reduce Data Volume: Use filters or aggregates in your data model to reduce the size of data being queried.
    • Remove Unnecessary Columns or Tables: Remove fields or tables that are not used in the visuals.
    • Pre-Aggregate Data: Instead of calculating aggregations dynamically in Power BI, pre-calculate them in your data source or ETL process.

    2. Optimize DAX Queries

    • Review and optimize the DAX calculations in your report to ensure they are efficient.
    • Avoid using heavy functions like SUMX, FILTER, and EARLIER unnecessarily.
    • Replace complex calculated columns or tables with measures if possible.

    3. Simplify the Visuals

    • Reduce the Number of Visuals: Limit the number of visuals on a single page, as each visual executes a separate query.
    • Simplify Visuals: Avoid complex visuals like maps or charts with many data points.
    • Optimize Visual-Level Filters: Apply filters directly on visuals to limit the data scope.

    4. Paginated Reports (if applicable)

    • If you are using a paginated report, ensure that the report layout and data scope are minimal.
    • Use parameters to filter the dataset before rendering.

    5. Increase Capacity (Premium Workspaces)

    • If you’re on a Power BI Premium workspace, consider increasing the capacity or scaling up the node (e.g., from P1 to P2).
    • Check the workspace’s resource usage metrics to see if it's consistently reaching its limits.

    6. Scheduled Refresh Optimization

    • Ensure the data refresh process for the dataset completes successfully before the subscription triggers.
    • Use dataflows to pre-process data and reduce query load on the dataset.

    7. Adjust the Query Timeout

    • For DirectQuery or Live Connection models, consider optimizing the underlying data source or reducing the complexity of queries to prevent timeouts.

    8. Subscription Retry

    • Delete the subscription and recreate it with the same configuration.
    • Use the Test Email option to verify functionality.

    Next Steps

    1. Check Resource Metrics:

      • Go to Admin Portal > Capacity Settings (for Premium workspaces).
      • Review CPU and memory usage to identify bottlenecks.
    2. Test in Power BI Desktop:

      • Refresh the visuals locally to verify if they execute without errors.
      • Check the Performance Analyzer in Power BI Desktop for slow visuals or queries.
    3. Report the Issue (if unresolved):

      • If the issue persists despite optimization, report it to Power BI Support.
      • Share the Activity ID, Request ID, and Cluster Name from the error message for quicker resolution.

    Immediate Workaround

    • Reduce the data scope using report-level filters or slicers for the affected subscription page. This will decrease query complexity and help the subscription succeed in the short term.

    Let me know if you need specific guidance on optimizing your DAX or model!

     

    Please mark this as solution if it helps. Appreciate Kudos.

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi naveenanda_vam ,

     

    The error message indicates that the query exceeded the available resources, resulting in some visualizations missing from the delivered report. So you can try to filter the data or optimize the query pull to reduce the amount of data and make the query efficient.


    The links below are related to the issue you are experiencing and hopefully will help you:

    Chris Webb's BI Blog: The “Visual Has Exceeded The Available Resources” Error In Power BI

    Solved: Re: The XML for Analysis request timed out before ... - Microsoft Fabric Community

     

    If your Current Period does not refer to this, please clarify in a follow-up reply.

     

    Best Regards,

    Clara Gong

    If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.