I'm trying to fetch list of id's from a table using java program and i'm checking if those id's are present in another two tables . If they are not present , i'm trying to delete those id's from the first table where i fetched .
I'm running into an exception on 42934th iteration of for loop to check if the account exists in other two tables and this is the exception i'm able to fetch from the logs
Cannot allocate a worktable object id because all valid object id values are already in use.
What should i do to resolve this