I have been looking into an issue when inserting records into a table through an Add-In developed using the Pro SDK. The error encountered is an index out of range error when creating the rowbuffer object prior to inserting the records.
I've discovered that this is caused by the AddFields GP tool failing to add all of the fields that are passed into it. The AddFields GP tool seems to cap out at adding about 85 fields to the table. Confusingly, this remains the same if I pass in one large parameter object containing all the fields, or if I break the object down into chunks e.g 50 fields per iteration. This doesn't make any sense, so I was wondering if there was a known limitation with how the AddFields GP tool adds fields to the table?
The workaround for running the AddField tool for each field isn't really feasible since it takes a long time to add 80+ fields.
Below is the function used to call the GP tool. This function works just fine for any other scenario.
