Code is Running in Workfusion Studion but not working in control tower for RPA core Assignment

Hi Team,

below code is working fine in workfusion studion but not running in control tower, please help me to resolve the issue.

<?xml version="1.0" encoding="UTF-8"?>
  <robotics-flow>

        <robot driver="universal" close-on-completion="true"

              start-in-private="false">
              <capability name="SEARCH_ALL_WINDOWS" value="true" />
              <capability name="CLOSE_ALL_WINDOWS" value="false" />

              <script><![CDATA[

                    import com.workfusion.studio.rpa.recorder.api.*
                    import com.workfusion.studio.rpa.recorder.api.types.*
                    import com.workfusion.studio.rpa.recorder.api.custom.*
                    import com.workfusion.studio.rpa.recorder.api.internal.representation.*
                    import com.workfusion.bot.exception.*

                    def website = RString.of('https://www.acerentacar.com/LocationsIntl.aspx')
                    def var_locationphone = RString.of('')
                    def counter = RNumber.fromCanonical('0')
                    def var_locationname = RString.of('')
                    def xpath_locationname = RString.of('')
                    def list_locationlink = RList.of()
                    def var_locationlink = RString.of('')
                    def xpath_locationaddress = RString.of('')
                    def list_locationphone = RList.of()
                    def var_locationaddress = RString.of('')
                    def list_locationaddress = RList.of()
                    def xpath_locationphone = RString.of('')
                    def list_locationname = RList.of()
                    def xpath_locationlink = RString.of('')


                    com.workfusion.rpa.helpers.RPA.metaClass.static.$ = { Closure c -> c.call() } // Support for Expression action. Should be implemented in RPA class in next release.
                    enableTypeOnScreen()
                    sleep(3)
                    timeouts().pageLoadTimeout(100000, java.util.concurrent.TimeUnit.MILLISECONDS)
                    openChrome(UrlOperations.ensureProtocol("${website}"))
					println "After openChrome"
				
                    sleep(3)

                    $(byXpath("//*[@id=\"lstRegions_lnkRegion_4\"]")).click()
                    sleep(3)    

                    getEmAll = new ArrayList();
                    //Set location_name = new HashSet();
                    //Set location_addr = new HashSet();
                    
					println "After Array List Creation"
                    Set location_data = new ArrayList();
                    Set location_name = new ArrayList();
                    Set location_addr = new ArrayList();

                   // while ((counter) < (RNumber.fromCanonical('3'))) {
					counter.upto(10) {
                             xpath_locationname = RString.of("//*[@id=\"accordCountry_detail_4_lstCities_lnkLocationName_${counter}\"]")
							 //println xpath_locationname
                             xpath_locationlink = RString.of("//*[@id=\"accordCountry_detail_4_lstCities_lnkLocationName_${counter}\"]")
							 // println xpath_locationlink							  
                             xpath_locationaddress = RString.of("//*[@id=\"accordCountry_detail_4_lstCities_lblLocationAddress_${counter}\"]")
 							 //  println xpath_locationaddress

                             xpath_locationphone = RString.of("//*[@id=\"accordCountry_detail_4_lstCities_lblReservationPhoneTollFree_${counter}\"]")
							 //  println xpath_locationphone
							  						
							 println "**************************************************"
							 
                             var_locationname = RString.of($(byXpath("${xpath_locationname}")).text())
                             println var_locationname

                             var_locationlink = RString.of($(byXpath("${xpath_locationlink}")).getAttribute("href"))
 							 println var_locationlink

                             var_locationaddress = RString.of($(byXpath("${xpath_locationaddress}")).text())
							 println var_locationaddress
							 
                             var_locationphone = RString.of($(byXpath("${xpath_locationphone}")).text())
                             println var_locationphone

                             //list_locationname = list_locationname + var_locationname;
                             //list_locationlink = list_locationlink + var_locationlink;
                             //list_locationaddress = list_locationaddress + var_locationaddress;
                             //list_locationphone = list_locationphone + var_locationphone;

                             location_name.add(var_locationname);
                             location_addr.add(var_locationaddress);

/*                           Map e = new HashMap();
                             e.put("Name",location_name.get(RNumber.of(${counter})));                          
                             println e
                             e.put("Address",location_addr.get(RNumber.of(${counter})));	                              
                             println e
                             //e.put("Iterator",counter);
                             getEmAll.add(e);*/
                             counter = RNumber.of(${counter}+1) 
                    }

                  sys.defineVariable("location_name", location_name,true);
                    sys.defineVariable("location_addr", location_addr,true);
                    putAt("website", website)
                    putAt("var_locationname", var_locationname)
                    putAt("var_locationphone", var_locationphone)
                    putAt("counter", counter)
                    putAt("xpath_locationname", xpath_locationname)
                    putAt("list_locationlink", list_locationlink)
                    putAt("var_locationlink", var_locationlink)
                    putAt("xpath_locationaddress", xpath_locationaddress)
                    putAt("var_locationaddress", var_locationaddress)
                    putAt("list_locationaddress", list_locationaddress)
                    putAt("list_locationphone", list_locationphone)
                    putAt("xpath_locationphone", xpath_locationphone)
                    putAt("list_locationname", list_locationname)
                    putAt("xpath_locationlink", xpath_locationlink) 
              ]]></script>

        </robot>

  </robotics-flow>  

  <export include-original-data="true">
        <multi-column list="${getEmAll}" split-results="true">
              <put-to-column-getter name="Name" property="Name"/>     
              <put-to-column-getter name="Address" property="Address"/>              
        </multi-column>
  </export>
<?xml version="1.0" encoding="UTF-8"?>
  <robotics-flow>

        <robot driver="universal" close-on-completion="true"

              start-in-private="false">
              <capability name="SEARCH_ALL_WINDOWS" value="true" />
              <capability name="CLOSE_ALL_WINDOWS" value="false" />

              <script><![CDATA[

                    import com.workfusion.studio.rpa.recorder.api.*
                    import com.workfusion.studio.rpa.recorder.api.types.*
                    import com.workfusion.studio.rpa.recorder.api.custom.*
                    import com.workfusion.studio.rpa.recorder.api.internal.representation.*
                    import com.workfusion.bot.exception.*

                    def website = RString.of('https://www.acerentacar.com/LocationsIntl.aspx')
                    def var_locationphone = RString.of('')
                    int counter = RNumber.fromCanonical('0')
                    def var_locationname = RString.of('')
                    def xpath_locationname = RString.of('')
                    def list_locationlink = RList.of()
                    def var_locationlink = RString.of('')
                    def xpath_locationaddress = RString.of('')
                    def list_locationphone = RList.of()
                    def var_locationaddress = RString.of('')
                    def list_locationaddress = RList.of()
                    def xpath_locationphone = RString.of('')
                    def list_locationname = RList.of()
                    def xpath_locationlink = RString.of('')
                    
                    com.workfusion.rpa.helpers.RPA.metaClass.static.$ = { Closure c -> c.call() } // Support for Expression action. Should be implemented in RPA class in next release.
                    enableTypeOnScreen()
                    sleep(3)
                    timeouts().pageLoadTimeout(100000, java.util.concurrent.TimeUnit.MILLISECONDS)
                    openChrome(UrlOperations.ensureProtocol("${website}"))
					println "After openChrome"
				
                    sleep(3)

                    $(byXpath("//*[@id=\"lstRegions_lnkRegion_4\"]")).click()
                    sleep(3)    

                    getEmAll = new ArrayList();
                    //Set location_name = new HashSet();
                    //Set location_addr = new HashSet();
                    
					println "After Array List Creation"
                    Set location_data = new ArrayList();
                    Set location_name = new ArrayList();
                    Set location_addr = new ArrayList();

                   // while ((counter) < (RNumber.fromCanonical('3'))) {
					//counter.upto(10)
					for (counter = 0; counter<45; counter++)
					 {
                             xpath_locationname = RString.of("//*[@id=\"accordCountry_detail_4_lstCities_lnkLocationName_${counter}\"]")
							 //println xpath_locationname
                             xpath_locationlink = RString.of("//*[@id=\"accordCountry_detail_4_lstCities_lnkLocationName_${counter}\"]")
							 // println xpath_locationlink							  
                             xpath_locationaddress = RString.of("//*[@id=\"accordCountry_detail_4_lstCities_lblLocationAddress_${counter}\"]")
 							 //  println xpath_locationaddress

                             xpath_locationphone = RString.of("//*[@id=\"accordCountry_detail_4_lstCities_lblReservationPhoneTollFree_${counter}\"]")
							 //  println xpath_locationphone
							  						
							 println "**************************************************"
							 
                             var_locationname = RString.of($(byXpath("${xpath_locationname}")).text())
                             println var_locationname

                             var_locationlink = RString.of($(byXpath("${xpath_locationlink}")).getAttribute("href"))
 							 println var_locationlink

                             var_locationaddress = RString.of($(byXpath("${xpath_locationaddress}")).text())
							 println var_locationaddress
							 
                             var_locationphone = RString.of($(byXpath("${xpath_locationphone}")).text())
                             println var_locationphone

                             //list_locationname = list_locationname + var_locationname;
                             //list_locationlink = list_locationlink + var_locationlink;
                             //list_locationaddress = list_locationaddress + var_locationaddress;
                             //list_locationphone = list_locationphone + var_locationphone;

                             location_name.add(var_locationname);
                             location_addr.add(var_locationaddress);

/*                           Map e = new HashMap();
                             e.put("Name",location_name.get(RNumber.of(${counter})));                          
                             println e
                             e.put("Address",location_addr.get(RNumber.of(${counter})));	                              
                             println e
                             //e.put("Iterator",counter);
                             getEmAll.add(e);*/
                             //counter = RNumber.of(${counter}+1) 
                    }

                  sys.defineVariable("location_name", location_name,true);
                    sys.defineVariable("location_addr", location_addr,true);
                    putAt("website", website)
                    putAt("var_locationname", var_locationname)
                    putAt("var_locationphone", var_locationphone)
                    putAt("counter", counter)
                    putAt("xpath_locationname", xpath_locationname)
                    putAt("list_locationlink", list_locationlink)
                    putAt("var_locationlink", var_locationlink)
                    putAt("xpath_locationaddress", xpath_locationaddress)
                    putAt("var_locationaddress", var_locationaddress)
                    putAt("list_locationaddress", list_locationaddress)
                    putAt("list_locationphone", list_locationphone)
                    putAt("xpath_locationphone", xpath_locationphone)
                    putAt("list_locationname", list_locationname)
                    putAt("xpath_locationlink", xpath_locationlink) 
              ]]></script>

        </robot>

  </robotics-flow>  

  <export include-original-data="true">
        <multi-column list="${getEmAll}" split-results="true">
              <put-to-column-getter name="Name" property="Name"/>     
              <put-to-column-getter name="Address" property="Address"/>
              <put-to-column-getter name="counter" property="counter"/>              
        </multi-column>
  </export>