Hi,
I am trying to populate a collection with data from an SQL Database. I am delegating a Date filter to the SQL server to minimise the amount of data handled by the PowerApp. When the code is actioned (from a button) I recieve the error "An error occured on the server."
The code attached to the button select property is:
Set(CurrentDate, DatePicker1.SelectedDate);
Clear(WorkOrderTable);
Collect(WorkOrderTable,Filter('[db_owner].[ResourceEstimationTimeSheet]', Date = CurrentDate))
Strangly the filter works fine if i use:
Date = DatePicker1.SelectedDate
Instead of:
Date = CurrentDate
What is the reason for this behaviour?? I have attached an image below for your reference
