Discussions
searchMoreWithId failing
I have written some PHP code which performs the following actions:
Search for a collection of InventoryItems with a pagesize of 100
Iterate over the returned items, performing searches for details such as parent items, attribute lists, etc. and write results to a local database.
When I then query for the next page using searchMoreWithId, Netsuite responds with a fault message that says Invalid searchMore operation. Please make sure that you have had a successful search operation before you can perform any searchMore operation. What is strange is that this appears to occur after 2 or even 3 successful iterations.
I have verified that my SearchId and Page parameters are valid. Does Netsuite not permit you to reference an "old" query? I.e. I make query A, then I make query B, I can't searchMoreWithId on query A any more?