내용으로 건너뛰기

whiile runnning monthly transaction report gettig below error

0

While runnig monthly transaction report getting below failure

2025-06-05T22:38:51.561Z INFO 4560 --- [ Thread-18] c.n.b.g.r.job.support.GroovyJobExecutor : Triggered script: TRANREPT - [2d5d2ca7-5c1b-456c-8cec-ce612689045e] - jobContext [1554759089] Start date: [2025-06-01] End date: [2025-06-30] 2025-06-05T22:38:53.125Z ERROR 4560 --- [ Thread-18] c.n.b.g.r.job.support.GroovyJobExecutor : Unable to execute the groovy script "TRANREPT".

groovy.lang.MissingPropertyException: No such property: procName 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:27) 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:38:53.130Z INFO 4560 --- [ Thread-18] c.n.b.g.r.job.support.DefaultJobContext : Job [1554759089] - starting final operation 2025-06-05T22:38:53.130Z INFO 4560 --- [ Thread-18] c.n.b.g.r.job.support.DefaultJobContext : End of job [1554759089] 2025-06-05T22:38:53.130Z INFO 4560 --- [ Thread-18] c.n.b.g.rt.script.ScriptControlTower : Removed jobExecutor [2d5d2ca7-5c1b-456c-8cec-ce612689045e] from Script Control Tower. 2025-06-05T22:38:53.130Z INFO 4560 --- [ Thread-18] c.n.b.g.rt.script.ScriptControlTower : Remaining jobExecutors:0

질문됨 5달 전25회 조회
1개 답변
0

The error you're encountering is a MissingPropertyException in the TRANREPT Groovy script. Specifically, the error message indicates that there is "No such property: procName for class: functions" at line 27 of your TRANREPT.groovy file.

This is a common issue when running the transaction report in AWS Blu Age modernized applications. The error occurs because the script is trying to access a variable named "procName" that hasn't been defined in the functions class.

To resolve this issue, you need to add a definition for the procName variable in your TRANREPT Groovy script. You can do this by adding the following line of code above the location where the error is occurring (around line 27 of the TRANREPT.groovy file):

def procName = 'TRANREPT'

This will initialize the procName variable with the value 'TRANREPT', which should resolve the MissingPropertyException you're seeing.

If you continue to experience issues after making this change, you might also need to check for other missing properties in the script. Similar errors have been reported with the "programResults" property, which can be fixed by adding:

Map programResults = [:]

Make sure you're using the correct version of the TRANREPT script that matches your Blu Age velocity version. You can refer to the AWS Blu Age workshop documentation for the correct script version.
Sources
AWS Blu Age L3 Workshop: Unable to execute the groovy script "TRANREPT" | AWS re:Post
Error while generating transaction report | AWS re:Post

답변함 5달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.