DynamicsNinja / FlowExecutionHistory

XrmToolBox tool that allows you to browse Power Automate flow runs by applying multiple filters including multiple flows at the same time.
MIT License
10 stars 0 forks source link

When I try to use the flow execution history, I get this error and tried to refresh. Still having this error #27

Closed SanjayDFT closed 7 months ago

SanjayDFT commented 7 months ago

[Write any error info to resolve easier]


System.NullReferenceException:
Object reference not set to an instance of an object.
Flow Execution History
- Fic.XTB.FlowExecutionHistory.Services.FlowClient.<>c__DisplayClass19_0.<GetFlowRunsFromCache>b__0(FlowRunsCache x)
- System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source, Func`2 predicate)
- Fic.XTB.FlowExecutionHistory.Services.FlowClient.GetFlowRunsFromCache(String flowId, String status, DateTimeOffset dateFrom)
- Fic.XTB.FlowExecutionHistory.Services.FlowClient.GetFlowRuns(Flow flow, String status, DateTimeOffset dateFrom, DateTimeOffset dateTo, Int32 durationThreshold, Boolean includeTriggerOutputs)
- Fic.XTB.FlowExecutionHistory.FlowExecutionHistory.<>c__DisplayClass26_0.<GetFlowRuns>b__3(Flow f)
- System.Threading.Tasks.Parallel.<>c__DisplayClass17_0`1.<ForWorker>b__1()
- System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
- System.Threading.Tasks.Task.<>c__DisplayClass176_0.<ExecuteSelfReplicating>b__0(Object <p0>)

SanjayDFT commented 7 months ago

@DynamicsNinja

DynamicsNinja commented 7 months ago

Can you download new version, it should be fixed there

SanjayDFT commented 7 months ago

Thanks for replying back with the solution. I have now downloaded and updated the tool but now got this new issue: Error Time: 2024-04-16 15:12:17.495 System.IndexOutOfRangeException Index was outside the bounds of the array. Flow Execution History at System.Collections.Generic.List1.Enumerator.MoveNext() at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable1 source, Func2 predicate) at Fic.XTB.FlowExecutionHistory.Services.FlowClient.GetFlowRunsFromCache(String flowId, String status, DateTimeOffset dateFrom) at Fic.XTB.FlowExecutionHistory.Services.FlowClient.GetFlowRuns(Flow flow, String status, DateTimeOffset dateFrom, DateTimeOffset dateTo, Int32 durationThreshold, Boolean includeTriggerOutputs) at Fic.XTB.FlowExecutionHistory.FlowExecutionHistory.<>c__DisplayClass26_0.<GetFlowRuns>b__3(Flow f) at System.Threading.Tasks.Parallel.<>c__DisplayClass17_01.b1() at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask) at System.Threading.Tasks.Task.<>cDisplayClass176_0.b__0(Object )

SanjayDFT commented 7 months ago

@DynamicsNinja

DynamicsNinja commented 7 months ago

Do you have the latest version v1.2024.4.6? Looks like the issue that was fixed in the very last version.

SanjayDFT commented 7 months ago

@DynamicsNinja Hey, I don't think it was the version issue but it seemed to work after I deleted and re-installed the tool. Thank you very much for the help and response back. Much appreciated.