Getting "Invalid State" error in Groovy
Summary
Trying to set fetch size for View ObjectContent
I have a groovy script which will fetch records from Custom Object and process with Account object. Normally groovy fetching 500 rows from the custom object. I try to increase the fetching size by setMaxFetchSize as 5000. Once I added as part of the script, groovy is throwing an exception "oracle.jbo.JboException Invalid state"
If I removed the setMaxFetchSize code then it's processing without any error.
Anyone have an idea why this error ?
Tagged:
0