• I just updated my store from WooCommerce 3 to the latest 4.8. The update went completely fine. I decided to explore the new Analytics feature, but I’m encountering an issue when importing previous orders. I imported the last 90 days of data which took about an hour, but after all imports were marked as finished, the status has been stuck on “Finalizing” for over 12 hours now.

    My import page looks like this:

    * Skip previously imported customers & orders – ENABLED
    * Imported registered customers 6125 of 6102 (progress bar full)
    * Imported orders and refunds 18655 of 18652 (progress bar full)
    * Status: Finalizing (spinning wheel)

    Button: “Stop Import”

    I have tried refreshing the page and nothing changes.

    I would love to continue importing historical data… I have many years of it… but want to make sure there’s no bug here.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter aaversa

    (@aaversa)

    Update – I checked the logs and there were no fatal errors associated with importing order data. Just some stuff related to shortcodes.

    Server status:

    We are running WordPress 5.3.6 and WooCommerce 4.8.0.

    WP-Cron status is “-”

    WordPress memory limit is 2GB
    PHP version is 7.3.25
    PHP max post size is 2GB
    PHP time limit is 600
    PHP max input vars is 16384
    Database size is 4700mb

    Plugin Support RK a11n

    (@riaanknoetze)

    Hi there,

    Are you seeing any stuck scheduled actions under **WooCommerce > Status > Scheduled Actions**? Are there any JavaScript errors showing on the console tab of your browser tools?

    One odd thing I noticed is that the numbers doesn’t quite match: It imported more customers, orders and refunds than exists (e.g. 6125 of 6102) – or was that a typo?

    Thread Starter aaversa

    (@aaversa)

    Not a typo, that is exactly what is displayed on my screen.

    I don’t see any “Pending” actions relevant to this in our Scheduled Actions tab, just sfn_send_usage_report and action_scheduler/cleanup_wp_comment_logs.

    Under “Failed”, I don’t see anything in the last week, so nothing there.

    No Java console/errors.

    Oddly enough, when I logged in this morning, I did not see the “Initializing” or “Finalizing” text. So maybe it just took 2 full days to finalize…?

    I’m currently running another import starting from 9/1/2020 which – in theory – is slightly before 90 days ago. Although for some reason it’s only showing 987 customers, 2683 orders or refunds as the max before I even click Start. Is it automatically filtering things it has imported before? How does that work?

    EDIT: After a couple minutes, I’m again seeing text that says “1000 out of 987 customers”. It seems like it only increases in increments of 25.

    Is this a beta feature? Can I trust that this is actually working? We spend a huge amount on WooCommerce every year and I’m pretty surprised at how broken this is.

    EDIT 2: OK, during this second import – which already “finished” in terms of the progress bar, but is now stuck on Finalizing again, I actually *do* see over 1,000 errors in the console. All identical.

    “Unchecked runtime.lastError: The message port closed before a response was received.”
    /wp-admin/admin.php?page=wc-admin&path=%2Fanalytics%2Fsettings

    • This reply was modified 3 years, 11 months ago by aaversa.
    • This reply was modified 3 years, 11 months ago by aaversa.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘WooCommerce Analytics import stuck on “finalizing”’ is closed to new replies.