Async Subflow Processing the same data
Comments
-
I have an async subflow that processes a Documents ID and creates Case IDs. Once the Case ID is created as a part of the process, we set its state to Processed. For some reason when we are looping through this subflow, we are seeing an issue where multiple Case IDs are being created for the same Document ID. How is this possible?
A scheduled job for processing data from a database. This job would result in eliminating any duplicate data from a list by merging the duplicates. However, since yesterday, the job is not picking up the unprocessed data and not merging the duplicates.
[i]edited by maxwell3000 on 7/10/2020[/i] -
[color=rgb(29, 28, 29)][font=Slack-Lato, appleLogo, sans-serif]The problem with async can come when youre looping over async subflow and firing off a bunch of work, but youre also not marking or flagging that work as "picked up". Then if the job runs again, it has no way of knowing, so it will blindly repeat old work. Which is likely to be occurring given your use case. [/font][/color]
[color=rgb(29, 28, 29)][font=Slack-Lato, appleLogo, sans-serif]
[/font][/color]
[color=rgb(29, 28, 29)][font=Slack-Lato, appleLogo, sans-serif]To resolve, I would recommend setting some state as the first step inside the async subflow. Not having this as the first step risks that if an error occurs, then causing the state to not be set. If the status isnt set then the scheduled job will continue to pick up the same data and read it as if it hasnt been processed. [/font][/color]
Howdy, Stranger!
Categories
- 4.1K All Categories
- 61 General
- 11 Training
- 201 Installation / Setup
- 1.1K Flows
- 106 Rules
- 260 Administration
- 212 Portal
- 489 General Q & A
- 693 Forms
- 333 Reports
- 3 Designer Extensions
- 47 Example Flows
- 51 CSS Examples
- 1 Diagram Tile
- 7 Javascript Controls
- 178 Pages
- 5 Process Mining
- New Features
- 178 Datastructures
- 69 Repository
- 219 Integrations
- 28 Multi-Tenant
- 27 SDK
- 76 Modules
- 56 Settings
- 25 Active Directory
- 12 Version 7
- 35 Version 8
- 66 Lunch And Learn Questions