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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Marico
Helper IV
Helper IV

Server refresh error - Expression.Error: We cannot convert the value <pii>"[Table]"</pii> to type <p

Hi,

 

I am getting below mentioned error on refreshing the data on Power BI service. However, the desktop refresh works perfectly fine.

 

Last refresh failed: Wed Mar 02 2022 22:30:02 GMT+0530 (India Standard Time)

There was an error when processing the data in the dataset.Hide details

Data source error:

Expression.Error: We cannot convert the value <pii>"[Table]"</pii> to type <pii>Table</pii>.. Value = <pii>[Table]</pii>. . The exception was raised by the IDbCommand interface. Table: Final_View

Cluster URI:

 

Activity ID:

 

Request ID:

 

Time:

2022-03-02 17:00:02Z

 

Query for Final_View is as follows:

 

"select A.Column2 as ""Reporting Struct. Bridge"",B.Column1 as ""Income.Column1,B.Column2 as ""Income Statement Reporting Structure""

from

(select distinct Column1, Column2

from Table1

where Column1 IS NOT NULL)A

cross join

(select distinct Column1, Column2

from Table1

where Column1 IS NOT NULL)B

where A.Column1<=B.Column1

order by B.Column1, A.Column1

"

What could be reason and problem with the above query? Could you please share the correct SQL query with me?

 

Thanks

 

@Greg_Deckler @amitchandak @lbendlin 

1 ACCEPTED SOLUTION
Marico
Helper IV
Helper IV

I found the solution for this.

 

The query was alright, it was created without quotes in the snowflake. The data types were also matching. The issue was with the connectivity on service as desktop refresh was working fine. The model was published for the first time on service and data source connections were not signed in. After signing them the refresh on service also worked.

View solution in original post

3 REPLIES 3
Marico
Helper IV
Helper IV

I found the solution for this.

 

The query was alright, it was created without quotes in the snowflake. The data types were also matching. The issue was with the connectivity on service as desktop refresh was working fine. The model was published for the first time on service and data source connections were not signed in. After signing them the refresh on service also worked.

lbendlin
Super User
Super User

You have issues with the double quote escaping. Use square brackets instead. There is also no real point in sorting the output. 

 

 

with c as 
(SELECT DISTINCT column1, column2
        FROM   table1
        WHERE  column1 IS NOT NULL)
SELECT A.column2 AS [Reporting Struct. Bridge],
       B.column1 AS [Income.Column1],
       B.column2 AS [Income Statement Reporting Structure]
FROM   C AS A CROSS JOIN C AS B
WHERE  A.column1 <= B.column1

 

 @lbendlin Thanks for sharing the revised query. Will it work on snowflake? Could that error be due to the cross join in SQL?

 

I am just thinking how come it working fine on desktop refresh and failing on service?

Helpful resources

Announcements
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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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

Top Solution Authors