I'm using the code below to retrieve the last record saved to a SQL DB.
Set(CurrentRecord,Patch(DataSource,Defaults(.
In the past I've not had any issues with this, but now whenever I use this code, the Date columns are returned empty in the "CurrentRecord" variable. All other Columns return data without any problems, but Date columns are all blank.
The record is saved correctly and if I retrieve the record from the DB using Filter, it brings back all columns including Date columns.
So is this a bug? How can we solve this issue?