Forum Discussion
Marico
4 years agoHelper 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 (I...
- 4 years ago
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
4 years agoSuper 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