help > 2nd level error: dot indexing not supported for this variable type
Showing 1-15 of 15 posts
Display:
Results per page:
Jan 14, 2021  09:01 PM | lrajan
2nd level error: dot indexing not supported for this variable type
Hi all,

I'm using CONN version 2020b, and am getting the following error when I try to run second-level analyses: 

ERROR DESCRIPTION:

Dot indexing is not supported for variables of this type.
Error in conn (line 10863)
SPM.xX_multivariate.statsname=info.statsname;
Error in conn_menumanager (line 135)
feval(CONN_MM.MENU{n0}.callback2{n1}{1},CONN_MM.MENU{n0}.callback2{n1}{2:end});
CONN20.b

My second level covariates are all arrays, so I'm not sure how to resolve this error.  Would really appreciate any insight!  Thanks.
Mar 3, 2021  05:03 PM | Eric Nelson
RE: 2nd level error: dot indexing not supported for this variable type
I am experiencing this same issue and wondered if you ever found a solution?

Best, 

Eric
Mar 4, 2021  11:03 PM | Alfonso Nieto-Castanon - Boston University
RE: 2nd level error: dot indexing not supported for this variable type
Hi Eric,

Sorry about this, I am trying to replicate this error condition, could you please check in your second-level results folder, where there will be a file named "spmF_mv.nii", whether another file named "spmF_mv.json" also exists, and if so, could you please send me that file to see if that helps me figure out what the issue might be here?

Thanks
Alfonso
Originally posted by Eric Nelson:
I am experiencing this same issue and wondered if you ever found a solution?

Best, 

Eric
Apr 22, 2021  12:04 AM | indi
RE: 2nd level error: dot indexing not supported for this variable type
Hi Alfonso, 
I am having the same error: 
ERROR DESCRIPTION:

Struct contents reference from a non-struct array object.
Error in conn (line 10863)
SPM.xX_multivariate.statsname=info.statsname;
CONN20.b
SPM12 + DEM FieldMap MEEGtools vbm8
Matlab v.2017b
project: CONN20.b
storage: 209.8Gb available

Could you help me?
Thanks
Indira
Jun 1, 2021  09:06 AM | alexandre
RE: 2nd level error: dot indexing not supported for this variable type
Same error here.

Alex
Jun 25, 2021  03:06 PM | jennifer kornelsen
RE: 2nd level error: dot indexing not supported for this variable type
Originally posted by Alfonso Nieto-Castanon:
Hi Eric,

Sorry about this, I am trying to replicate this error condition, could you please check in your second-level results folder, where there will be a file named "spmF_mv.nii", whether another file named "spmF_mv.json" also exists, and if so, could you please send me that file to see if that helps me figure out what the issue might be here?

Thanks
Alfonso
Originally posted by Eric Nelson:
I am experiencing this same issue and wondered if you ever found a solution?

Best, 

Eric

Hi Alfonso,
I am also experiencing this same error. It occurs when I am in 2nd level ICA. I select AllSubjects, then a second level covariate and when I switch the Between-subjects contrast to Effect of second level covariate, this error pops up. It then hangs when I attempt to stop the process. There is a file named 'spmF_mv.json' in the results folder. I am attaching that here to assist finding the issue (unless you have already resolved this and I'm just not seeing the response in the forum). 
Thanks! Jennifer
Attachment: spmF_mv.json
Aug 18, 2021  05:08 PM | indi
RE: 2nd level error: dot indexing not supported for this variable type
Originally posted by alexandre :
Same error here.

Alex
Hi !! Does someone come up with a solution for that?
Thanks 
Oct 8, 2021  12:10 AM | Sneha Sheth - UBC
RE: 2nd level error: dot indexing not supported for this variable type
I am experiencing the same issue. Any ideas on how to fix it? 

Thanks
Sneha
Originally posted by indi:
Originally posted by alexandre :
Same error here.

Alex
Hi !! Does someone come up with a solution for that?
Thanks 
Oct 8, 2021  12:10 PM | Alfonso Nieto-Castanon - Boston University
RE: 2nd level error: dot indexing not supported for this variable type
Hi Sneha,

Could you please try one of the following possible fixes:

1) installing the attached patch (this patch is for version 20b, to install simply copy the attached file to your conn distribution folder overwriting the file with the same name there)

2) updating SPM12 to the latest release 7771 (e.g. running "spm_update update" in Matlab's command-line)

3) update CONN to the current development version (see http://www.conn-toolbox.org/resources/so...)

Please let me know if you still run into this issue
Alfonso

Originally posted by Sneha Sheth:
I am experiencing the same issue. Any ideas on how to fix it? 

Thanks
Sneha
Originally posted by indi:
Originally posted by alexandre :
Same error here.

Alex
Hi !! Does someone come up with a solution for that?
Thanks 
Attachment: conn_jsonread.m
Oct 25, 2021  05:10 PM | indi
RE: 2nd level error: dot indexing not supported for this variable type
Hi Alfonso, 
Thanks for the answer. 
I tried the patch and I am still having the issue. Should I try the other options too?
Regards,
Dec 10, 2021  07:12 PM | indi
RE: 2nd level error: dot indexing not supported for this variable type
Hi Alfonso, 
I have tried the solutions you proposed, but I am still having this issue. For 1 and 2, nothing happens, the error message still appears. And, when I downloaded the CONN development version, spm stopped working.  
I am using Matlab 2016a, for student use. 
Could you please suggest another possible solution?
Thanks
Indi


Originally posted by Alfonso Nieto-Castanon:
Hi Sneha,

Could you please try one of the following possible fixes:

1) installing the attached patch (this patch is for version 20b, to install simply copy the attached file to your conn distribution folder overwriting the file with the same name there)

2) updating SPM12 to the latest release 7771 (e.g. running "spm_update update" in Matlab's command-line)

3) update CONN to the current development version (see http://www.conn-toolbox.org/resources/so...)

Please let me know if you still run into this issue
Alfonso

Originally posted by Sneha Sheth:
I am experiencing the same issue. Any ideas on how to fix it? 

Thanks
Sneha
Originally posted by indi:
Originally posted by alexandre :
Same error here.

Alex
Hi !! Does someone come up with a solution for that?
Thanks 
Jan 6, 2022  03:01 AM | Saurabh Shaw
RE: 2nd level error: dot indexing not supported for this variable type
Hi Everyone,

I ran into the same issue when using MATLAB R2021a + CONN 20b.

The proposed solutions did not work for me, however, I was able to resolve this by reverting to CONN 19c.

Hope this helps!
Saurabh Shaw
Feb 10, 2022  09:02 PM | indi
RE: 2nd level error: dot indexing not supported for this variable type
Originally posted by Saurabh Shaw:
Hi Everyone,

I ran into the same issue when using MATLAB R2021a + CONN 20b.

The proposed solutions did not work for me, however, I was able to resolve this by reverting to CONN 19c.

Hope this helps!
Saurabh Shaw

Thank you so much! Yes, it seems to work using 19c. But I am concerned because I got a warning message about incompatibility issue as my project was created using the 20. Do you think I should care?
Also, Do you know if the original error message ("Struct contents reference from a non-struct array object") is a real problem? Because I can perform the analysis just ignoring the error hahaha but no sure how ok is that.  

Thanks for the solution, you were very kind!
Feb 13, 2022  10:02 PM | Alfonso Nieto-Castanon - Boston University
RE: 2nd level error: dot indexing not supported for this variable type
Hi
This should be fixed/working in the latest versions (currently 21a). Please let me know otherwise
Best
Alfonso
Originally posted by indi:
Originally posted by Saurabh Shaw:
Hi Everyone,

I ran into the same issue when using MATLAB R2021a + CONN 20b.

The proposed solutions did not work for me, however, I was able to resolve this by reverting to CONN 19c.

Hope this helps!
Saurabh Shaw

Thank you so much! Yes, it seems to work using 19c. But I am concerned because I got a warning message about incompatibility issue as my project was created using the 20. Do you think I should care?
Also, Do you know if the original error message ("Struct contents reference from a non-struct array object") is a real problem? Because I can perform the analysis just ignoring the error hahaha but no sure how ok is that.  

Thanks for the solution, you were very kind!
Apr 1, 2022  11:04 PM | Talia Oughourlian - University of California, Los Angeles
RE: 2nd level error: dot indexing not supported for this variable type
Hi Everyone,
How did you revert back to the older version? Were there compatibility issues after opening with the older version?

Thank you,
Talia 
Originally posted by indi:
Originally posted by Saurabh Shaw:
Hi Everyone,

I ran into the same issue when using MATLAB R2021a + CONN 20b.

The proposed solutions did not work for me, however, I was able to resolve this by reverting to CONN 19c.

Hope this helps!
Saurabh Shaw

Thank you so much! Yes, it seems to work using 19c. But I am concerned because I got a warning message about incompatibility issue as my project was created using the 20. Do you think I should care?
Also, Do you know if the original error message ("Struct contents reference from a non-struct array object") is a real problem? Because I can perform the analysis just ignoring the error hahaha but no sure how ok is that.  

Thanks for the solution, you were very kind!