cancel
Showing results for 
Search instead for 
Did you mean: 

Issue Filtering Empty Fields in OData Analytical Model Calls

02-23-2026 5:28 PM
Cuatrecasas Newcomer
427 views 1 comments
0 Likes
SAP Managed Tags
Labels
"Datasphere""OData"Analytical Model
Subscribe

Hello,

Over the past few weeks, we have been experiencing issues with OData calls to analytical models when applying filters on empty fields.

We are building the filter, for example, as follows:
ZOFFICE ne ' '

Until recently, this expression worked correctly. However, it is no longer excluding records with empty values (' '). Instead, it returns the full result set, including those records where the field is empty.

Has there been any recent change in how empty values are interpreted or handled in OData filters? We have also tried alternatives such as using null or comparison operators like gt, but none of them have produced the expected behavior.

Thank you,
Jaume

0 Likes

Accepted Solutions (0)

Answers (1)

Answers (1)

sravan_aleshwaram
Active Participant
0 Likes

Hello 

 


OData now treats empty (`''`) and `null` differently, so use an explicit combined condition,

ZOFFICE ne '' and ZOFFICE ne null

not (ZOFFICE eq '' or ZOFFICE eq null)

length(ZOFFICE) gt 0

This ensures both empty strings and null values are excluded.

 

Thanks,
Sravan