General error during class generation: Method code too large!


I’m trying to automate logging functionality with Katalon Studio and I’m getting this error. I saw that some guys are having this error if their code is too large but my code is as simple as this:

import static com.kms.katalon.core.checkpoint.CheckpointFactory.findCheckpoint
import static com.kms.katalon.core.testcase.TestCaseFactory.findTestCase
import static com.kms.katalon.core.testdata.TestDataFactory.findTestData
import static com.kms.katalon.core.testobject.ObjectRepository.findTestObject
import com.kms.katalon.core.checkpoint.Checkpoint as Checkpoint
import com.kms.katalon.core.checkpoint.CheckpointFactory as CheckpointFactory
import as MobileBuiltInKeywords
import as Mobile
import com.kms.katalon.core.model.FailureHandling as FailureHandling
import com.kms.katalon.core.testcase.TestCase as TestCase
import com.kms.katalon.core.testcase.TestCaseFactory as TestCaseFactory
import com.kms.katalon.core.testdata.TestData as TestData
import com.kms.katalon.core.testdata.TestDataFactory as TestDataFactory
import com.kms.katalon.core.testobject.ObjectRepository as ObjectRepository
import com.kms.katalon.core.testobject.TestObject as TestObject
import com.kms.katalon.core.webservice.keyword.WSBuiltInKeywords as WSBuiltInKeywords
import com.kms.katalon.core.webservice.keyword.WSBuiltInKeywords as WS
import com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords as WebUiBuiltInKeywords
import com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords as WebUI
import internal.GlobalVariable as GlobalVariable
import org.openqa.selenium.Keys as Keys

WebUI.navigateToUrl(‘here is some url’)‘button_Walk-In’), FailureHandling.STOP_ON_FAILURE)

WebUI.setText(findTestObject(‘input_FirstName’), first_name)

WebUI.setText(findTestObject(‘input_LastName’), last_name)

WebUI.setText(findTestObject(‘input_Email’), email)

WebUI.setText(findTestObject(‘input_Company’), company)‘button_add Walk-in’))

I am reading the data from excel table with 1500 rows which shouldn’t be that much also.

Any idea what can be done or if this is due to recent update (if so I will find some way to roll back to previous version)?

Until version 5.3.1 this problems did not occur.
After that version you get that error.
You can read about it here:

I just installed 5.4.2 and got that error.
What i did was to brake my code into methods and call them.
But my code was like over 1000 lines. Yours is not.
You can try that or you can try and install 5.3.1

Is there any fix for this issue?

I have a 10 line test which I want to execute for 2000 values read from excel.