Select to view content in your preferred language

Attribute Rules Invalid Expression: Close parenthesis expected

4002
3
Jump to solution
02-25-2021 04:55 PM
SterlingLoetz
Regular Contributor

I can't figure out what is wrong with this expression. I'm trying to calculate an attribute in a point feature class from an intersecting polygon feature using Attribute Rules. I keep getting the error for "Close parenthesis expected" on line 8 but I have no idea why?

SterlingLoetz_0-1614300693919.png

Thanks for your help!

0 Kudos
2 Solutions

Accepted Solutions
jcarlson
MVP Esteemed Contributor

What is "layer.Org IA SqFt"? I'm guessing it's the presence of spaces that is causing the issue. If that's an attribute, try layer['Org IA SqFt'], perhaps.

- Josh Carlson
Kendall County GIS

View solution in original post

JoeBorgione
MVP Emeritus

In line 1 it appears to be shown as ORG_IA_SqFt (note the under_scores).

That should just about do it....

View solution in original post

0 Kudos
3 Replies
jcarlson
MVP Esteemed Contributor

What is "layer.Org IA SqFt"? I'm guessing it's the presence of spaces that is causing the issue. If that's an attribute, try layer['Org IA SqFt'], perhaps.

- Josh Carlson
Kendall County GIS
JoeBorgione
MVP Emeritus

In line 1 it appears to be shown as ORG_IA_SqFt (note the under_scores).

That should just about do it....
0 Kudos
SterlingLoetz
Regular Contributor

Thanks @JoeBorgione and @jcarlson for your input. Sometimes the simplest questions lead to the best answers. Putting in underscores worked!

SterlingLoetz_1-1614353961856.png

 

 

0 Kudos