Error launching WebAppBuilder based application...

286
1
09-16-2019 10:46 AM
District_of_Lake_CountryGIS_Ad
New Contributor III

I am getting a JS error in the console when launching my WebAppBuilder based application. Doesn't seem to affect anything but makes me wonder if there is an issue with data in my webmap:

init.js:114 TypeError: Cannot read property 'toLowerCase' of undefined
at Object.<anonymous> (LayerInfoForDefault.js?wab_dv=2.9:619)

// Todo... improve the getPopupInfo interface.
_getDefaultPopupInfo: function(object) {
var defaultPopupInfo = this._getCustomPopupInfo(object);
if(defaultPopupInfo) {
defaultPopupInfo.fieldInfos = array.filter(defaultPopupInfo.fieldInfos, lang.hitch(this, function(fieldInfo) {
var result;
if(fieldInfo.fieldName.toLowerCase() !== object.objectIdField.toLowerCase() &&
fieldInfo.fieldName.toLowerCase() !== "globalid" &&
fieldInfo.fieldName.toLowerCase() !== "shape") {
result = true;
} else {
result = false;
}
return result;
}));
}
return defaultPopupInfo;
},

Has anyone seen this issue before?

Thanks in advance.

M

0 Kudos
1 Reply
RobertScheitlin__GISP
MVP Esteemed Contributor

Yes it definitely has to do with an issue in your web maps data. It is hard to say what the issue is though. But it is has to do with a field name or ObjectId field not being returned.

0 Kudos