Disposal number autonumbering error

Hi,
Has anyone created autonumbering for the disposal number? I received an error, see below: (Note: I have posted the issue in Github, but there is no response; therefore, I am reposting here just in case anyone experiences a similar problem).

Environment:

OS: Mac
Browser: Safari
Specify 7 Version: 7.9.6.2

Error when creating Disposal Number with auto-increment “model Disposal has no hierarchy field”

To Reproduce

  1. Add the following in UIFormatters
<format system="false" name="DisposalNumber" class="edu.ku.brc.specify.datamodel.Disposal" fieldname="disposalNumber">
 <autonumber>edu.ku.brc.af.core.db.AutoNumberGeneric</autonumber>
    <field type="year" size="4" value="YEAR" byyear="true"/>
    <field type="separator" size="1" value="-"/>
    <field type="numeric" size="3" inc="true"/>
  </format>
  1. In schema config, select Disposal table, and set the formatter of disposalNumber as follows:

  1. When creating a disposal, the system raises Exception Value: queryset model Disposal has no hierarchy field.

Expected behavior
A disposal can be created with the autonumbering specified, e.g. 2025-001, 2025-002.

Hi @kitchenprinzessin

We appreciate you contributing to our forum!

We received report of this via your institution’s requested channel, and have submitted an issue to GitHub upon testing the issue internally. This will link with and replace the existing issue going forward. The development team will review the bug and determine a resolution.

Please feel free to review and leave any further comments on the new issue, #6293 on GitHub!

1 Like

Thanks @bronwynscc, for closing the duplicate issue and reviewing the bug :slight_smile:

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.