ARA/CDA Error when fetching execution logs for a given package

Document ID : KB000100583
Last Modified Date : 28/01/2019
Show Technical Document Details
I have created a Job which would do the following
1) Populate the execution Id's which are completed for a given package and put them into VARA
2) Read the VARAand populate the exectuion logs for each execution Id from the VARA.
3) I'm using the below HTTP call to fetch the execution log.
4) This Job works fine when it is run independently. 
5) However, when this job is integrated with a workflow, it gives error
6) Execution Id's of the package are getting populated in VARA.
7) When reading through the VARAand fetching the execution logs, it gives the below error when it
{ "code": 1004, "error": "Report is currently generated. Please redo the request again after some time.", "details": 
"" }

Retrieve execution's log one by one as the system need time to prepare for log, Or we can modify the setting below in customer.config
<add key="ExecutionReport.Fetch" value="FetchAutomatically"/>
Doing that way, report always got retrieved automatically when the execution finished