Usage of iterator variables

1132
3
11-27-2013 05:45 AM
by Anonymous User
Not applicable
Original User: jofuchs

Hello everyone!

Normally I can use the model iterator variable (e.g. %Name%) in the final output filename so when the iteration is done the results are dynamically named. That is working so far in Model Builder. Now I try to name a new column of a feature class generated with "Add Field" with this iterator variable, but that does not work!

[ATTACH=CONFIG]29413[/ATTACH]

I just write down the Variable name in the "field name" like depicted in the Screenshot. I dont get any Error message. I only get the wrong column name "Name_IND_PC". The variable "works", because I am able to name the outputfile with it.

What am I doing wrong? Many thanks in advance for your help!

Jo
0 Kudos
3 Replies
by Anonymous User
Not applicable
Original User: Hornbydd

What is the dataset you are creating the field in? If it is a shapefile then you can only have 10 characters, nor can you have unusual characters like /|\£$%^&*(.)
0 Kudos
by Anonymous User
Not applicable
Original User: jofuchs

Thanks for your reply, it is an attribute-table of an point feature class. The length of the column name does not consist any forbidden characters nor is it too long (9 characters only).
0 Kudos
by Anonymous User
Not applicable
Original User: jofuchs

Any other ideas, what can be the reason for failing the dynamic column naming?

Thank you!

Im also interested in other workarounds bringing me to the desired result!
0 Kudos