I’m building my first Canvas App that uses Microsoft Dataverse. The app includes a working login screen that successfully writes user names into Dataverse — so basic create and write operations work without any issue.
However, when building a dashboard screen that uses dropdowns to filter and display data, I keep running into formula errors.
Even though the Dataverse table (Organisations
) is correctly created and connected, I keep getting errors in Power Apps whenever formulas try to manipulate or extend the data — for example:
Simpler formulas do work fine, like: Distinct(Organisations, 'Name Organisation')
It doesn’t seem to be related to permissions or connections — I can read data without issues. The problem appears to be how Power Apps interprets field types or return types in this environment, continuesly resulting in type errors such as: “Invalid argument type” “Expecting one of the following: Text, Number, Boolean…”
Created a new Dev environment with a proper security group (DataverseAdmins
)
Created new Dataverse tables with simple text columns
Reconnected all Dataverse data sources
Republished and tested the app in incognito mode
Tested various formula combinations: Text()
, ForAll()
, SortByColumns()
, etc.
None of these actions resolve the issue — it consistently breaks when I try to sort, collect, or add columns based on Dataverse data.
What could cause this kind of behavior?
Why would simple Distinct()
work fine, but Sort()
or AddColumns()
immediately trigger type errors when connected to Dataverse?