Getting Error while using GetQueue Item

  • Reason: Get Queue Item Throwed an Error. Error Code is 502 Error Message is job.faulted for job: AsyncCodeActivity.BeginExecute must return an IAsyncResult where IAsyncResult.AsyncState is the state object provided by the runtime. in Main.xaml at Throw “Throw” at Sequence “Body” at TryCatch “Try Catch” at Sequence “Main Sequence” at Main “Main” System.Exception: AsyncCodeActivity.BeginExecute must return an IAsyncResult where IAsyncResult.AsyncState is the state object provided by the runtime. at System.Activities.Statements.Throw.Execute(CodeActivityContext context) at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager) at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)

I’m getting this error while using getQueueItem how to fix this issue anyone faced issue earlier?

HI, @Buvi_R Use Get Transaction Item instead of Get Queue Items, and always check if the item is Nothing before processing. This avoids most queue errors and makes the bot more reliable.

Sorry for the mistake I’m using Get Transaction Item only. There only we are facing this issue.

Hi @Buvi_R

What is your System activity package version?

Check your queue name, folder, and robot permissions most errors are due to a typo, wrong folder, missing permission, or empty queue

Being able to see the part of the workflow that causes it would also help a little bit.