Sanket98
(Sanket Herlekar)
January 17, 2025, 10:35am
1
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?
Arun-Kumar
(Arun Kumar)
January 19, 2025, 3:58am
3
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.
IIQ version 8.3
Getting error for custom report any solution to it
Blockquote
Preformatted text
Please check below code as ref
<Attributes>
<Map>
<entry key="emailFileFormat">
<value>
<List>
<String>CSV</String>
</List>
</value>
</entry>
<entry key="report">
<value>
<LiveReport disablePreview="true" title="Audit Events Live Report">
<DataSource objectType="TaskResult" type="Filter">
…