Thanks, checked that is all Non-Unique. Often shows NO rows in the view.
Have found some code that causes it, and it does seem to be a bug somewhere in Env or more likely FF
With this line of code there is the issue:
Where.Add(WO.QtyStored.IsEqualTo(WO.CurQty));
Replace it with this and it works :
Where.Add("{0} = {1}", WO.QtyStored, WO.CurQty);
Both fields have the same Type in the Entity and in SQL.
The Profiler shows me the generated SQL is correct and identical except for an irrelevant brackets set of extra brakets in the working version