# Specify 7 crashes when attempting to add tree record from CO / CE query dialogs

**URL:** <https://speciforum.org/t/specify-7-crashes-when-attempting-to-add-tree-record-from-co-ce-query-dialogs/1856>\
**Category:** Get Help\
**Created:** [July 9, 2024, 6:14pm UTC](https://speciforum.org/t/specify-7-crashes-when-attempting-to-add-tree-record-from-co-ce-query-dialogs/1856 "2024-07-09T18:14:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![nfshoobs](https://yyz1.discourse-cdn.com/flex029/user_avatar/speciforum.org/nfshoobs/32/3979_2.png) [@nfshoobs](https://speciforum.org/u/nfshoobs)\
**Post date:** [July 9, 2024, 6:14pm UTC](https://speciforum.org/t/specify-7-crashes-when-attempting-to-add-tree-record-from-co-ce-query-dialogs/1856/1 "2024-07-09T18:14:13Z")

</div>

Encountered this error when trying to fix some records in our geography tree. When working with the tree, I was trying to move a node in the “State” rank to be a child of a node in the same rank.

I wanted to make “South Wales” (which is not a real geographic place) a child of “Wales”, or alternatively synonymize it with “Pembrokeshire” (since the only record we have in our database from “South Wales” is from the county of Pembrokeshire.)

The tree wouldn’t allow me to do this (“Can’t move this node here”) I assume because the node has a defined rank and cannot be moved into a rank that differs from the rank it is defined as currently.

If you open the node and attempt to change the rank, the dialogue window query box for Rank does not populate with any existing ranks. And if you attempt to add a rank manually from the menu, it causes a crash.

 ![Screenshot 2024-07-09 at 1.38.30 PM](https://canada1.discourse-cdn.com/flex029/uploads/specifysoftware/original/2X/7/7b6db76d95256c14fa5ffac6c44f8e6dfb514543.jpeg)

[Specify 7 Crash Report - 2024-07-09T17\_38\_02.764Z.txt](https://speciforum.org/uploads/short-url/r6F5eKYd16OZG4jlpZsNcfNwFKP.txt) (822.5 KB)

---

<div class="post-metadata">

**Author:** ![bronwyn](https://yyz1.discourse-cdn.com/flex029/user_avatar/speciforum.org/bronwyn/32/5742_2.png) [@bronwyn](https://speciforum.org/u/bronwyn)\
**Post date:** [July 9, 2024, 7:50pm UTC](https://speciforum.org/t/specify-7-crashes-when-attempting-to-add-tree-record-from-co-ce-query-dialogs/1856/2 "2024-07-09T19:50:51Z")

</div>

Hi @nfshoobs,

To move a node to a lower rank:

1. Change the ‘Parent of Geo’ field to the newly desired parent
2. The appropriate rank will become available in the ‘Geographic Rank’ field
3. Save your changes

**However, you will first need to stop using the auto generated form.**

This should be done by unchecking the option in the Form Definition section of the FormMeta dialog:

 ![Auto Generated Form turned off](https://canada1.discourse-cdn.com/flex029/uploads/specifysoftware/original/2X/3/30cbe4b2fd514c0cc55c15fa87480cf72e008c30.png)

The auto generated forms use query combo boxes for the ‘Geographic Rank’ and ‘Parent of Geo’ fields. To function properly, the ‘Geographic Rank’ field must be a pick list.

Let me know if you have any further questions!

– Bronwyn

---

<div class="post-metadata">

**Author:** ![nfshoobs](https://yyz1.discourse-cdn.com/flex029/user_avatar/speciforum.org/nfshoobs/32/3979_2.png) [@nfshoobs](https://speciforum.org/u/nfshoobs)\
**Post date:** [July 10, 2024, 1:17am UTC](https://speciforum.org/t/specify-7-crashes-when-attempting-to-add-tree-record-from-co-ce-query-dialogs/1856/4 "2024-07-10T01:17:53Z")

</div>

Neither of those options solve the issue. Tree crashes with a cascade of what appears to be that same error message. When “use auto generated form” is unchecked, I am unable to change the parent of geo of any record in the geography tree, and I am also unable to enter a value other than the existing value to the Rank picklist.  
I fixed my particular issue just by deleting the node and updating the locality record itself.

---

<div class="post-metadata">

**Author:** ![bronwyn](https://yyz1.discourse-cdn.com/flex029/user_avatar/speciforum.org/bronwyn/32/5742_2.png) [@bronwyn](https://speciforum.org/u/bronwyn)\
**Post date:** [July 10, 2024, 4:45pm UTC](https://speciforum.org/t/specify-7-crashes-when-attempting-to-add-tree-record-from-co-ce-query-dialogs/1856/5 "2024-07-10T16:45:59Z")

</div>

Nate –

Ah, I see the source of the problem now.

While the auto generated form poses an issue, changing the rank of a node that already has dependent child nodes is paramount. Child nodes that already exist at the rank you’re trying to move the parent node to will result in the bad tree definition errors you’ve reported.

I have written a feature request [(#5089)](https://github.com/specify/specify7/issues/5089) to improve the handling for this in the UI so the problem is clear to the user when attempting this.

I hope this provides some clarity on the behavior!

– Bronwyn

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex029/uploads/specifysoftware/original/2X/1/18a843c97bc32b40e8ad0e035755bc88ffaacaf7.svg) [@system](https://speciforum.org/u/system)\
**Post date:** [July 17, 2025, 4:06pm UTC](https://speciforum.org/t/specify-7-crashes-when-attempting-to-add-tree-record-from-co-ce-query-dialogs/1856/6 "2025-07-17T16:06:21Z")

</div>

Closed on July 17, 2025, 4:06pm UTC

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