Understanding the error: "Anonymously Hosted DynamicMethods Assembly."

Hey there,

One of our automations seems to be failing with an error which I don’t really know where to begin with:

Throw: Error Log: The process faulted at: Invoke ExtractDetailsfromEmail workflow: Throw due to: Error Log: The process faulted at: Anonymously Hosted DynamicMethods Assembly due to: Index was outside the bounds of the array.

I’ve tried running the automation in our development environment and didn’t receive any such issue, however, when on our live system, this seems to occur on every run and has led to a series of faults.

Could anyone please help with what this is in relation to and how I could get to the bottom on it?

Thanks a lot!

HI @dr1992

This will be happens only when you are asking the bot to get the data from an index that is not available.

For example
Strarray = {“Demo”,“Sample”}

you asked to print strarray(2) will leeads to that error

keep a message box before to check did the array or datatable has appropriate values


Hi @dr1992

Some value that you are passing into workflow is null . You might be using some dictionary key which is missing or datatable cell value which is not available


This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.