---
title: "tree_view not created if categories on plot level are active"
url: "https://openforis.support/questions/1521/tree_view-not-created-if-categories-on-plot-level-are-active"
tags: ["calc"]
status: "answered"
score: 0
answer_count: 3
asked: "2017-12-12T15:12:59"
last_activity: "2017-12-12T17:11:34"
source: "Open Foris Support - Q&A Forum"
license: "Copyright Open Foris, 2026. Some rights reserved under creative commons license."
---

# tree_view not created if categories on plot level are active

Asked by Fehrmann on 2017-12-12

Hi Mino et al.,
I have a problem with categories on plot level. I like to build slope classes for the variable plot_slope in my plot table. As soon as I activate this category in the calculation, Calc will not produce the tree_view table anymore (only plot_view), which leads to errors. This problem seems to be general, I tested with other dummy categories on Plot level, checking the results in PGAdmin. With deactivated category on plot level everything is fine (tree_view is created). Seems that there is a problem if categories are used on multiple levels (tree and plot).

Cheers,
Lutz


## Answer (score 1, by Mino Togna on 2017-12-12)

Link: https://openforis.support/questions/1521/tree_view-not-created-if-categories-on-plot-level-are-active/1524

Hi Lutz,

the categorical variables associated to the plot entity must be added before any variables associated to the trees.
You can simply re-order the steps by dragging the plot categories at the beginning of the processing chain.

Please let me know if this fixes this issue.

Thank you,
Mino


## Answer (score 0, by Fehrmann on 2017-12-12)

Link: https://openforis.support/questions/1521/tree_view-not-created-if-categories-on-plot-level-are-active/1526

Dear Mino,
thank you so much, it works! Changing the order solved the problem.
Lutz


## Answer (score 0, by Mino Togna on 2017-12-12)

Link: https://openforis.support/questions/1521/tree_view-not-created-if-categories-on-plot-level-are-active/1527

Dear Lutz,
Happy to hear!

let me know if you see any other issues.

Mino
