Custom Actions Script Not working in Control Tower

Hi @narendra_purTG, please post the error log to see the error details.

Thank you

'[urn:uuid:294822A26843F94A44153747068174913] robotics-flow executePlugin exception: [nodeId=http://127.0.0.1:15410] com.workfusion.studio.rpa.recorder.playback.PlaybackException: Error executing TemplateAction[templateName=CustomScriptAction.ftl,id=4,name=Optional[CustomScriptAction],parent=-1,nextSibling=5,arguments=ActionArguments[delay=[0],xsi:type=[recorder:CustomScriptAction, recorder:CustomScriptAction],name=[Saturday],active=[true],actionDetails=[(Saturday)],script=[@CustomScriptAction(
input = [‘today_date_dt’],
output = ‘before_today_dt’
)

def customScript() {
def day_number = today_date_dt.getDayOfWeek().getValue()
def week_start = today_date_dt.minus(java.time.Duration.ofDays(day_number))
before_today_dt = week_start.minus(java.time.Duration.ofDays(1))

}

]]]’

@ashapkina. Please let me know where i can find control tower logs

There is an event log in the process.

You can export it to Excel and upload here

@ashapkina,

events_step_.xlsx (21.2 KB)

@ashapkina,

This is BOT Task Error message in code window.

Description Resource Path Location Type
Duplicate method customScript() in type Ga6c664e07fc04b94bb0170aaf2bf9150 BP1_task.xml /BP1//configs line 170 Java Problem

@narendra_purTG there is a bug in the current version with playing custom actions in Control Tower, we reproduced the same error. We created a ticket to fix it.

@narendra_purTG we are planning to release a patch build tomorrow.

Thank you! This is extremely up and down issue. does not occur in every scenario, but then will start to occur.

@ashapkina is this the same issue you are seeing?

Caused by: com.google.common.util.concurrent.UncheckedExecutionException: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
General error during canonicalization: No signature of method: static org.codehaus.groovy.transform.TupleConstructorASTTransformation.createConstructor() is applicable for argument types: (org.codehaus.groovy.ast.ClassNode, Boolean, Boolean, Boolean, Boolean…) values: [CustomScript_customScript, true, true, false, false, false, …]

@StephenOTT Hi Steve, yes, it is the same issue. It will be fixed in the patch.

@narendra_purTG @StephenOTT
sorry, the release of the patch is delayed. It will be released on Monday.

@ashapkina is there a new release for this?

@StephenOTT not yet. We are testing the new build, planning to release it tomorrow.

I am again able to run bot tasks ok in Studio (as bot tasks) however in Control Tower it seems to fail. Where should I start debugging?

==

Step name ‘XXXX_bot_task_v09’ has failed. Reason: ‘org.webharvest.exception.ScriptException: Config line 127: single-column block groovy.lang.MissingMethodException: No signature of method: org.webharvest.runtime.variables.NodeVariable.toCanonicalRepresentation() is applicable for argument types: () values: []’

@peke_robot there is a bug in the current build. We are planning to make a patch release today.

@narendra_purTG @StephenOTT @peke_robot the patch fix has been released. You can download the installer.

2 Likes

Thank you. Problem appears to be fixed!

1 Like

Thanks for this. Problem seems to be resolved!!

1 Like

A post was merged into an existing topic: CSVReader is giving error in Control Tower