Reporter indicated "httpStatusCode: 500" when download report it created by API.

book

Article ID: 170953

calendar_today

Updated On:

Products

Reporter-S500 Reporter-VA

Issue/Introduction

I created report by Reporter API function by following command.

https://ReporterIP:8082/api/create?username=admin&password=XXXX&database=XXXX&role=_admin&label=demoreport1&summarizeBy=sc_filter_category&action=download

I can download created report however, Reporter indicated error when I request download that report again.

httpStatusCode: 500
httpMessage: Internal Server Error
detailedMessage: Failed to download report

Cause

Reporter create report in memory when set parameter action=download and it will be remove from memory when you download. 

Environment

Reporter version : Reporter10.2.1.1 or later

Related function:Reporter API

Resolution

You need set action=archive if you want to created report many times.
[Note] The Reporter's default action is set as archive so you don't need to set any action parameter.

Sample

https://ReporterIP:8082/api/create?username=admin&password=XXXX&database=XXXX&role=_admin&label=demoreport1&summarizeBy=sc_filter_category&action=archive

or

https://ReporterIP:8082/api/create?username=admin&password=XXXX&database=XXXX&role=_admin&label=demoreport1&summarizeBy=sc_filter_category