Forum Discussion

zua's avatar
zua
Frequent Visitor
2 years ago
Solved

Custom ODBC Connector Property Unsearchable Error

Hello,    I have a problem with a custom ODBC connector for a SAP HANA database.  I use native queries to access tables in the database and to fold the calculation.    But I have a problem with ...
  • rohit1991's avatar
    1 year ago

    Hi zua ,

    This error happens because Power BI relies on ODBC metadata to decide whether columns can be filtered (searchable). If your ODBC driver (especially with DOUBLE or DOUBLE PRECISION columns) flags them as “unsearchable,” Power BI can’t push filters down in DirectQuery mode, which triggers this issue.

     

    In some cases, as Pieterjan pointed out, the root cause is a mismatch or bug in how the ODBC driver reports column data types and searchability (for example, a conflict between SQL_DESC_TYPE_NAME and SQL_DESC_CONCISE_TYPE). This can happen even if the connector says the column should be searchable.

     

    What you can do is to, Create a view in your database that CASTs the DOUBLE column to DECIMAL, and point Power BI to that view. This usually makes the column searchable and gets around the ODBC metadata problem.

     

    If you manage the ODBC driver or connector, double-check how it exposes column metadata (especially those attributes Pieterjan mentioned). Fixing the metadata at the source is ideal if possible.  Also, you can also try Import mode as a workaround, but I get that DirectQuery and query folding are important for you.