Uncaught TypeError: Cannot read property 'subFieldsMap' of undefined

  • 1
  • Problem
  • Updated 3 years ago
  • Not a Problem
  • (Edited)
Only getting this for a Partner Community User. 

This error is only showing up in the console, and it's preventing saving of one but not all models. 

I'm also having trouble loading a particular model, it just won't load for the partner user. The field editor has a custom template edit popup that I think might be causing the problem, looking at the full error message below. This template field shows child records, and the custom edit popup lets you add, edit, and remove multiple child records. 

Here's the full error messag and a screenshot of the first part of it. Something about merge and COMBO in there makes me think it might be related to that custom template edit popup
getMergeResult@skuid__SkuidJS:26merge@skuid__SkuidJS:25W.mergeRow@skuid__SkuidJS:29l.COMBO.read@skuid__SkuidJS:31l.COMBO.edit@skuid__SkuidJS:31e.render@skuid__SkuidJS:30v@VM3670:2(anonymous function)@skuid__SkuidJS:26conditionallyDo@skuid__SkuidJS:26conditionallyRender@skuid__SkuidJS:26(anonymous function)@VM3670:2o.extend.each@skuid__JQuery:2o.fn.o.each@skuid__JQuery:2E@VM3670:2t@VM3670:2(anonymous function)@skuid__SkuidJS:26conditionallyDo@skuid__SkuidJS:26conditionallyRender@skuid__SkuidJS:26s@VM3670:2(anonymous function)@VM3670:2o.extend.each@skuid__JQuery:2o.fn.o.each@skuid__JQuery:2l@VM3670:2q@VM3670:2(anonymous function)@skuid__SkuidJS:26conditionallyDo@skuid__SkuidJS:26conditionallyRender@skuid__SkuidJS:26(anonymous function)@VM3670:2o.extend.each@skuid__JQuery:2o.fn.o.each@skuid__JQuery:2o@VM3670:2(anonymous function)@skuid__SkuidJS:26conditionallyDo@skuid__SkuidJS:26conditionallyRender@skuid__SkuidJS:26(anonymous function)@VM3670:2o.extend.each@skuid__JQuery:2o.fn.o.each@skuid__JQuery:2E@VM3670:2t@VM3670:2(anonymous function)@skuid__SkuidJS:26conditionallyDo@skuid__SkuidJS:26conditionallyRender@skuid__SkuidJS:26s@VM3670:2(anonymous function)@VM3670:2o.extend.each@skuid__JQuery:2o.fn.o.each@skuid__JQuery:2l@VM3670:2q@VM3670:2(anonymous function)@skuid__SkuidJS:26conditionallyDo@skuid__SkuidJS:26conditionallyRender@skuid__SkuidJS:26(anonymous function)@VM3670:2o.extend.each@skuid__JQuery:2o.fn.o.each@skuid__JQuery:2o@VM3670:2(anonymous function)@skuid__SkuidJS:26conditionallyDo@skuid__SkuidJS:26conditionallyRender@skuid__SkuidJS:26n@VM3670:2(anonymous function)@VM3670:2o.extend.each@skuid__JQuery:2o.fn.o.each@skuid__JQuery:2t.render@VM3670:2d.render@skuid__SkuidJS:30s.newItem@skuid__SkuidJS:30(anonymous function)@skuid__SkuidJS:30o.extend.each@skuid__JQuery:2s.render@skuid__SkuidJS:30(anonymous function)@skuid__SkuidJS:28o.extend.each@skuid__JQuery:2(anonymous function)@skuid__SkuidJS:28o.extend.each@skuid__JQuery:2L.aa.when.all.then.d@skuid__SkuidJS:28(anonymous function)@skuid__JQuery:3j@skuid__JQuery:3k.fireWith@skuid__JQuery:3e.(anonymous function)@skuid__JQuery:3(anonymous function)@skuid__SkuidJS:22(anonymous function)@skuid__JQuery:3j@skuid__JQuery:3k.fireWith@skuid__JQuery:3e.(anonymous function)@skuid__JQuery:3j.save.then.aa.each.isBeingSaved@skuid__SkuidJS:28(anonymous function)@skuid__JQuery:3j@skuid__JQuery:3k.fireWith@skuid__JQuery:3e.(anonymous function)@skuid__JQuery:3a.remote.save.escape@skuid__SkuidJS:27e.cb@VFRemote.js:133VFExt3.direct.RemotingProvider.VFExt3.extend.doCallback@VFRemote.js:99VFExt3.direct.RemotingProvider.VFExt3.extend.onData@VFRemote.js:94VFExt3.extend.handleResponse@VFRemote.js:75a@VFRemote.js:39(anonymous function)
Photo of Jack Sanford

Jack Sanford, Champion

  • 8,322 Points 5k badge 2x thumb

Posted 3 years ago

  • 1
Photo of Jack Sanford

Jack Sanford, Champion

  • 8,322 Points 5k badge 2x thumb
Oops, in editing my post to say that the template custom edit popup referred to child records, I realized the partner user profile didn't have access to the custom object of my child records. So, NOT A PROBLEM. 
Photo of Rob Hatch

Rob Hatch, Official Rep

  • 44,006 Points 20k badge 2x thumb
HA!  Thanks for letting us know the solution...  WE are always supcious of data model in these cases,  but it seems harsh for us to point fingers that way...