Forum Discussion
Adding INFO.VIEW.COLUMNS() to Model causes refresh error
- 1 year ago
Hi. Please try adding the code to another semantic model to verify if there is something odd about the model. According to the docs, you can use them in a calculated table and it will refresh.
https://learn.microsoft.com/en-us/dax/info-view-columns-function-dax#remarks
Let's try that to check if there is something else at the model.
Make sure the owner is also a workspace admin just in case, because this is written too: For Power BI semantic models, just like DMVs, the INFO DAX functions require semantic model admin permissions. Some also require workspace admin permissions.
I hope that helps,
Does the refresh still work in Power BI Desktop but fail only after publishing to the Service? That’s usually a sign of metadata or connector-related issues. In SAP InfoViews, this can happen if certain fields have metadata (like units or hierarchies) that Power BI Service doesn't handle well.
Try removing just the new columns and test again. If it works, reintroduce them one at a time to isolate the problem field. Also check if you’re using a gateway with the right credentials and driver versions.