From 97e0c5d57d79cf350cd8cd44c64a328206eec835 Mon Sep 17 00:00:00 2001
From: Benjamin Ulrich <b.ulrich@adito.de>
Date: Fri, 15 Jan 2021 08:35:14 +0000
Subject: [PATCH] [Projekt: Entwicklung - xRM][TicketNr.: 1065323][Importer_lib
 eindeutigere Fehlermeldung]

---
 process/Importer_lib/process.js | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/process/Importer_lib/process.js b/process/Importer_lib/process.js
index a9e5a528933..98cb4591bf8 100644
--- a/process/Importer_lib/process.js
+++ b/process/Importer_lib/process.js
@@ -1443,6 +1443,10 @@ function Importer(pConfig)
             var tmp = this.KeyColumn[pTable][col];  // contains I | I;U | I+U
             if(tmp != "")
             {
+                if(!this.OutputRecord[pTable][col])
+                {
+                    throw new Error(translate.withArguments("Importer_lib: Condition could not be build because the Keycolumn %0 is not in the OutputRecord.", [col]));
+                }
                 var value = this.OutputRecord[pTable][col]["U"];
                 if(value == undefined || value == "")
                     value = this.OutputRecord[pTable][col]["I+U"];
-- 
GitLab