Details
Description
We don't deduplicate writing of user tasks or events on process instances that we store. We then group them by ID on upsert, causing a duplicate key exception. Although we don't expect duplicate tasks or events on an import, we should make sure our scripts handle the scenario where this is the case