diff --git a/cds_ils/importer/handlers.py b/cds_ils/importer/handlers.py index 427e11694..360c7175a 100644 --- a/cds_ils/importer/handlers.py +++ b/cds_ils/importer/handlers.py @@ -87,8 +87,10 @@ def importer_exception_handler( exc, log_id, record_recid, json_data=None, *args, **kwargs ): """Handle importer exception.""" + output_pid = getattr(exc, "record_id", None) + report = {"raw_json": json_data, "output_pid": output_pid} ImportRecordLog.create_failure( - log_id, record_recid, str(exc.description), report={"raw_json": json_data} + log_id, record_recid, str(exc.description), report=report ) diff --git a/ui/src/importer/importerTaskDetails/ImporterTaskDetailsComponents/ImportedTable.js b/ui/src/importer/importerTaskDetails/ImporterTaskDetailsComponents/ImportedTable.js index c9ec98938..6690ac7c7 100644 --- a/ui/src/importer/importerTaskDetails/ImporterTaskDetailsComponents/ImportedTable.js +++ b/ui/src/importer/importerTaskDetails/ImporterTaskDetailsComponents/ImportedTable.js @@ -35,7 +35,7 @@ export class ImportedTable extends React.Component { Action