操作方法
当收到以下 ArcGIS Survey123 提交错误时,此消息指示已提交的值的字符数超过给定字段的调查设置允许的字符数。
Failed to submit. String or binary data would be truncated. The statement has been terminated
但是,引发问题的字段并非总是显而易见,可能是由调查表单中未直接显示的字段所导致。 即使表单上的所有问题都阻止用户提交超过长度限制的响应,但此错误仍可能出现,由此导致过长的响应看起来不可能是错误的原因。
在 XLSForm 中,“calculate”类型的字段在 bind::esri:fieldLength 列中的值可能小于计算这些字段所依据的字段的 bind::esri:fieldLength 值。 当“calculate”字段尝试引用超出其自身参数限制长度的值时,将无法提交调查表单并会抛出错误。
例如,在以下 XLSForm 示例中,将使用相应表达式计算第 29 行上的“calculate”字段,该表达式将引用第 28 行上字段 ${EdgeMatchingRequirements} 的值。 第 29 行上字段的 bind::esri:fieldLength 参数的长度小于第 28 行上的 fieldLength 参数。 在本示例中,第 29 行上的 bind::Esri:fieldLength 参数为空,默认值为 255。
| 类型 | 名称 | 标注 | 计算 | bind::Esri:fieldLength | |
| 28 | 文本 | EdgeMatchingRequirements | 描述边匹配要求 | 999 | |
| 29 | calculate | EdgeMatchingText | EdgeMatchingText | if(${EdgeMatchingRequired}='No',"No edge matching is required between jurisdictions",${EdgeMatchingRequirements}) |
Caution: When changing the fieldLength parameter and republishing the survey, Survey123 Connect overwrites the survey's feature layer and you will lose the data that you've already collected. (You will see a warning about this when republishing the survey.) There is another way to do this without losing existing data. Please see the references listed below for instructions.
文章 ID: 000032268
获取来自 ArcGIS 专家的帮助
立即开始聊天