You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If one defines the page_size of a result set smaller than 5 of gets the following error message:
NoMethodError: undefined method `results_in_batches' for false:FalseClass
Example:
search = NetSuite::Records::Location.search({
preferences: {
page_size: 14, # <---------- you get the error if you put a number <5 here
}
})
search.results_in_batches do |batch|
@ids = batch.map(&:internal_id)
ap @ids ;
end
Sometimes I get the same error also on page_sizes that are larger than the result set would be.
For example if I set the page_size to 50 but the result set only contains 20 entries. But the error does not show up every time. Only for number smaller 5 it fails every time.
The text was updated successfully, but these errors were encountered:
If one defines the page_size of a result set smaller than 5 of gets the following error message:
NoMethodError: undefined method `results_in_batches' for false:FalseClass
Example:
Sometimes I get the same error also on page_sizes that are larger than the result set would be.
For example if I set the page_size to 50 but the result set only contains 20 entries. But the error does not show up every time. Only for number smaller 5 it fails every time.
The text was updated successfully, but these errors were encountered: