RE: AX2012 R2 - Powerview not working. (Report datasource %1 was not found)
Hello,
The reason why you have this problem ("Report data source %1 was not found") is because Internal URL for Enterprise Portal site
Please see explanation how to fix this problem below ...
For example, on Demo VM PowerView reports and data sources are in "Power View Reports" on "Microsoft Dynamics AX Enterprise Portal" Web site
When you click "Analyze Data" button on particular List page in AX the system will programmatically compose the URL like this: dynamicsax.contoso.com/.../Accounts%20payable%20cube.rsds and launch web browser so you can continue with PowerView Design experience based on cube (cube name) required
The basis for this URL will be Internal URL for Enterprise Portal site
Now let's imagine that your Internal URL for Enterprise Portal site is set to "dynamicsax.contoso.com/.../DynamicsAx
Because of the code Classes\SrsReportHelper\Methods\getPowerViewDataSourceUrlClient
…
siteUrl = siteUrl + “/”;
…
the system will try to add a slash at the end of it and then pass it further down to another method to compose the final URL. However URL dynamicsax.contoso.com/.../DynamicsAx (with slash at the end) is already erroneous. And if you launch it by itself in web browser you will get "You cannot view data on this page because you are not a registered user in Microsoft Dynamics AX. Contact your Microsoft Dynamics AX administrator." error
When exception occurs during URL composition the system sets the URL to empty string and you see "Report data source %1 was not found"
Thus in order to fix the problem please change Internal URL for Enterprise Portal site to dynamicsax.contoso.com/.../DynamicsAx, the system then will add slash at the end and successfully compose URL for PowerView
Enjoy!
/Alex