diff --git a/ui-admin/src/core-plugins/admin/1/as/services/xls-import/xls-import.py b/ui-admin/src/core-plugins/admin/1/as/services/xls-import/xls-import.py
index 124afb14d80b5c81cc80e57cc38298e8434bc64f..990f5c00ef6084d704acd6ea5990b8cded5b6094 100644
--- a/ui-admin/src/core-plugins/admin/1/as/services/xls-import/xls-import.py
+++ b/ui-admin/src/core-plugins/admin/1/as/services/xls-import/xls-import.py
@@ -55,8 +55,8 @@ def process(context, parameters):
             temp.mkdir()
             tempPath = temp.getAbsolutePath()
             MasterDataRegistrationHelper.extractToDestination(zip_bytes, tempPath)
-            if (temp.listFiles().length == 1):
-                File singleFile = temp.listFiles()[0]
+            if (len(temp.listFiles()) == 1):
+                singleFile = temp.listFiles()[0]
                 if (singleFile.isDirectory()):
                     temp = singleFile
                     tempPath = singleFile.getAbsolutePath()