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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
mathdts
New Member

Converting ACL Error

Hi guys, I've a question about the integration of ACL with Power BI, I'm new here, so I don't understand  so much about the topic.

 

I do the connnection with ODBC and I find correctly the table I want, but, ever show me this error: 

 

DataSource.Error: ODBC: ERROR [HY000] [ACL][AclDSI] (7) Error converting Acl Connector string data ('Boa tarde!) to SQL type LONGVARCHAR.
Details:
DataSourceKind=Odbc
DataSourcePath=dsn=ACL ODBC 64
OdbcErrors=Table

 

If I delete this column where has this string, show the error on another colum, and ever is about the convertion in LONGVARCHAR.

 

If you need something else about more information, I'll respond as soon as possible.

Thanks guys.

 

 

I took a picture about this error:

 

error.PNG

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@mathdts,

The above error message indicates that ODBC driver is not properly converting ACL's string data into an SQL equivalent. You would need to find out these text values and clean them with REGEXREPLACE function in ACL before you import data to Power BI Desktop. For more details, please review Thomas's reply in the following similar thread.

https://community.acl.com/s/question/0D5C000003v6Tv2KAE/microsoft-power-bi-connector?language=en_US

Regards,
Lydia

View solution in original post

6 REPLIES 6
Anonymous
Not applicable

@mathdts,

The above error message indicates that ODBC driver is not properly converting ACL's string data into an SQL equivalent. You would need to find out these text values and clean them with REGEXREPLACE function in ACL before you import data to Power BI Desktop. For more details, please review Thomas's reply in the following similar thread.

https://community.acl.com/s/question/0D5C000003v6Tv2KAE/microsoft-power-bi-connector?language=en_US

Regards,
Lydia

Thanks (@Anonymous) Lydia​ , I'll try this, and I'll get back in touch.

Anonymous
Not applicable

@mathdts,

How is the issue going?

Regards,

Lydia

Anonymous
Not applicable

Hi @Anonymous

 

I already tried the solution of REGEXREPLACE(FieldName '\r|\n' ' ') to clean your text fields of these characters, but it didn't work, I'm still getting this error:

 

DataSource.Error: ODBC: ERROR [HY000] [ACL][AclDSI] (7) Error converting Acl Connector string data ('Margecca) to SQL type LONGVARCHAR.

 

I'd appreciate any help. Thanks in advance.

 

Anonymous
Not applicable

I got a solution. The non-printable TAB character also provoke this error, so the solution was to include it in the Regular expression, like this:

 

ALLTRIM(REGEXREPLACE(FIELDNAME; "\r|\n|\t"; ""))

Hello, could you show the example of query? I cannot find, how to apply this regulat expression

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.