Select to view content in your preferred language

Attribute Assistant: IIF and IsNull syntax

1077
1
Jump to solution
07-18-2018 01:29 PM
Labels (1)
DarrenLacina1
New Contributor II

IIF and IsNull...have reviewed a number of posts here but I am having issues getting my scripting to work.  I am trying to build a rule to populate a Name field based on values in one of a number of other fields, if there are non-null values in one of the other fields. 

For the first test I am including one IIF statement.  If PARCELID is not null, I want to populate the Name field with it's value.  Here is the syntax that is not working:

IIF(IsNull([PARCELID]),Nothing,[PARCELID])

Here is the info from the AA log:

Row Info
Row Number 2
TableName: ParcelFabric_Parcels
FieldName: Name
ValueInfo: IIF(IsNull([PARCELID]),Nothing,[PARCELID])
ValueMethod: FIELD
On Create: 0
On Change: 0

Checking for Subtype Restriction
Field Name: Name was found at index: 3
Trying: Field
IIF(IsNull([PARCELID]),Nothing,[PARCELID]) is not found
Finished: Field

Instead of Nothing in the scripting, I have also tried Null and "<Null>".

I am using ArcGIS 10.4.1, SQL Server 2014, Attribute Assistant 2017.3.1

Any suggestions?

0 Kudos
1 Solution

Accepted Solutions
DarrenLacina1
New Contributor II

Got some help from ESRI Support on this one...just needed to change the value method from FIELD to EXPRESSION and got the scripting to work.

View solution in original post

0 Kudos
1 Reply
DarrenLacina1
New Contributor II

Got some help from ESRI Support on this one...just needed to change the value method from FIELD to EXPRESSION and got the scripting to work.

0 Kudos