---
title: "Problems with persist-results.R"
url: "https://openforis.support/questions/4431/problems-with-persist-resultsr"
tags: ["arena"]
status: "answered"
score: 0
answer_count: 3
asked: "2026-03-05T13:14:19"
last_activity: "2026-03-09T07:50:21"
source: "Open Foris Support - Q&A Forum"
license: "Copyright Open Foris, 2026. Some rights reserved under creative commons license."
---

# Problems with persist-results.R

Asked by Juak on 2026-03-05

After running all the chain with absolutely no errors and when I go to data > explorer tab in the app I find that the variables I created on the chain do actually exist (for example density, basal area, etc.) but they are completely empty.
It happens the same when I export the data to an excel file.
Anyone experienced something similar?
Bests


## Answer (score 0, by Lauri (OF) on 2026-03-05)

Link: https://openforis.support/questions/4431/problems-with-persist-resultsr/4432

Dear Juak, 

can you please check in RStudio project that 1) you have given the area scripts in the /sampling folder, and that 2) none of the result attributes is containing just NAs. If any of variables in your chain contains only NAs, then persists-results.R fails. Also 3) after running system/calculate-results.R, that "per hectare" result variables are ok, (i.e., if in your chain you have *tree$tree_basal_area*, there will be a new variable *tree$tree_basal_area_ha*)

I just test one of my chains and persists-results.R worked. If the problem gets not solved, please contact us again so we can look at your case in detail.

regards, Lauri (OF Arena Team)


## Answer (score 0, by Juak on 2026-03-05)

Link: https://openforis.support/questions/4431/problems-with-persist-resultsr/4433

Hi Lauri, 

thanks for your fast reply. I answer to your question one by one:

 - area scripts are there
 - there are some variables with some NAs but no variable contains only NAs
 - in my entity tree (example) when I check it on R I obtain satisfactory results in the variable called tree$basal__area_\_ha

My problem is that in R everything looks nice and when I run persist-results.R everything goes smooth but then nothing gets into my survey back in Arena.

Best regards,
Jokin

> Hi Jokin, try to replace all remaining NAs with 0. -Lauri (Lauri (OF))
> Hi Lauri, I cleaned all the tables generated in R, example (treeResults) and no NAs are found there... I don't know what else to do. (Juak)

## Answer (score 0, by Lauri (OF) on 2026-03-09)

Link: https://openforis.support/questions/4431/problems-with-persist-resultsr/4436

Dear Jokin,

a new version of Arena has been released, with a fix that solves the problem reported. Thank you for reporting the issue.
