Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
rodg
Frequent Visitor

connect to Informix from report builder failed

Hi,

I am trying to connect to an Informix database using Report Builder, but I’m encountering an issue. Here’s what I have done so far:

  1. Installed the Informix ODBC driver (both 32-bit and 64-bit).
  2. Created a 64-bit ODBC connection.
  3. Successfully tested the connection to the database using this ODBC setup.

In Report Builder:

  • I created a new data source using the configured ODBC connection.
  • Entered the correct username and password.
  • However, the test connection failed with an error (see screenshot).

Does anyone know how to resolve this?

 

rodg_0-1734375632214.png

 

 

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi, @rodg 

Try to paste the query into Text to run, ODBC connector only supports? To occupy a placeholder for a parameter in Power BI Report Builder:

vjianpengmsft_0-1734514186341.png

vjianpengmsft_1-1734514204403.png

vjianpengmsft_2-1734514219171.png

 

The order of the parameter pages will determine the ? location.

In stored procedures, we usually can't define one? as a query variable, so you're getting an error. Try writing a query inside the Report builder.

 

 

 

Best Regards

Jianpeng Li

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

View solution in original post

4 REPLIES 4
rodg
Frequent Visitor

Hi Jianpeng Li

 

I have a working version.

Thanks !

Ronny

Anonymous
Not applicable

Hi, @rodg 

First, add an Informix database connection correctly in ODBC as shown in the following image:

vjianpengmsft_6-1734419065223.png

 

vjianpengmsft_0-1734417857133.png

vjianpengmsft_1-1734417891186.png

Connect to it using ODBC in report builder:

vjianpengmsft_2-1734417944881.png

vjianpengmsft_3-1734417963628.png

vjianpengmsft_5-1734418103603.png

 

 

 

 

 

Best Regards

Jianpeng Li

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

 

Hi Jianpeng Li,

 

The connection to the database is now active in Report Builder.

However, I’m facing an issue when trying to use a stored procedure (on Informix) with parameters.

Dataset Definition:

  • The dataset is correctly configured to call the stored procedure.

rodg_1-1734437573307.png

  • Parameter names match those in the stored procedure.

rodg_2-1734437600341.png

Despite this, I keep encountering the following error:

=> ERROR [42000] [Informix][Informix ODBC Driver][Informix]A syntax error has occurred.

 

rodg_0-1734437484828.png

I’ve set the LoggingTraceLevel in Report Builder to "Verbose," but unfortunately, the log file doesn’t provide any additional insights.

Do you  have ideas on what might be causing this error?


Could it be related to syntax, parameter handling, or some driver issue?

Note: My OS is in Dutch, so the Report Builder UI is also in Dutch—apologies if any screenshots include Dutch text.

 

Thanks in advance for your help!

Anonymous
Not applicable

Hi, @rodg 

Try to paste the query into Text to run, ODBC connector only supports? To occupy a placeholder for a parameter in Power BI Report Builder:

vjianpengmsft_0-1734514186341.png

vjianpengmsft_1-1734514204403.png

vjianpengmsft_2-1734514219171.png

 

The order of the parameter pages will determine the ? location.

In stored procedures, we usually can't define one? as a query variable, so you're getting an error. Try writing a query inside the Report builder.

 

 

 

Best Regards

Jianpeng Li

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.