Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
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

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!