Community forum

Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
View
Go to last post Go to first unread
Offline RJK  
#1 Posted : Tuesday, August 12, 2014 4:02:57 PM(UTC)
RJK

Rank: No customer

Joined: 8/11/2014(UTC)
Posts: 6
United States
Location: MISSOURI, KANSAS CITY

Thanks: 1 times
Code:

s=getVC_Connection();
if (s != null)
{
	if (s.Connected)
	{
		List<JobClass> allJobs = s.Jobs.GetAll();
		foreach (JobClass j in allJobs)
		{
			List<LogJobHistoryClass> Logs = s.Log.GetJobHistory(j.Id.ToString(), new DateTime(2014, 8, 4), new DateTime(2014, 8, 12));
			foreach (LogJobHistoryClass L in Logs)
			{
				if (L.ExitCodeResult == ExitCodeClass.ExitCodeResultT.Failure)
				{
				   List<LogTaskHistoryClass> T =  s.Log.GetTaskExecutionHistory(L.ExecutionId);
				   //T.Count is always 0 here
				}
				dtbl_JobHistory.Rows.Add(newJobHistRow);
			}
		}
	}
}


What is the preferred way to extract the reason why a job failed during a particular Execution ID? Im stuck due to the fact that at the Job level where I am iterating I dont know what TaskPID that failed during job execution. Is this really the TaskID, or a PID?

Im not getting anything returned whenever I try to get the log information via Log.GetTaskExecutionHistory. Im attempting to get to the "StdErr" output, but i cant even get to the instance of the failed log.

Edited by user Tuesday, August 12, 2014 4:24:56 PM(UTC)  | Reason: Add additional Information

Offline RJK  
#2 Posted : Wednesday, August 13, 2014 1:25:13 PM(UTC)
RJK

Rank: No customer

Joined: 8/11/2014(UTC)
Posts: 6
United States
Location: MISSOURI, KANSAS CITY

Thanks: 1 times
Anyone???
Users browsing this topic
Guest (3)
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2016, Yet Another Forum.NET
This page was generated in 0.113 seconds.
Scroll to Top