You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Getting "Invalid State" error in Groovy

Received Response
13
Views
6
Comments
edited Oct 28, 2020 10:41AM in Sales 6 comments

Summary

Trying to set fetch size for View Object

Content

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:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!