Past Goal/Funnel report generation ends up in infinite loop

Hi, thanks for the fast answer.
I tried to use rearchive_reports_in_past_last_n_months with:
rearchive_reports_in_past_last_n_months = last0

But them the cron job fails with
Failed to create invalidations for report re-archiving (idSites = ["1"], pluginName = Funnels, report = 30, startDate = ): Error: Call to a member function isEarlier() on null in /var/www/html/core/Archive/ArchiveInvalidator.php:494

I’ve been reading the code the bit,

$lastNMonthsToInvalidate will be equal to 0, and empty(0) is true, meaning getEarliestDateToRearchive() will return null instead of the current month, which then lead to the exception.

Also, could be good to update the documentation, to mention the past report generation :slight_smile:

Concerning the infinite loop, I’m still a bit concern, because during the first cron job on the first day of a month, some Funnel reports are generated. Could you please double check what could be the root cause?

Thanks and Regards