For some reason, a script that was working stopped (both in JMP 16 and 17) and now I am getting the following error
subscripted key not in map in access or evaluation of 'aaa (bbb) [ccc]' , "aaa (bbb) [ccc]"
I have a small script that renames the columns of a secondary table to a primary table. First, an associative array is created (not shown).
Then I iterate through the columns.
new_colNames = dt_secondary << Get Column Names( "String" );
Print( "Iterating through new column names" );
For( i = 1, i <= N Items( new_colNames ), i++,
new_colName = new_colNames[i];
Print( "Changing name for column:", new_colName );
user_colname = dict_colNames << Get Value( new_colName );
Print( "To user column name:", user_colname );
Column( dt_transposed, new_colName ) << Set Name( user_colname );
);
Not sure what can be the reason. When using the debugger, I can see that key exists in the dictionary.
This error occurs with multiple columns that, to me, look like identical strings.