diff --git a/python/HelperModules/datascaler.py b/python/HelperModules/datascaler.py
index 80009b4c378e3134bdd08a53ebacf0452e6cba1e..d61c958df8a6dde1e512db8015d28ccdd395d851 100644
--- a/python/HelperModules/datascaler.py
+++ b/python/HelperModules/datascaler.py
@@ -4,6 +4,7 @@
 import json
 import numpy as np
 import pandas as pd
+from HelperModules.messagehandler import ErrorMessage
 
 
 def getminmax(xin, xin_min, xin_max, maximum=1, minimum=0):
@@ -89,6 +90,8 @@ class scaler():
 
         """
         for variable in self.m_cfgset.get("VARIABLE"):
+            if max(xin[variable.get("Name")]) == min(xin[variable.get("Name")]):
+                ErrorMessage(f"Input variable '{variable.get('Name')}' only contains {min(xin[variable.get('Name')])}. You need to check this!")
             scaleoption = variable.get("Scaling") if not variable.get("Scaling") is None else self.m_cfgset.get("GENERAL").get("InputScaling")
             if scaleoption is None:
                 scale = 1