Skip to main content

How to fix common issues

This page lists the most common issues with the Advanced Reports extension for Magento 2 and what to check for each of them.

A report is empty​

  • Date range: check the period in the toolbar. Sales reports count orders by the date they were placed, and cart reports count carts by the date they were created.
  • Order statuses: sales and catalog reports count only orders in the statuses set in Order statuses as default filter. If your orders use other statuses, such as custom ones, add them to the setting.
  • Filters: the chips above the table show the filters applied to the report, including the ones saved with it. Turn them off one by one to find the one that hides the rows.
  • Store filter: make sure the Store filter includes the store views that have orders.
  • SQL reports: a report written as an SQL statement does not run while Enable SQL reports is set to No in the settings.

The figures differ from the default Magento reports​

The extension reads live data, uses the date the order was placed and converts amounts into a base currency. The default Magento reports may use other dates, statuses and currencies. See Why numbers differ from the default Magento reports.


Gross Margin or Gross Profit looks too high​

These columns subtract the product cost from the revenue. Products without the Cost attribute are counted as costing 0, which makes their margin 100%. Fill in Cost under Advanced Pricing on the product page. Orders placed before that keep the cost they were placed with. See Cost, Gross Profit and Gross Margin.


Emails are not sent​

  • Open the email in Email Notifications and make sure Active (send on schedule) is enabled.
  • Check the Schedule. It is a cron expression of five fields, and the time is in the store time zone, not in the time zone of your computer.
  • Make sure Magento cron is running on your server. Scheduled emails are sent only by cron.
  • Press Save & Send Now to send the email at once. If this email doesn't arrive either, the issue is with sending emails from Magento:
    • Disable Email Communications at Stores -> Configuration -> Advanced -> System -> Mail Sending Settings must be set to No.
    • Check the spam folder of the recipient.
    • Make sure the General Contact address at Stores -> Configuration -> General -> Store Email Addresses belongs to a domain your server may send email for.
  • If the email arrives but a dashboard block is missing, note that Chart and HTML widgets are not sent by email. Use a report or a Table widget instead.

A report loads slowly​

  • Narrow the date range.
  • Remove grouping columns you don't need. Each combination of their values is a row of its own, so a column such as Order # turns a report into a list of all orders.
  • Check the custom columns added with the Config Builder. A complex SQL expression is calculated for every row.
  • For reports written as SQL statements, use Stop a query after (seconds) and Results cache TTL (minutes) in the settings.

To find out how long each report request takes, set Enable logging reports requests to Yes in the settings. The extension then writes the details and the execution time of each request to the var/log/system.log file. Turn it off when you are done.


The Sales by Geo-data map shows no points​

The map needs the location of each postal code, which cron jobs look up after the orders are placed. See How to manage geo-data.


Reports show "Report Builder config(s) could not be loaded"​

One of the configs created in the Config Builder can't be loaded. The warning links to the config and names the reason. See Troubleshooting in the Config Builder section.


An admin user can't see a report or the Save button​

Access to reports, dashboards and their editing is set per admin role. See How to restrict access to a specific report.