---
title: "Bugfix: A row the database refuses no longer ends the run"
manual: "adsum by web-vision"
version: "main"
permalink: "https://docs.typo3.org/permalink/web-vision/adsum-monorepo:bugfix-1793005569@main"
source: "Changelog/1.0.0/Bugfix-1793005569-ARefusedRowNoLongerEndsTheRun.rst"
rendered: "2026-11-07T02:01:32+00:00"
---

# Bugfix: A row the database refuses no longer ends the run {#bugfix-1793005569}

## Description {#description}

A row that the database refused with an error such as a unique violation was reported as `targetRefused`, but the
failed flush had closed the entity manager, so the next row ended the run with `The EntityManager is closed` and the
run stayed `running`. The import now writes each row at once, replaces a closed entity manager after the refusal and
goes on with the next row of the batch. The mappings and issues of the rows before the refused one stay.

## Impact {#impact}

A refused row is one issue; the stage imports the rest. A flush after every row costs little against the command each
row already runs.
