Select to view content in your preferred language

Inline Variables error in ModelBuilder

760
2
12-16-2021 02:01 PM
BryanPreston
Occasional Contributor

This is likely a simple solution, but I have been banging my head on the screen long enough that I need to reach out.

(This is a very simple model I'll end up using on a substantially larger feature class.) For this test, the goal is to export each of the 6 features as their own individual feature class into a gdb. There are no special characters in the NAME field as you can see in the screenshot, but it still throws the invalid characters error. When I replace "%NAME%" with "Blah_%n%" it exports properly. Any hints?

BryanPreston_0-1639691788659.png

 

0 Kudos
2 Replies
DanPatterson
MVP Esteemed Contributor

why not use this in your model

Split By Attributes (Analysis)—ArcGIS Pro | Documentation


... sort of retired...
BryanPreston
Occasional Contributor

Thank you! This looks like it works like a charm. I'm still not clear on why my attempt at Inline Variables didn't work, though. I'm glad to know about this tool.

 

0 Kudos