- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@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
Join us at the Microsoft Fabric Community Conference
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Power BI Monthly Update - February 2025
Check out the February 2025 Power BI update to learn about new features.

Subject | Author | Posted | |
---|---|---|---|
03-12-2024 11:57 PM | |||
12-21-2020 09:25 AM | |||
Anonymous
| 09-20-2019 06:07 AM | ||
10-12-2022 03:10 AM | |||
10-12-2023 12:31 AM |
User | Count |
---|---|
47 | |
32 | |
31 | |
26 | |
25 |
User | Count |
---|---|
46 | |
32 | |
19 | |
18 | |
15 |