Forum Discussion
ERROR [42000] [Cache ODBC][State : 37000][Native Code 12]
Hi Anonymous
If you are using Power BI Report Builder, the error probably comes from the "@BeginDate" part.
Can you first test whether this query can return you the correct data if giving it a specific date value with the correct format required by the data source? For example use '2020-10-12'.
If you are sure which date format the data source requires and your query can work correctly with a specific date, then you may need to convert the paramter to the correct format. For example: =Format(Parameters!BeginDate.Value, "yyyy-MM-dd")
The following links may be helpful:
Power BI gateway and Report Builder support for ODBC data sources - Power BI | Microsoft Learn
Report Builder Parameter Formatting (Datetime to Date) - Microsoft Power BI Community
Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.
Hello, Thank you for your feedback. Unfortunately, I am still getting errors after applying your suggestion. Do you have any other option you can think of.
Thanks