Error: Specified index is out of table range! Table contains only 10 columns.
at SanityChecks_validateColumnIndex (ArcTableAux.fs:68:40)
at ArcTable.fs:271:34
at Array.forEach (<anonymous>)
at ArcTable.RemoveColumns (ArcTable.fs:271:97)
at ProtocolView.fs:168:33
at HTMLUnknownElement.callCallback2 (chunk-W7WX4MSO.js?v=e8058188:3674:22)
at Object.invokeGuardedCallbackDev (chunk-W7WX4MSO.js?v=e8058188:3699:24)
at invokeGuardedCallback (chunk-W7WX4MSO.js?v=e8058188:3733:39)
at invokeGuardedCallbackAndCatchFirstError (chunk-W7WX4MSO.js?v=e8058188:3736:33)
at executeDispatch (chunk-W7WX4MSO.js?v=e8058188:7016:11)
let tablecopy = model.ProtocolState.TemplateSelected.Value.Table.Copy() //copy template
for header in tablecopy.Headers do
let containsAtIndex = model.SpreadsheetModel.ActiveTable.Headers |> Seq.tryFindIndex (fun h -> h = header) //find index in table
if containsAtIndex.IsSome then
columnsToRemove <- containsAtIndex.Value::columnsToRemove
log columnsToRemove
tablecopy.RemoveColumns (Array.ofList columnsToRemove) //remove from template 😞
Contact Details
No response
What happened?
What did you expect?
No response
Host
Applies to All
Host Details
.
Swate version
.