Getting error during Custom Report Creation in Taskresult for failed tasks

IIQ version 8.3

getting error… Any solution to it

CSV import sailpoint.object.AuditEvent; import sailpoint.api.SailPointContext; import sailpoint.object.LiveReport; import sailpoint.object.TaskResult; import sailpoint.task.Monitor; import sailpoint.tools.GeneralException; import sailpoint.tools.General; import java.util.List; import java.util.ArrayList; import java.util.Map import java.util.HashMap;
	  List <TaskResult>failedTasks = TaskResult.find("Status == 'FAILED'");
	  List<Map<String, Object>> reportData = new ArrayList<>();
	  
	  for(TaskResult task : failedTasks){
		  
		  Map <String , Object > row = new HashMap<>();
		  row.put("Task Name", task.getName());
		  row.put("Status", task.getStatus());
		  row.put("Error Message", task.getErrorMessage());
		  row.put("StartTime", task.getStartTime());
		  row.put("EndTime", task.getEndTime());
		  row.put("Duration", General.getDuration(task.getStartTime(), 
                      task.getEndTime());
		  reportData.add(row);
		  
		  for(Map<String, Object>row : reportData){
			
			for(String key : print(key + ":"+ row.get(key)+"|"));
			  
		  }
		  System.out.println();
		  
	  }
	   </Source>
         </QueryScript> 
  </Columns>
      </LiveReport>
    </value>
  </entry>
</Map>
Displays Task Failure Audit Report. for start date for end date

Hi @Sanket98,

question: why you do it into a queryscript?

Hi @Sanket98 ,

I have attached the report to retrieve the failed task from the TaskResult object mentioned in your previous post. Please try using the report and let us know if you encounter any issues.