diff --git a/arc-ws/src/main/java/fr/insee/arc/ws/services/importServlet/ImportStep3GetTableDataService.java b/arc-ws/src/main/java/fr/insee/arc/ws/services/importServlet/ImportStep3GetTableDataService.java index db4fce30..2a17c02b 100644 --- a/arc-ws/src/main/java/fr/insee/arc/ws/services/importServlet/ImportStep3GetTableDataService.java +++ b/arc-ws/src/main/java/fr/insee/arc/ws/services/importServlet/ImportStep3GetTableDataService.java @@ -38,6 +38,8 @@ public void execute(SendResponse resp) throws ArcException { TableToRetrieve table = clientDao.getAClientTableByName(arcClientIdentifier.getClientInputParameter()); + this.clientDao.deleteFromTrackTable(table.getTableName()); + // transfer data to http response ServiceDao.execQueryExportDataToResponse(resp.getWr(), table, this.arcClientIdentifier.getFormat(), clientDao); @@ -47,8 +49,6 @@ public void execute(SendResponse resp) throws ArcException { if (arcClientIdentifier.getFormat().isParquet()) this.clientDao.deleteParquet(table); - this.clientDao.deleteFromTrackTable(table.getTableName()); - LoggerHelper.info(LOGGER, "Table " + table.getTableName() + " had been retrieved and dropped."); } else {