Skip to content

Cannot read properties of undefined (reading 'canAutoIncrement') when opening any form #7144

@grantfitzsimmons

Description

@grantfitzsimmons

Introduced in #6710

Describe the bug
When the Catalog Number format is set to CatalogNumberString (one of our long-standing defaults) or nothing at all (empty CatalogNumFormatName in collection), Specify crashes immediately when opening a new data entry game:

Cannot read properties of undefined (reading 'canAutoIncrement')

If the Catalog Number is set to a non-external catalog number format or a custom one configured in UIFieldFormatters, it does not crash!

Does not happen in v7.11.0.2

To Reproduce
Steps to reproduce the behavior:

  1. Use a database with CatalogNumberString (or an empty value) set as the CatalogNumFormatName in the collection or collectionobjecttype table.
  2. See the crash immediately.

Expected behavior
Specify should handle empty catalog numbers or CatalogNumberString as a valid format (not enforcing validation).

Image

Crash Report
Specify 7 Crash Report - 2025-07-18T19_37_24.948Z.txt

Metadata

Metadata

Assignees

Labels

regressionThis is behavior that once worked that has broken. Must be resolved before the next release.

Type

No fields configured for Bug.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions