I'm trying to execute a sql query through powerpivot and I get the following error
"Unable to convert a value to the data type requested for table (massive hex string) column (name)"
SELECT [name], [table].[group],[table2].[group2] ,SUM([number]) AS number
FROM table LEFT JOIN [table2] ON table.[group ID] = [table2].id
GROUP BY [name],[table].[group],[table2].[group2]
Powerpivot's validator is happy with the query and the same query runs fine through sql management studio, any开发者_如何学运维 ideas how I can fix this?
this usually happens when you are updating a query in a table that already had data from the original query, and the columns in that table already assigned datatypes based on the previous query. Either recreate the table or change the datatypes to the ones in your new query.
Hope that helps.
I had same issue. I am querying a Powerpivot book on sharepoint and some of the values coming back were blank or "NaN xxx." This is because I made an Iferror( ,BLANK())
in the measurements.
I changed the calcualted measure from IFERROR( ,Blank())
to IFERROR( ,0)
and then I could successfully query the model on sharepoint.
精彩评论