xsgao_pbi
7 years agoFrequent Visitor
Status:
Accepted
cannot folder expression - data connector and PostgreSQL
I want connect to Postgres ODBC data source with direct query enabled. So I took this sample project, https://github.com/Microsoft/DataConnectors/tree/master/samples/ODBC/SqlODBC, point Config_Driver...
sowrk
7 years agoRegular Visitor
Hi @xsgao_pbi,
I am running into the same problem that you encountered. I created a custom connector to connect to postgres ODBC datasource with direct query enabled.
I get the 'Cannot fold expression to the datasource" error. But once I add the SQLGetTypeInfo and SQLColumns functions, not even able to load data from a table in PBI desktop due to an error - "Expression error - Token literal expected"
Could you please elaborate on your solution. Should the SQLGetTypeInfo function be modified to return only unique types? And any changes required in SQLColumns function?