Select to view content in your preferred language

usage_reports generate_report report_type='itemUsages', duration='weekly' errors with invalid timeAggregate value

151
1
Jump to solution
02-07-2025 09:19 AM
Dirk_Vandervoort
Frequent Contributor

The code:

report = usage_reporter.generate_report(focus='org', report_type='itemUsages', duration='weekly', start_time=target_date, notify=True, future=False)

errors with the exception "invalid timeAggregate value".

What I am trying to do is create this usage report in Python: 

Dirk_Vandervoort_0-1738948526536.png

which does not appear to have a timeAggregate value. Also, there is no parameter in the create_report method that accounts for time aggregation.

We are trying to automate report generation.

Does anyone have a similar experience?

 

0 Kudos
1 Solution

Accepted Solutions
PeterKnoop
MVP Regular Contributor
1 Reply
PeterKnoop
MVP Regular Contributor

This is a bug, which has been fixed for the next release.

For more details see: gis.admin.usage_reports.generate_report() failing unexpectedly with "Specified output format not sup...