Error while generating transaction report

0

Error Details: 2024-03-28 15:40:07.660 INFO 2844 --- [ taskExecutor-5] c.n.b.g.rt.script.BatchWebController : --> executing script TRANREPT 2024-03-28 15:40:07.660 INFO 2844 --- [ taskExecutor-5] c.n.b.g.rt.script.BatchWebController : Bound jobContext 958352 - GDGEventsQueueHandler :1240749586 2024-03-28 15:40:07.667 INFO 2844 --- [ taskExecutor-5] c.n.b.g.rt.script.ScriptControlTower : Added jobExecutor [821eba3f-2687-48c8-a242-8fe6b24b589e] to Script Control Tower. 2024-03-28 15:40:07.667 INFO 2844 --- [ taskExecutor-5] c.n.b.g.rt.job.support.JobExecutor : 821eba3f-2687-48c8-a242-8fe6b24b589e - worker :Thread-18 [475313289] 2024-03-28 15:40:07.668 INFO 2844 --- [ taskExecutor-5] c.n.b.g.rt.script.ScriptLauncherJobImpl : Asynchronous script execution. Triggered script TRANREPT [821eba3f-2687-48c8-a242-8fe6b24b589e] @ 03-28-2024 15:40:07 2024-03-28 15:40:07.682 INFO 2844 --- [ taskExecutor-5] c.n.b.g.rt.db.stats.DatabaseStatistics : DATABASE STATISTIC DISABLED 2024-03-28 15:40:07.683 INFO 2844 --- [ Thread-18] c.n.b.g.rt.job.support.JobExecutor : Triggered script: TRANREPT - [821eba3f-2687-48c8-a242-8fe6b24b589e] - jobContext [958352] 2024-03-28 15:40:07.683 INFO 2844 --- [ taskExecutor-5] c.n.bluage.gapwalk.rt.jics.internal.a : Running Task Registry : removed [com.netfective.bluage.gapwalk.rt.jics.internal.TaskContext@5c4a1772 / 5] - [CR00] 2024-03-28 15:40:08.419 ERROR 2844 --- [ Thread-18] c.n.b.g.rt.job.support.JobExecutor : Unable to execute the groovy script "TRANREPT".

org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: D:\PhotonUser\Workshop\workspace.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\carddemo-service\WEB-INF\classes\scripts\TRANREPT.groovy: 68: The current scope already contains a variable of the name jobName @ line 68, column 8. def jobName = 'TRANREPT' ^

1 error

at org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorCollector.java:311)
at org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(CompilationUnit.java:980)
at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:642)
at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:591)
Sakthi
asked a month ago80 views
2 Answers
3
Accepted Answer
Sakthi
answered a month ago
profile picture
EXPERT
reviewed a month ago
2

The error message means that there is already a variable named jobName in the current scope. To resolve this error, you can either rename the existing jobName variable or choose a different name for the new variable you're trying to declare at line 68. Here's an example of how you might rename the variable:

def newJobName = 'TRANREPT'
profile picture
EXPERT
answered a month ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions