---
title: "Unexpected error: error: syntax error at or near \"end\""
url: "https://openforis.support/questions/4474/unexpected-error-error-syntax-error-at-or-near-end"
tags: ["arena"]
status: "answered"
score: 0
answer_count: 4
asked: "2026-04-14T19:00:00"
last_activity: "2026-04-24T15:26:11"
source: "Open Foris Support - Q&A Forum"
license: "Copyright Open Foris, 2026. Some rights reserved under creative commons license."
---

# Unexpected error: error: syntax error at or near "end"

Asked by ncook01 on 2026-04-14

I am trying to publish a survey for the first time with Arena online. I am seeing this error message under "12. Survey RDB Creation" and it refers to "Item" 4 as where the error is located. What does this error message mean? What does "Item" refer to?


## Answer (score 0, by Stefano (OF) on 2026-04-15)

Link: https://openforis.support/questions/4474/unexpected-error-error-syntax-error-at-or-near-end/4476

Dear user,  
We will release soon a new version of Arena with a fix, that will be v2.4.1.  
Many thanks,  
Open Foris Team


## Answer (score 0, by ncook01 on 2026-04-15)

Link: https://openforis.support/questions/4474/unexpected-error-error-syntax-error-at-or-near-end/4477

The error was caused by using a reserved SQL keyword (end) as a field name, which broke the database query during publishing. I fixed it by renaming the field to a non-reserved word.


## Answer (score 0, by Stefano (OF) on 2026-04-15)

Link: https://openforis.support/questions/4474/unexpected-error-error-syntax-error-at-or-near-end/4478

Dear user,  
In fact the fix will be related to the issue you are mentioning. When it will be released, you will be able to use also reserved keywords as attribute or entity names.  
Many thanks,  
Open Foris Team


## Answer (score 0, by Stefano (OF) on 2026-04-24)

Link: https://openforis.support/questions/4474/unexpected-error-error-syntax-error-at-or-near-end/4495

Dear user,  
The new version of Arena with this fix has been released.  
Please let us know in case you encounter any other issues.   
Many thanks,  
The Open Foris Team
