laptop and a wrench

Erro

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
Número de ID do Erro BUG-000168004
EnviadoJune 3, 2024
Última ModificaçãoDecember 30, 2024
Aplica-se àArcGIS Pro
Versão encontradaN/A
Sistema OperacionalWindows OS
Versão do Sistema Operacional10.0 64 Bit
StatusAs Designed

Informações Adicionais

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.

Solução Provisória

  • 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%.

Etapas para Reproduzir

ID do Erro: BUG-000168004

Software:

  • ArcGIS Pro

Seja notificado quando o status de um erro mudar

Baixe o Aplicativo de Suporte da Esri

Descubra mais sobre este tema

Obtenha ajuda de especialistas do ArcGIS

Entre em contato com Suporte Técnico

Baixe o Aplicativo de Suporte da Esri

Ir para as opções de download