I need to re-open this topic as another potential issue came up, specifically "Value does not fall within the expected range".
The web-compatible form was published to SP 2010 (Server Ent) and working properly, adding/editing/deleting repeating table rows and saving the form and the repeating table to a SP list with Submit To Sharepoint List and Refresh Sharepoint List Items (Report mode only).
A wrinkle: A problem with deleting/updating after delete ("Value does not fall within the expected range" )
While when the form is opened in Infopath filler (the client app) from the SP Form library there were no problem, however
when the form is opened in the browser (IE) several issues started appearing:
1. On Insert row, where the table was originally empty (no rows, deleted by qRules Delete), the new rows were not shown after being added to the end.
That was remedied by explicitly stating for the add/remove controls' properties, to "ALWAYS send data to server, when button is clicked". it was either that or adding a rule to switch the view to the same/current one.
2. On a existing form, which was already edited either with IP filler or in browser and saved properly: If the same form is opened again and a row is deleted, the browser shows the error "Value does not fall within the expected range".
The actual data, as corrected/edited before the submission has been successfully saved to the SP list via Submit To Sharepoint List. It seems as the Refresh Sharepoint List Items is returning the error and does not allow saving of the form itself.
The saving operation is tiered and first tries to save to the SP List and if no errors are found, then saves the main form. Once the glitch appears, the form could no longer be saved properly via browser.
However, if the same form is opened in IP Filler (yes, it shows now the discrepancy, a missing item from SP list and a mismatch for the other rows which were not deleted) it does complain about the discrepancy, but if the rows from the form, which correspond to already deleted from the list are deleted manually, then the form could be saved. Loading again in either browser or IP Filler client shows no more mismatch. If after the glitch, the form is closed without able to save and opened again, the mismatch errors are shown, but the mentioned above correction with deleting the "missing from SP list rows" no longer helps to save the form or save the latest update to SP list.
I feel confused as I have no idea which "value" the error is addressing. Visually all IDs and field values are within expected ranges/types.
Any insight would be helpful.