Hello,
It seems simple, however, there are important elements:
The data type is NUMBER(10, 0).
A Refresh is being performed, and an Append or Edit is not being done to the TFDTable.
Yesterday, I was able to isolate the problem and it replicates as follows:
FDTable.Active: =True;
FDTable.IndexName:= 'TABLE_A1';
FDTable.Refresh;
FDTable.IndexName:= 'TABLE_A2';
FDTable.Refresh;//Error occurs here
I found that the problem only occurs, if the field "COL3" exists in an index where it is sorted as DESCENDING:
CREATE INDEX "MyDB"."TABLE_A3"(COL1, COL2, COL3 DESC) ..;
The paleative solution is to remove the "TABLE_A3" index, or remove it from being DOWN.
Ideally, FireDAC should always work, however, this is not the case when there are indexes with descending fields on the table in ORACLE.