attempt to set index 12/12 in SET_STRING_ELT

General help and assistance with jamovi. Bug reports can be made at our issues page: https://github.com/jamovi/jamovi/issues . (If you're unsure feel free to discuss it here)
Post Reply
ThomasRethink
Posts: 2
Joined: Sat Dec 12, 2020 10:32 am

attempt to set index 12/12 in SET_STRING_ELT

Post by ThomasRethink »

I quite often receive this error message, when simply trying to load descriptives for a categorical variable. Sometimes it's "attempt to set index 12/12 in SET_STRING_ELT" sometimes "attempt to set index 16/16 in SET_STRING_ELT" and so on.

The error seems to affect particular variables within the dataset(s), even though there's nothing obviously different about these variables compared to any of the others.

If I turn developed mode on the full message is:
Debug

Error in private$.readDatasetHeader(self$options$varsRequired): attempt to set index 1/1 in SET_STRING_ELT

self$readDataset(TRUE)
private$.readDatasetHeader(self$options$varsRequired)
Thanks in advance for any help.
User avatar
jonathon
Posts: 2613
Joined: Fri Jan 27, 2017 10:04 am

Re: attempt to set index 12/12 in SET_STRING_ELT

Post by jonathon »

hi,

could you share the data set?

with thanks

jonathon
statsboone
Posts: 1
Joined: Tue Jul 11, 2023 8:02 pm

Re: attempt to set index 12/12 in SET_STRING_ELT

Post by statsboone »

I have found that changing the name of the variable can resolve this issue.
Post Reply