D365 FinOps View Range Error : "Query extended range failure: Expected identifier near pos"

476 Views Asked by At

Getting this error when browsing the view using SysTableBrowser Error in Browser

Seems to be coming from the range I've added in the View: View Details

((PersonUser.VALIDFROM <= Heu_UserInfo.today) && (PersonUser.VALIDTO >= Heu_UserInfo.today))

The build and sync is fine and the SQL View is coming correct. SQL View

Any Ideas?

2

There are 2 best solutions below

0
Albert Son On

Make sure you are selecting T2's fields ("T2.ValidFrom" and "T2.ValidTo") for your selection fields

0
BenBITDesign On

Not sure if it will help, but could be worth trying date2StrXpp(ValidTo) in case your ValidTo / ValidFrom / Today fields are of the Date data type. If you use query expressions in code this conversion is needed so could be needed in AOT queries too. Haven't double checked this myself however.