mboSet = MXServer.getMXServer().getMboSet("MYTABLE", mbo.getUserInfo()) mboSet.deleteAll() mboSet.save()
BMXAA7387E - While attempting to retrieve 5001 of MYTABLE, the operation was terminated because the preset limit 5000 was exceeded for retrieving MYTABLE into a single set. Reduce the number of selected objects for the operation.The simple solution would have been to increase the mxe.db.fetchResultStopLimit Maximo system parameter as documented in this post but I was looking for a more elegant solution.
mboSet = MXServer.getMXServer().getMboSet("MYTABLE", mbo.getUserInfo()) scSet.setWhere(where) # disable logging of large fetch result set to avoid FetchResultLogLimit errors mboSet.setLogLargFetchResultDisabled(True) mboSet.deleteAll() mboSet.save()
Labels: advanced, performance, scripting