0

After using inline variable substitution in ArcGIS Pro ModelBuilder it generated the outputs that I wanted, but their layer names in the output were not unique. In the metadata tab, I can see that the feature class is named as I wanted it, but it's not displayed as the layer name. Is it possible to make corrections to the model so it would rename them correctly or create a script that would give the layer name the feature class name?

enter image description here

  • Looks like a bug? Suggest you contact esri support? – Hornbydd May 17 at 19:28
1

I agree, this does look like a bug -- this seems specific to using the iterator, with the inline variable and running the model in edit mode

You can get around this and achieve your result by:

  • Adding Collect Values to your model. Wire up the output of Feature to Line to Collect Values.
  • Make the Collect Values a Model Parameter (make sure the Feature to Line output is NOT a parameter)
  • Run the model as a tool, not from the edit window.
  • Everything gets added to the Table of Contents with the expected name.
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.