Hi All! I have a item which reference is “LoadData”. I used Get queue items activity. Output is queueItems. I want to check if “LoadData” fail in the last 3 hours 3 times and is it also because the error message contains “Tmld”? I don’t want to use for each activity. How can i do it?
Chatgpt gives me this code, but it doesnt work.
Dim count As Integer = queueItems.Where(Function(x) x.Status = "Failed" AndAlso
x.ProcessingException IsNot Nothing AndAlso
x.ProcessingException.Reason IsNot Nothing AndAlso
x.ProcessingException.Reason.Contains("Tmld")).Count()
Console.WriteLine("Count: " & count)