laptop and a wrench

漏洞

The error message "Error 000354: The name contains invalid characters" is returned when using the Distance variable as an inline variable for the Generate Points Along Lines tool in ModelBuilder.

ArcGIS Pro
漏洞 ID 编号 BUG-000168004
已提交June 3, 2024
上次修改时间December 30, 2024
适用范围ArcGIS Pro
找到的版本N/A
操作系统Windows OS
操作系统版本10.0 64 Bit
状态As Designed

附加信息

The error is expected as the distance variable value 1000 Meters has a space in between. Add the Calculate Value tool to the model to remove the space. For example, the expression: "%Distance%".replace(" ", "")) and then use the output of the Calculate Value tool as the inline variable substitution.

解决办法

  • Remove the Distance variable and create a new String variable stating '1000 Meters'. Attach this as a precondition to the Generate Points Along Lines tool. Change the inline variable in the output of the tool from %Distance% to %String%. When running the tool, the error message no longer returns. If a space is added in the string variable between 1000 and Meters, the error message returns again.
  • Adding a Calculate Value tool as a precondition to remove the space also resolved this. To do so, add the Calculate Value tool, and in the expression, add "%Distance%".replace(" ",""). Change the output of the inline variable to be %Value% in place of %Distance%.

重现步骤

漏洞 ID: BUG-000168004

软件:

  • ArcGIS Pro

当漏洞状态发生变化时获得通知

下载 Esri 支持应用程序

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项