Calculating a field in Model Builder

527
6
07-08-2013 04:16 PM
JacobPederson1
New Contributor
Hi,

I am a non-programming user who is learning model builder for the first time. I've had success creating my initial workflow, but am having trouble calculating a field, based off of other fields already present in my polygon layer. The calculation is simple, multiplying one field by 2, and dividing the product by another. When I verify and run, I get the "Item not found in this collection" error. I have attached the .py file, and appreciate any advice! Thanks!
0 Kudos
6 Replies
DuncanHornby
MVP Frequent Contributor
Your calculate expression is invalid, you have:

"[Shape_Length * 2] / [Join_Count]"

it should be:

"[Shape_Length] * 2 / [Join_Count]"

Duncan
0 Kudos
JacobPederson1
New Contributor
Thanks Duncan, problem is all cleared up. Just made my first functioning model!
-Hacib
0 Kudos
DuncanHornby
MVP Frequent Contributor
Jacob,

Glad to have helped, but you should mark your post as answered. Also if you see a good question/answer vote it up! People love you for it.

Duncan
0 Kudos
JacobPederson1
New Contributor
Perhaps I'm going blind....where is the tool to mark a thread as answered?
0 Kudos
LangdonSanders3
New Contributor II
Perhaps I'm going blind....where is the tool to mark a thread as answered?


If you are the thread author you can click a check mark on the left of the reply - it is grey'd out and will turn green.
0 Kudos
by Anonymous User
Not applicable
To see how to reward Duncan for his answer, see this page describing the MVP" rel="nofollow" target="_blank">http://resources.arcgis.com/en/help/forums-mvp/]MVP Program.
0 Kudos