Processing the same transaction item repeatedly while using REFramework

Hi team,

I have an RPA process using a REFramework. I could not figure out why my process could not go to the next transaction item; it processes the same row again and again. Can anyone advise what the issue could be? I want to the process to go to the next transaction, if any. Otherwise exit after closing applications.

Thanks a lot for your help!

Are you using the Get Transaction activity? It should get only new queue items, and set them to In Progress (then later REF sets it to Succeeded/Failed) so you can’t get that same queue item again. Do you have retry set either in the REF Config file or in the queue?

Hi @postwick

Are you using the Get Transaction activity? NO.
Do you have retry set either in the REF Config file or in the queue? Yes, but the max retry is set to 3. This goes beyond 3. I use REFramework template.

Thank you!

That’s the problem. You have to use Get Transaction so it takes the next new transaction and sets it to In Progress. REF is already designed this way. It will Get Transaction the next new item, and then when finished processing the item will set it to Succeeded/Failed in the queue.

Hi @postwick

Hi

I have to say sorry that I misspoke in my previous post. Actually, I used get transactions in a broader REframework.

It’s better if I show the screenshot.

The error happens after the Process Transaction block , in the Update part, I believe!

Since I do not need any report, I ignored the report related activities under Update Status report Workflow.

Thanks for your help!

Get Transaction Data is a state and is not the Get Transaction activity I’m talking about. There should be a Get Transaction activity inside Get Transaction Data.

@postwick

Yes, I have get transaction Item activity in the get transaction data workflow.

There is some confusion in your descriptions of what is happening. “Row” indicates your source is a datatable, not transactions from a queue. If you have retry set and a transaction fails, it will reprocess it.

Hi @postwick

Sorry for the very late response here. I’ve been taken away by another non-RPA assignment. Getting back to you, sorry for the confusion, I meant a transaction item (since I use queue items). My process keeps updating the first transaction over and over while I still have another new transaction in queue in the orchestrator. Even though the transaction status says “successful”, the same transaction item is processed again. Thanks!

That would suggest you are failing to get the next transaction so your code doesn’t correctly clear the current transaction in memory and get the next one. Try stepping through the code to see if that is the case and why it might skip it.

Hi @Jon_Smith

Thank you that was helpful. I had to clear the current transaction in memory as you can see below. Much appreciated.

Perfect, you must have removed it somewhere else along the way causing the error. Glad my insight helped!

Hi @Jon_Smith

[quote=“Jon_Smith, post:10, topic:675840”]
…doesn’t correctly clear the current transaction in memory…
[/quote] was a key phrase to resolve the issue. Thanks!

1 Like

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