Select to view content in your preferred language

Modelbuilder - Get Field Value tool won't list fields

49
1
12 hours ago
Labels (1)
RandyMcGregor_BMcD
Frequent Contributor

I am using the Get Field Value tool just to provide a way to select a field. (I don't care what the value is, I just want a way to select a field and there is no modelbuilder tool for that that I know of).

In the workspace, the tool works fine and I can selet a field:

RandyMcGregor_BMcD_0-1764770666951.png

 But when I run the model as a tool by double-clicking on it, I am unable to select a field. Is there any way around this, or are there any other suggestions for selecting a field in modelbuilder?

RandyMcGregor_BMcD_1-1764771519372.png

Thank you,

 

0 Kudos
1 Reply
DuncanHornby
MVP Notable Contributor

I think your logic is flawed. Looking at your model the Get field Value tools input is "Line Features", which I assume is a polyline Feature Class. "Identifier field" looks to be some variable you have put in your model that links to four other tools. If you look at the help file syntax table for Get field value it takes a FIELD object. I suspect your  "Identifier field" parameter is simply a text input? So the logic you are showing make little sense. I think you need to revisit your model and work up alternate logic.

0 Kudos