---
title: "unable to add entity (Form layout or table Layout) in Collect Earth Survey"
url: "https://openforis.support/questions/1338/unable-to-add-entity-form-layout-or-table-layout-in-collect-earth-survey"
tags: ["collect"]
status: "answered"
score: 0
answer_count: 1
asked: "2017-07-31T23:14:42"
last_activity: "2017-08-01T11:28:56"
source: "Open Foris Support - Q&A Forum"
license: "Copyright Open Foris, 2026. Some rights reserved under creative commons license."
---

# unable to add entity (Form layout or table Layout) in Collect Earth Survey

Asked by jinkaizhang on 2017-07-31

hello,

i tried to add "Mltiple (1:N)(Form layout)" to my Collect Earth survey. when clicking "preview", i got the following error:

*HTTP ERROR 500
Problem accessing /collect/collectearthpreview.html. Reason:
    Server Error
    ...*

I am not sure what is going on here.  How can i add a table/form to Collect Earth survey?

Thanks,

Jinkai


## Answer (score 0, by Stefano (OF) on 2017-08-01)

Link: https://openforis.support/questions/1338/unable-to-add-entity-form-layout-or-table-layout-in-collect-earth-survey/1339

Dear Jinkai,  
Nowadays Collect Earth supports only multiple entities with table layout and a code attribute marked as "key" inside of them (what we call an **enumerated entity**): the rows in the table will be automatically generated and there will be one row for each item in the code list associated to the enumerating code attribute.  

For instance in this entity you have two attributes, harvest_year and number_of_multiple_harvest.
![alt text][1]
The harvest year is marked as a key attribute and the other one is a normal code attribute.
The harvest year is a code attribute (linked to a code list of years 2000,2004,2008,2012 and 2016), this means that in the form it will show a line per year...


![alt text][2]



Thanks,  
Open Foris Team


  [1]: http://www.openforis.org/support/upfiles/chrome_2017-08-01_11-23-01.png
  [2]: http://www.openforis.org/support/upfiles/chrome_2017-08-01_11-27-29.png
