Skip to content
Snippets Groups Projects
Commit 48ac8c7b authored by Johannes Goderbauer's avatar Johannes Goderbauer
Browse files

Importer: hotfix errorhandling

parent 00e6fb38
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,6 @@ import("system.fileIO");
import("system.swing");
import("system.util");
import("system.text");
import("ErrorHandling_lib");
import("ImporterCustomMappingFunctions_lib");
import("ImporterMappingFunctions_lib");
......@@ -402,7 +401,7 @@ function Importer(pConfig)
{
logging.log(ex["rhinoException"] != undefined ? ex["rhinoException"] : ex)
this.writeLog(this.LogLevels.Error, "Exception in mapping function [" + fname + "] for input row " + this.recordCounts.total+ " - " + this.Config.Mapping[i][1]["Target"]);
recordStack.exception = errorHandling.getClearMessage(ex)+ " - Column: " + this.Config.Mapping[i][1]["Target"];
recordStack.exception = logging.toLogString(ex["rhinoException"] != undefined ? ex["rhinoException"] : ex, true) + " - Column: " + this.Config.Mapping[i][1]["Target"];
skip = true;
}
......@@ -650,7 +649,7 @@ function Importer(pConfig)
this.writeLog(this.LogLevels.Error, "Error at " + (insertSuccessfull ? "" : "Insert") + (updateSuccessfull ? "": "Update") + ":" + logging.toLogString(ex));
logging.log(ex["rhinoException"] != undefined ? ex["rhinoException"] : ex)
this.recordCounts.skip++;
recordStack.exception = errorHandling.getClearMessage(ex);
recordStack.exception = logging.toLogString(ex["rhinoException"] != undefined ? ex["rhinoException"] : ex, true);
if(this.insertArray.length > 0 && !insertSuccessfull) {
this.writeLog(this.LogLevels.Info, "Insert array: " + JSON.stringify(this.insertArray, null, " "));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment