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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Michelle-M
New Member

Failed to save modifications to the server 'OLE DB or ODBC error: and Failed to convert to Int

Hi, I have read through other posts but cannot find this specific type of post as I'm using a Cbase Couchbase ODBC connection. 

 

When I'm in Query Editor, I can identify that row 721 is coming up with the error and in particular column 'Code' which was initially an Int value, cannot convert an alphanumeric value to Int.  I have looked at the data in the table and there are other alphanumeric values as well, however I'm guessing this is the the first value that it might be encountering?

- I've changed the column type to 'Text'

- I've tried to 'replace errors' 

- I've tried to replace values as well

 

None of the above is working.  What am I missing in order to solve this problem? 

 

I'm using a test sample to connect to, but when I've tried to connect to another server, I'm getting the same type of errors, different coluumns. 

 

I can solve the problem by deleting the column but that is not solving the problem, that's just removing information.  I would really like to know how to solve this.  Your help is much appreciated.

 

I'm trying to attach the .pbix file for reference, do I do this via Publish and share the link?

 

 

1 ACCEPTED SOLUTION

@amitchandak  Thank you again for your reply.  

 

I have solved this problem by creating a N1QL query, saving the .json file and using the .json file as the datasource, rather than the Couchbase ODBC as the datasource.

 

The .json file has allowed me to change the datatype whereas previously I was not able to do that and I have been able to remove the errors

 

View solution in original post

4 REPLIES 4
amitchandak
Super User
Super User

@Michelle-M , check the steps. You have to change it to text on or before the step it was converted to int.

Change data type step might be there as a second or third step, make sure it is text in that step. Make sure it did not get converted to int

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Thank you @amitchandak for your information.  The original dataset is in Int and in the query editor, I've changed it to Text.  That's when I try and Close & apply and get the error.

 

Are you indicating I need to change the column from Int to Text at the server end before I attach the ODBC Couchbase source?

@Michelle-M , Usually when add datasource, the power query automatically adds a step to change the data type, and that needs to be overwritten in such cases.  

 

Another way is to add this table as a new one and check does it load. if yes, carefully replace the top part of your old query with new query(Power Query code)

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak  Thank you again for your reply.  

 

I have solved this problem by creating a N1QL query, saving the .json file and using the .json file as the datasource, rather than the Couchbase ODBC as the datasource.

 

The .json file has allowed me to change the datatype whereas previously I was not able to do that and I have been able to remove the errors

 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors