Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask here!
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

If statement error when using spatial object

Neico
7 - Meteor

I'm trying to create a new variable that contains the spatial information of the variable "SpatialObj" contains null values if the second variable "LEZ_type" is empty (see attachment).

 

I tried:

 

IF IsEmpty([LEZ_type]) THEN "" ELSE [SpatialObj] ENDIF

but received an error: "type mismatch on true/false branch of if statement"

 

Can you please help?

1 REPLY 1
binuacs
21 - Polaris
Spoiler
Instead of "" can you try with Null() and also make sure you selected the Data Type as SpatialObj

binuacs_0-1637793548021.png

 

Labels
Top Solution Authors