My script opens a connection to a Microsoft Access database using an ADODB.Connection. I then open my recordset and step through each record updating some of the values for each record. The Database has 147 records and my script errors on record 42 each time. The MoveNext works fine for the first 41 times. This is the error: Exception calling "MoveNext" with "0" argument(s): "Invalid argument."
I am checking recordset BOF and EOF before and after each MoveNext. Every time both are false. I am using PowerShell v2.0 and ADO v6.1. The Access database is linked to a SharePoint list. MS Access is Office 2013 version.
What can trigger this type of error with a MoveNext besides a EOF/BOF?