Select to view content in your preferred language

Text Field Value Too Long Despite Being Less than the Field Limit

301
3
Jump to solution
a week ago
Labels (2)
cjms
by
Regular Contributor

In ArcGIS Enterprise 11.1, I created a Survey123 form (via the web) that has a multi-line text field question; The app defaults it to 1000 characters. From this hosted feature in Portal, I created a view that I published to AGOL to share with others outside the Org. Process: Hosted Feature Layer View -> Export to temp file gdb -> Publish to AGOL so all fields match

cjms_0-1779387517014.png

However, despite the field length saying 1000 characters, I only seem to be able to enter 850 characters. If I enter anything more, e.g. if I enter 851 characters, then I receive the error:

Operation failed. The index entry of length 1702 bytes for the index 'exb_event_description' exceeds the maximum length of 1700 bytes for nonclustered indexes.

cjms_1-1779387698280.png

 

This is causing an issue in my truncate and append workflow, resulting in a "general function failure" for the append tool.

WARNING 000594: Input feature 120: General function failure.

How can I fix this to allow all 1000 characters to be entered in a 1000 character limit field in AGOL?

0 Kudos
1 Solution

Accepted Solutions
MobiusSnake
MVP Regular Contributor

I haven't seen this but it sounds like a database indexing limitation.  Did you create an attribute index on that field, and if so, can you drop it?

View solution in original post

0 Kudos
3 Replies
MobiusSnake
MVP Regular Contributor

I haven't seen this but it sounds like a database indexing limitation.  Did you create an attribute index on that field, and if so, can you drop it?

0 Kudos
cjms
by
Regular Contributor

Yes, when the hosted item was published to AGOL, it defaulted to indices on all fields. 

Remove the index from that specific column seems to have fixed the issue. Thanks!

IMO seems a bit strange an index can be created on a field that allows a greater number of bytes than the limit for an indexed field.

0 Kudos
MobiusSnake
MVP Regular Contributor

It's very strange you're seeing indexes created on all fields as default behaviour, I only get Object ID, Global ID and edit tracking fields indexed automatically.

0 Kudos