+ Sie haben eine fehlerhafte Eingabe vorgenommen. Die Fehlermeldung lautet:
+
+
+
diff --git a/app/util/genericServices/kommonitorBatchUpdateHelperService/kommonitor-batch-update-helper-service.module.js b/app/util/genericServices/kommonitorBatchUpdateHelperService/kommonitor-batch-update-helper-service.module.js
index 48cbb33fd..587c4135d 100644
--- a/app/util/genericServices/kommonitorBatchUpdateHelperService/kommonitor-batch-update-helper-service.module.js
+++ b/app/util/genericServices/kommonitorBatchUpdateHelperService/kommonitor-batch-update-helper-service.module.js
@@ -9,6 +9,10 @@ angular
let thisService = this; // to enable access to service methods from inside other functions (e. g. $timeout) where 'this' references something else
let timeseriesMappingReference;
+ const unsupportedDatasourceWarningMessage = "Nicht unterstützte Datenquelle: Die in der Mappintabelle angegebene Datenquelle wird für ein Batch-Update noch nicht unterstützt. Bitte geben Sie eine andere Datenquelle an!";
+ const unsupportedConverterWarningMessage = "Nicht unterstützter Converter: Der in der Mappintabelle angegebene Converter wird für ein Batch-Update noch nicht unterstützt. Bitte geben Sie einen anderen Converter an!";
+ const invalidMappingTableErrorMessage = "Die Mappingtabelle konnte nicht gelesen werden oder hat ein fehlerhaftes Format.";
+
// Maps the values of the "name" property in the converter's parameter array to the property names used in the batch update
// We can't use the parameters array directly because we have to bind angularjs variables to object properties, not array elements
// Used in converterParametersArrayToProperties and converterPropertiesToParametersArray
@@ -596,7 +600,11 @@ angular
// Remove all properties that are not part of the selected converter.
// This is usually needed when the user switches to a different converter.
- let paramNames = selectedConverter.parameters.map(obj => obj.name);
+ let paramNames = [];
+ if(selectedConverter.parameters) {
+ paramNames = selectedConverter.parameters.map(obj => obj.name);
+ }
+
for(var i=oldConverter.parameters.length-1; i>=0; i--) {
if(!paramNames.includes(oldConverter.parameters[i].name)) {
oldConverter.parameters.splice(i, 1);
@@ -1057,62 +1065,82 @@ angular
this.onMappingTableSelected = function(resourceType, event, rowIndex, file, batchList) {
- let mappingObj = JSON.parse(event.target.result);
+ let mappingObj;
+ try {
+ mappingObj = JSON.parse(event.target.result);
- batchList[rowIndex].mappingTableName = file.name;
-
- mappingObj.converter = this.converterParametersArrayToProperties(mappingObj.converter);
- mappingObj.dataSource = this.dataSourceParametersArrayToProperty(mappingObj.dataSource);
-
- // set value of column "Datensatz-Quellformat*" by converter name
- let converterName = mappingObj.converter.name
- for(let i=0; i