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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
QIAO
Helper II
Helper II

We cannot convert the value null to type table

I try to use Direct Query mode to load data, but always get "we cannot convert the value null to type table" in the "Create connections" stage.

Found not error in ODBC trace log.

WHY??

 

I can run Import mode smoothly.

 

1 ACCEPTED SOLUTION

Solved, it's because SQLExecute should return SQL_SUCCESS instead of return SQL_NO_DATA when load empty table.

 

View solution in original post

5 REPLIES 5
v-chuncz-msft
Community Support
Community Support

@QIAO,

 

You may check code in The Advanced Editor.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

I tested. When i comes to use Query Editor, it runs okay.  But get data through Home->Get data, it would throw error like this.

WeChat Image_20180126113529.png

Solved, it's because SQLExecute should return SQL_SUCCESS instead of return SQL_NO_DATA when load empty table.

 

mvarma
Regular Visitor

We are experiencing the same issue. The table is not empty. Can you please provide a solution on how to resolve this?

As I said, SQLExecute/SQLExecDirectW returned SQL_NO_DATA when loading empty table, it should return SQL_SUCCCESS. That's the way I solved my problem.

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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