Earlier I was trying to build a feature to prevent a user from entering more than one item on the same date. To do this, I was using a filter against my SharePoint data source date field where the date indicated in the form is compared in order to give them access to the submit button. The equation will resolve to a true/false.
For some reason, I could not use the equals operator like so:
Does not work
CountRows(
Filter(TimeStudy,
EntryDate = DataCardValue10.SelectedDate
)
) <> 0
It shows the error:
The requested operation is invalid. Server Response: The expression "Date eq 2019-10-24" is not valid.
With a bit of creativity, I tried doing a comparison instead and achieved the desired result using something much uglier.
Works fine
CountRows(
Filter(TimeStudy,
EntryDate < DateAdd(DataCardValue10.SelectedDate, 1),
EntryDate > DateAdd(DataCardValue10.SelectedDate, -1)
)
) <> 0
Can anyone provide some insight on what might be happening here? I read some other threads about limitations and workarounds with SharePoint lists. Is this realated? None of the date fields have a time associated with them so I don't think that's the issue.