Skip to content

WHILE EXCECUTING TRANSACTION REPORT GETTING THE ERROR

0

2025-06-05T22:59:10.677Z INFO 4560 --- [ Thread-23] c.n.b.g.r.job.support.GroovyJobExecutor : Triggered script: TRANREPT - [9705d506-8021-4e69-a351-0943b2910824] - jobContext [93057980] Start date: [2025-06-01] End date: [2025-06-30] 2025-06-06_00-59-11-018 | [JOB] TRANREPT-TRANREPT - Started 2025-06-05T22:59:11.022Z ERROR 4560 --- [ Thread-23] c.n.b.g.r.job.support.GroovyJobExecutor : Unable to execute the groovy script "TRANREPT".

groovy.lang.MissingPropertyException: No such property: programResults for class: functions at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:67) at org.codehaus.groovy.vmplugin.v8.IndyGuardsFiltersAndSignatures.unwrap(IndyGuardsFiltersAndSignatures.java:163) at org.codehaus.groovy.vmplugin.v8.IndyInterface.fromCache(IndyInterface.java:321) at TRANREPT$_run_closure1.doCall(TRANREPT.groovy:50) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:568) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:343) at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:328) at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:279) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1008) at groovy.lang.Closure.call(Closure.java:433) at groovy.lang.Closure.call(Closure.java:422) at org.codehaus.groovy.runtime.DefaultGroovyMethods.with(DefaultGroovyMethods.java:369) at org.codehaus.groovy.runtime.DefaultGroovyMethods.with(DefaultGroovyMethods.java:314) at org.codehaus.groovy.runtime.dgm$914.doMethodInvoke(Unknown Source) at org.codehaus.groovy.vmplugin.v8.IndyInterface.fromCache(IndyInterface.java:321) at TRANREPT.run(TRANREPT.groovy:24) at com.netfective.bluage.gapwalk.rt.utils.GroovyScriptRunnerPlus.evaluate(Unknown Source) at com.netfective.bluage.gapwalk.rt.job.support.GroovyJobExecutor.run(Unknown Source) at java.base/java.lang.Thread.run(Thread.java:840)

2025-06-05T22:59:11.023Z INFO 4560 --- [ Thread-23] c.n.b.g.r.job.support.DefaultJobContext : Job [93057980] - starting final operation 2025-06-05T22:59:11.023Z INFO 4560 --- [ Thread-23] c.n.b.g.r.job.support.DefaultJobContext : End of job [93057980] 2025-06-05T22:59:11.023Z INFO 4560 --- [ Thread-23] c.n.b.g.rt.script.ScriptControlTower : Removed jobExecutor [9705d506-8021-4e69-a351-0943b2910824] from Script Control Tower. 2025-06-05T22:59:11.024Z INFO 4560 --- [ Thread-23] c.n.b.g.rt.script.ScriptControlTower : Remaining jobExecutors:0

asked a year ago107 views

1 Answer
0

The error you're encountering is due to a missing property called "programResults" in your TRANREPT Groovy script. This is a common issue when working with Blu Age modernized applications.

To fix this problem, you need to add a definition for the programResults variable in your TRANREPT Groovy script. Add the following line of code above where the error is occurring (around line 50 of the TRANREPT.groovy file):

Map programResults = [:]

This will initialize an empty Map called programResults, which should resolve the MissingPropertyException you're seeing. After making this change, try running the transaction report generation again, and it should execute without the error.

The error occurs because the script is trying to access a variable that hasn't been properly initialized or defined in the current scope. By explicitly defining the programResults variable as an empty map, you provide the necessary object that the script is looking for.
Sources
AWS Blu Age L3 Workshop: Unable to execute the groovy script "TRANREPT" | AWS re:Post

answered a year 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.