Arcade expression in ArcGIS Online fails with an error message "Runtime error: Out of Bounds" on a server service published from ArcMap 10.6 using feature classes from an Oracle 11g 10.6 geodatabase.
上次发布: March 5, 2018ArcGIS Online
漏洞 ID 编号
BUG-000110566
已提交
January 4, 2018
上次修改时间
June 5, 2024
适用范围
ArcGIS Online
找到的版本
N/A
操作系统
N/A
状态
Known Limit
经开发团队审核,已确定此问题与不受 Esri 控制的软件的已知限制有关。 问题的“其他信息”部分可能包含进一步说明。
附加信息
In Arcade, it is the users' responsibility to handle null records. The script attempted to split a null value on a ' ' which is not possible, hence the error if the data has the potential to contain nulls first check for nulls before splitting. For example,
if (IsEmpty($feature.Name)) {
return "No Name"
} else {
var Book = Split($feature.Name, ' ')[0];
//console("book", Book);
var page = Split($feature.Name, ' ')[1];
//console("page", Page);
if (Book != ""){
return Book + "/" + Page;
} else {
return "";
}
}