How to differentiate NULL and empty string for AC table? | Community
Skip to main content
Adobe Employee
July 16, 2025
Solved

How to differentiate NULL and empty string for AC table?

  • July 16, 2025
  • 2 replies
  • 851 views

Hi, I was checking my data on campaign server, using advanced filter on data schema.

And there is a table with fields that some of values are set as Null and others as an empty string, "".

I was trying to differentiate these two types, so tried filtering with condition as below,

[field A] is equal to ""

and

[filed A] is empty

But for both cases, query is generated as "[fieldA] is NULL"

But when I filtered with [filter A] is not empty, I still see the empty values, and when I exported it as a .csv file those values are marked as an empty cells.

 

Does anyone know a way to resolve this issue? or do any of you know how AC save empty string values?

 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by ParthaSarathy

Hi @soohoon ,

In query > additional data > add the below expression (lets consider alias as @identifyNull )

Coalesce(@fieldA, 'NULL')

This will result all null values as a string 'NULL' and empty values still remains empty. And use a split activity after query, and filter now as @identifyNull = 'NULL' to get all null values, and one more subset toidentify empty values and enable complement to get rest valid records with values.

2 replies

Jyoti_Yadav
Level 8
July 17, 2025

Hi @soohoon ,

 

The behavior you're observing suggests that the database underlying treats both NULL and empty strings ("") as equivalent when using certain filtering methods within the advanced filter interface.

You can add an additional condition in your query to avoid getting empty fields in your output:

"[field A] is not equal to "" AND [filter A] is not empty"

 

Thanks,

Jyoti

ParthaSarathy
Community Advisor
ParthaSarathyCommunity AdvisorAccepted solution
Community Advisor
July 18, 2025

Hi @soohoon ,

In query > additional data > add the below expression (lets consider alias as @identifyNull )

Coalesce(@fieldA, 'NULL')

This will result all null values as a string 'NULL' and empty values still remains empty. And use a split activity after query, and filter now as @identifyNull = 'NULL' to get all null values, and one more subset toidentify empty values and enable complement to get rest valid records with values.

~  ParthaSarathy S~  Click here to join ADOBE CAMPAIGN USER GROUP for Quarterly In-person | Hybrid | Virtual Meetups
SoohoonAdobe EmployeeAuthor
Adobe Employee
July 18, 2025

Thanks a lot