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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon & SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.