octobercms/october · error · Error
Inspector object list keyProperty can only refer to a…
Error message
Inspector object list keyProperty can only refer to a string or text property. Property: ${property}, keyProperty: ${keyProperty}, unsupported type: ${type} What it means
Configuration error raised in the object list's mounted hook: a keyProperty is configured and resolves, but its itemProperties type is neither 'string' nor 'text'. Object list keys must be scalar strings to uniquely identify items, so numeric/checkbox/set/etc. property types are rejected as key properties.
Solutions
- Choose a keyProperty that refers to a string or text property in itemProperties
- Change the offending itemProperty's type to string/text if it is genuinely the unique key
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at modules/backend/vuecomponents/inspector/assets/js/control-objectlist.js:282 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of octobercms/october@b608633a7e (2026-08-21).
Data as JSON: /api/errors/0f90a637f7f23df5.
Report an issue: GitHub.
Appendix: source
Thrown at modules/backend/vuecomponents/inspector/assets/js/control-objectlist.js:282
}
},
created: function created() {
},
mounted: function mounted() {
if (!this.control.titleProperty) {
var error = 'Inspector object list titleProperty cannot be empty. Property: ' + this.control.property;
throw new Error(error);
}
if (this.control.keyProperty) {
var keyProperty = this.keyProperty;
if (keyProperty.type && keyProperty.type != 'string' && keyProperty.type != 'text') {
var error = 'Inspector object list keyProperty can only refer to a string or text property. Property: '
+ this.control.property +
', keyProperty: ' + this.control.keyProperty +
', unsupported type: ' + keyProperty.type;
throw new Error(error);
}
}
if (Array.isArray(this.control.depends)) {
this.control.depends.forEach(dependsOn => {
this.unwatches.push(
this.$watch('obj.' + dependsOn, (newVal) => {
this.editedObject = [];
this.setManagedValue([]);
})
);
})
}
this.$emit('hidefullwidthlabel');
this.$emit('hidebottomborder');
this.lang.error = this.$el.getAttribute('data-lang-error');View on GitHub (pinned to b608633a7e)