[IMPLEMENTED] Empty() function doesn't support dates => exists(...)

I’m submitting a…

  • [ ] Regression (a behavior that stopped working in a new release)
  • [x] Bug report
  • [ ] Performance issue
  • [ ] Documentation issue or request

Current behavior

When filtering date field with empty() function I get the following error:
“OData $filter clause not valid: No function signature for the function with name ‘empty’ matches the specified arguments. The function signatures considered are: empty(Edm.String Nullable=true)”

I tried other ideas like comparing it to null or dates with all 0’s etc. but couldn’t find a working solution.

Expected behavior

A way to filter for empty date field.

Environment

  • [ ] Self hosted with docker
  • [ ] Self hosted with IIS
  • [ ] Self hosted with other version
  • [x] Cloud version

Hi, I have introduced a new “exists” operator that will do that. So you can sue

$filter=exists(data/text/iv) eq false

Will be deployed today or tomorrow.

This topic was automatically closed after 2 days. New replies are no longer allowed.