UnexpectedRollbackException when executing custom placeholders cause export to fail

Description

When using custom placeholders in a PDF template it can happen that the placeholder implementation causes a RuntimeException or otherwise causes the transaction that it is being run in to be rolled back. When this occurs the whole export fails with an UnexpectedRollbackException instead of just skipping the placeholder.

We should handle this exception in this case and continue with the export, without the affected placeholder.

 

Stacktrace:

Environment

None

Assignee

Unassigned

Reporter

Sync User [K15t]

Labels

None

Participants

None

QA Status

None

Deployment

Server

Documentation Status

None

UI Concept

None

External Votes

None

Components

Fix versions

Priority

Major
Configure