JBO-25184: Exception : oracle.jbo.JboException Invalid state
Summary
Getting an exception in object function if I specify setMaxFetchSize(5000) for VOContent
I have object function which will fetch records from custom object and try to update Account object based on the account_id got from custom object.
Normally script fetching 500 records from VO but I have 5000+ records. So I tried to set setMaxFetchSize(5000) for Custom Object VO but inside loop condition OrganizationProfile VO giving an error as "oracle.jbo.JboException Invalid state"
Even I tried to set setMaxFetchSize(5000) for OrganizationProfile too but facing the same error.
If I didn't set fetch size for any of the VO then script running without error but fetching only 500 records from custom object.
Tagged:
0