|
As Microsoft just released Office 2010 beta, SharePoint 2010 server beta and PowerPivot for SharePoint, many of you will want to test this setup in your own environment. Here you will find step by step instructions on how to build such environment.
This article assumes that you want to build PowerPivot for SharePoint environment on a single machine for demo or evaluation purpose. PowerPivot for SharePoint requires that your environment would have Active Directory configured as domain accounts are used for authentication because local machine accounts are not supported. If your demo environment already has domain setup, then you can skip few domain related steps.
First of all I would like to point that Microsoft already has very good documentation on how to setup PowerPivot for SharePoint here. But that document describes multiple scenarios (farms, single or multiple machines, etc), so I decided describe what you need to do exactly to setup PowerPivot for SharePoint 2010 on a single box. I also included all fixes that you need to apply for November CTP (CTP3) installation.
So here are steps on how to setup PowerPivot for SharePoint 2010 on a single box (testing environment):
- Install new Windows 2008R2 or Windows 2008 Server SP2, 64bit machine and apply latest security patches.
- Add role "Active Directory Domain Services" and promote machine to domain controller using dcpromo.exe. During this you will be also asked to add DNS role to your machine. (skip this step if you have domain setup on another machine)
- In your active directory create following users:
SPAdmin - SharePoint administrator account SQLService - domain accounts that will be used to run SQL Server/SSAS services Note - you do not need to add these accounts to any groups.
- Add Server feature "Desktop Experience" ("Server Manage"->"Features"->"Add Feature") so you can work from server as workstation.
- Make sure that account you logon to do installation is domain administrator.
- Start Sharepoint setup and choose option "Install software Prerequisites". Make sure that setup finished successfully. If you do not have connection to Internet, then you might need to download to your machine certain packages yourself. Here is info on how to do that.
Note: For CTP3 if you already have Power-Shell 1.0 installed on your machine, this step will fail during PowerShell V2 (CTP3) install. You have to manually uninstall PowerShell. For Windows 2008 you can do that from "Server Manage" - choose Features then "Remove Features" and then uncheck "Windows PowerShell".
- Install WCF hot fix.
- If you setup domain controller on the same machine that will run SharePoint, the following Windows PowerShell command would need to be run to enable Sandboxed Solutions.
Note: Script was written by Jie Li and copied from here.
$acl = Get-Acl HKLM:\System\CurrentControlSet\Control\ComputerName $person = [System.Security.Principal.NTAccount]"Users" $access = [System.Security.AccessControl.RegistryRights]::FullControl $inheritance = [System.Security.AccessControl.InheritanceFlags]"ContainerInherit,ObjectInherit" $propagation = [System.Security.AccessControl.PropagationFlags]::None $type = [System.Security.AccessControl.AccessControlType]::Allow $rule = New-Object System.Security.AccessControl.RegistryAccessRule($person, $access,$inheritance, $propagation, $type) $acl.AddAccessRule($rule) Set-Acl HKLM:\System\CurrentControlSet\Control\ComputerName $acl
Here are steps on how you can run this script:
copy script to file sp.ps1 in command line enter "PowerShell" enter "Set-executionpolicy unrestricted" (without double quotes) enter "C:\Scripts\sp.ps1" (without double quotes) enter "Set-executionpolicy restricted" (without double quotes) enter "Exit" (without double quotes)
- Start SharePoint setup.
Note: it is very important that you choose correct setup options, otherwise you will not be able to setup PowerPivot for SharePoint in the later steps.
- In the "Choose the Installation you want" click on "Server Farm" button. It is important that you do not click on "Standalone" button, even when you are installing standalone SharePoint server (!)
- In the next window "Server type" choose option "Complete - Install all components. Can add servers to form a SharePoint farm".
- After you will press "Install Now" button, SharePoint installation will begin. After installation completes, you will see window "Run configuration wizard". Un-check option "Run the SharePoint Products and Technologies Configuration Wizard now" and click close.
- Now it is time to configure SharePoint for PowerPivot. This is done using SQL Server 2008R2 setup (!). You can download SQL Server 2008R2 November CTP here.
- Start SQL Server 2008R2 setup.
- In the "Setup Role" window choose "Analysis Services with SharePoint Integration" and for "Add Gemini service to:" option choose "New farm".
Picture 1

- In the "New SharePoint Farm Configuration" window specify
User name: <domain name>\SPAdmin (user created in previous step) Password: <your password> Pass phrase: <your pass phrase> Confim: <your pass phrase> Leave port number generated for you
Picture 2

- In the "Server configuration" \ "Specify the service accounts and collation configuration" window specify accounts used to run Agent, SQL and SSAS services. You can use for that domain accont "<domain>\SQLService" created in one of the previous step.
- In the "Database Engine Configuration" window add current user and other users (as required) to the "SQL Server Administrators" list.
- In the "Analysis Services Configuration" window add current user and other users (as required) to the "Analysis Administrators" list.
- Setup will start.
- If your domain controller is on another machine, then you are done and you do not need to follow steps below. Just wait for setup to finish.
- If you are running domain controller on the same machine, you are not done yet. It is very important that you monitor your setup, as you might have to do some tricks, to make it work!
- If you are running this on virtual machine (Hype-V), then I would recommend that you create your machine snapshot just before your setup will reach half way, in case you will need this recovery point.
- There is a know issue when you install PowerPivot on domain controller described here. Basically in the middle of the setup your service "SQL Server Analysis Services (GeminiBI)" might change logon credentials from the domain account to "Local system account". You should prepare for that and change logon credentials back to domain account as described in the post above. Monitor your setup when it reaches approximately this point:
Picture 3

Then refresh service list every few seconds till you see that service account changed and reset it back
Picture 4

- After you changed service account restart service and let setup doe its job. After few minutes setup will finish.
- You can check your new SharePoint site that has integrated PowerPivot by typing in your server name in Internet Explorer:
Picture 5

Added Nov 25, 2009
After installation try to create and deploy PowerPivot to SharePoint. Check if during interaction with published PowerPivot you are getting error message:
"Excel Web Access" An error occurred during an attempt to establish a connection to the external data source. The following connections failed to refresh: Sandbox
If you are getting error message above, then add your SharePoint administrator account (in our case account is <domain>\SPAdmin) to the active directory user group "Domain Admins" and restart your machine.
Added Nov 27, 2009 - Big thanks to Russell Christopher for this tip!
You might encounter issue, when you deploy PowerPivot report to PowerPivot gallery, you might see that gallery preview is not generated. When you hover over report in the gallery, you might notice following error: "An Error Occued while Capturing Snapshots for this Document".
Also, if you review [SystemDrive]:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\LOGS\gemini.log file, you might notice following error text:
11/26/2009 8:08:37 PM : VidasPPTest-2.xlsx - is Added in PowerPivot Gallery located at http://win2008r2-test1 by VD\administrator . . 11/26/2009 8:08:38 PM : VidasPPTest-2.xlsx - Refresh/Update loop succeeded! (vti_Snapshots) . 11/26/2009 8:08:39 PM : VidasPPTest-2.xlsx - is Updated in PowerPivot Gallery located at http://win2008r2-test1 by VD\administrator . . 11/26/2009 8:08:39 PM : VidasPPTest-2.xlsx - Pending operation detected . 11/26/2009 8:13:36 PM : VidasPPTest-2.xlsx - SUCCESS: GetSnapshot self-terminated (after 298.3935967 seconds) . 11/26/2009 8:13:36 PM : VidasPPTest-2.xlsx - Parsing .info file (C:\Windows\TEMP\50035e2b_9a62_483f_83c6_8f3e992f5272.info) . 11/26/2009 8:13:36 PM : VidasPPTest-2.xlsx - INFO: 'http://win2008r2-test1:80' was found in a different trust zone (URLZONE_INTERNET). Attempting to remove from URLZONE_INTERNET. . 11/26/2009 8:13:36 PM : VidasPPTest-2.xlsx - INFO: 'http://win2008r2-test1:80' was removed from (URLZONE_INTERNET) . 11/26/2009 8:13:36 PM : VidasPPTest-2.xlsx - INFO: 'http://win2008r2-test1:80' cannot be added to the list of trusted intranet sites: -2147024890 . 11/26/2009 8:13:36 PM : ERROR: VidasPPTest-2.xlsx - INFO: System.TimeoutException: The operation has timed out. . 11/26/2009 8:13:36 PM : VidasPPTest-2.xlsx - Snapshots:(0) . 11/26/2009 8:13:36 PM : VidasPPTest-2.xlsx - Refresh/Update loop succeeded! (vti_Snapshots) . 11/26/2009 8:13:37 PM : VidasPPTest-2.xlsx - is Lazily refreshed in PowerPivot Gallery located at http://win2008r2-test1 by VD\administrator . . 11/26/2009 8:13:37 PM : VidasPPTest-2.xlsx - Refresh/Update loop succeeded! (vti_RGTrigger) . 11/26/2009 8:13:37 PM : VidasPPTest-2.xlsx - is Updated in PowerPivot Gallery located at http://win2008r2-test1 by VD\administrator . . 11/26/2009 8:13:37 PM : VidasPPTest-2.xlsx - Refresh/Update loop succeeded! (vti_Snapshots) .
If you encountering this issue, you have to follow these steps:
- Log off from your SharePoint machine
- Login to your SharePoint machine with the SharePoint admin account. In our guide we used account <domain name>\SPAdmin
- Start Internet Explorer and add your SharePoint website to the trusted website list.
- Restart your machine
- Login back to your machine with regular account and try to deploy another report to PowerPivot gallery. Now you should see new report in PowerPivot gallery preview.
Added Nov 28, 2009 - Big thanks to Mariano Teixeira Neto (Microsoft) for this fix!
After all this setup you might still experience issues with data refresh. Check your SharePoint log to see if you can find following reported error logged every minute:
EXCEPTION: System.UnauthorizedAccessException: Access to the port is denied. at System.IO.Ports.InternalResources.WinIOError(Int32 errorCode, String str) at System.Threading.Semaphore.OpenExisting(String name, SemaphoreRights rights) at Microsoft.AnalysisServices.SharePoint.Integration.DataRefreshService.Execute() 4f7eb9c8-186a-4496-a76a-93af1d275504
Also, if you will try to schedule report refresh, you will not see any errors, but your report will not be refreshed.
To fix this data refresh issue you need to addSharePoint addministrator account (in our case <domain>\SPAdmin to the user group SQLServerMSASUser$MACHINENAME$DBINSTANCE. After that restart your machine and you can schedule your PowerPivot workbook data refresh.
At this point you should be done and your PowerPivot for SharePoint environment should be ready for your testing. Enjoy!
Additional resources:
If you found this article useful - please scroll to the top and rate it (option just below article title). Every rating is very much appreciated!
|
In my case when setup starts I saw that service account was domain account - that is what I want. Just very close to the end that account changed to local system account. So when account is still domain account, there is nothing you can change it too. But this area is quite tricky - not everybody experienced that account switch, I am not sure what causes it. In any way, I am sure this will be fixed for RTM release.
Thanks for the excellent manual. It installed flawlessly. I do have one remark though for this section:
..."SQL Server Analysis Services (GeminiBI)" might change logon credentials from the domain account to "Local system account"...
I didn't see it change during the setup. Because I probably wasn't patient enough I looked at the properties and changed it before the setup changed it during the installation. Maybe its a suggestion that you change the logon account as soon as the service starts, in stead of changing it when the setup reverts it to a system account.
Thanks!!!
Gratefully,
Matt
Could you create new forum topic on this site and attach zipped log file that you created during error. And let me know in this forum post time when this error happen. I would like to see that error log to see if there are more log entries. Also can you include Gemini.log file to that zip file too?
There is no way to attach files to the comments on articles, so forum topic would be easiest way for that.
All configurations are default in Sharepoint, as instructed by this guide, except your last post that I tweaked a little performance for PowerPivot (see previous Vidas reply).
Have you confirmed that your SharePoint + PowerPivot installation was a success? Are you able to browse even empty SharePoint document library?
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\LOGS\%SERVERNAME%-%DATE%-%HOUR%
Also, my file has only 4 MB.
Name=Request (GET:http://produtos:33708/Disec/_layouts/xlviewer.aspx?id=/Disec/Shared%20Documents/2010_BI.xlsx&Source=http%3A%2F%2Fprodutos%3A33708%2FDisec%2FShared%2520Documents%2FForms%2FAllItems%2Easpx&DefaultItemOpen=1)
Site=/
ExcelWebRender.SetSPThemeingInformation: The webThemeUrl is empty. Unable to retrieve theme information from SharePoint
ExcelWebRenderer.OnLoad: Starting loading external EWR
User=LAB\Administrator
ServerSession.ExecuteWebMethodCore: sending request of type OpenWorkbook, to server=http://PRODUTOS:32843/de596a1d6ab443c8afc4f78f00e283e7/ExcelService*.asmx, session=, state id=-1, health score=0, error delta=0
MossHost.GetEndpointAddress: Server endpoint Uri: http://produtos:32843/de596a1d6ab443c8afc4f78f00e283e7/ExcelService.asmx.
WcfSendRequest: RemoteAddress: 'http://produtos:32843/de596a1d6ab443c8afc4f78f00e283e7/ExcelService.asmx' Channel: 'Microsoft.Office.Excel.Server.CalculationServer.Proxy.IExcelServiceSoap' Action: 'http://schemas.microsoft.com/office/Excel/Server/WebServices/ExcelServerInternalService/ExcelServiceSoap/OpenWorkbook' MessageId: 'urn:uuid:d158b4af-5869-4890-986a-aa44659afc03'
WcfReceiveRequest: LocalAddress: 'http://produtos.lab.internal:32843/de596a1d6ab443c8afc4f78f00e283e7/ExcelService.asmx' Channel: 'System.ServiceModel.Channels.ServiceChannel' Action: 'http://schemas.microsoft.com/office/Excel/Server/WebServices/ExcelServerInternalService/ExcelServiceSoap/OpenWorkbook' MessageId: 'urn:uuid:d158b4af-5869-4890-986a-aa44659afc03'
ECS RequestId=320
ExcelService.LogRequest: starting request of type OpenWorkbook. Caller ip=fe80::3195:3e7e:76da:420c%10
User=0#.w|lab\administrator
SessionSite.SetSession: Setting the session for the session site. WorkbookUrl=http://produtos:33708/Disec/Shared Documents/2010_BI.xlsx SessionId=1.V22.18y7vKt3XQ+GMSj55Yucwb90.5.en-US5.en-US73.+0180#0000-02-06-02T23:59:59:0999#+0000#0000-10-06-03T23:59:59:0999#-006036.a4e59549-cc03-4e38-ac22-626674bb9be31.N
SessionManager.IncrementSessionsPerUser: There are 1 active users
SessionManager.GetSessionAndMarkUsed: Created Session id=1.V22.18y7vKt3XQ+GMSj55Yucwb90.5.en-US5.en-US73.+0180#0000-02-06-02T23:59:59:0999#+0000#0000-10-06-03T23:59:59:0999#-006036.a4e59549-cc03-4e38-ac22-626674bb9be31.N, ViewOnly=True, caller=fe80::3195:3e7e:76da:420c%10, session site count=2
Leaving Monitored Scope (EnsureListItemsData). Execution Time=15.783849623346
Leaving Monitored Scope (ExecuteWcfServerOperation). Execution Time=386.075325215914
Document=http://produtos:33708/Disec/Shared%20Documents/2010_BI.xlsx
PF_CHECK_ERROR returned 'critical hresult error' 0x80004005 ; Stack Trace:NA
PF_CHECK_ERROR returned 'critical hresult error' 0x80004005 ; Stack Trace:NA
PF_CHECK_ERROR returned 'critical hresult error' 0x80004005 ; Stack Trace:NA
(0): location: (0) condition: StackTrace: at Microsoft.Office.Server.Native.dll: (sig=6c07bb41-0504-4d31-83da-11d9dbe927e7|2|microsoft.office.server.native.pdb, offset=20391) at Microsoft.Office.Server.Native.dll: (offset=208ED) at xlsrv.dll: (sig=406ddd3c-af52-4f1f-8a9f-10e49305417d|2|xlsrv.pdb, offset=4BFC80) at xlsrv.dll: (offset=744261) at xlsrv.dll: (offset=7444C1) at xlsrv.dll: (offset=17ED32) at xlsrv.dll: (offset=4C1FD7) at xlsrv.dll: (offset=4AAD04) at xlsrv.dll: (offset=487C34) at mscorwks.dll: (sig=9118f8e3-5dd9-4d2f-86f6-957055536f8a|1|mscorwks.pdb, offset=2D0D77)
Watson bucket parameters: SharePoint Server 2010, ULSShipAssert12, f6hp, 14.0.4536.0
PF_CHECK_ERROR returned 'critical hresult error' 0x80004005 ; Stack Trace:NA
Result=Id=InternalError; Microsoft.Office.Excel.Server.CalculationServer.SessionException: An error has occurred. at Microsoft.Office.Excel.Server.CalculationServer.CachedRangeXml.Microsoft.Office.Excel.Server.CalculationServer.ICachedFileProvider.SaveFile(CachedFile cachedFile) at Microsoft.Office.Excel.Server.CalculationServer.CachedFile.SaveFile(ICachedFileProvider fileProvider) at Microsoft.Office.Excel.Server.CalculationServer.LocalDiskCache.ReserveCachedFileAndMarkUsed(FileId fileId, ICachedFileProvider fileProvider, Boolean replaceExistingFile) at Microsoft.Office.Excel.Server.CalculationServer.CachedRangeXml.GetXml() at Microsoft.Office.Excel.Server.CalculationServer.UserWorkbook.GetRangeXml(Int32 stateId, VisibleSheetRange visibleSheetRangeRequest, GetRangeXmlO
Please check folder:
[SystemDrive]:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\LOGS\
There will be multiple files in that folder. PowerPivot related stuff will be in Gemini.log file, but there will be SharePoint log file with timestamp that will also might have explanation. SharePoint file is quite large, so it is not that easy to find that error log. So make sure you know exact error message time and then review log entries for that time.
Changing those settings didnt fix this issue.
Where can I find logs?
Is your workbook bigger than 50MB? By default SharePoint allows to upload maximum up to 50MB file. But you can change that:
http://social.msdn.microsoft.com/Forums/en-US/sqlkjpowerpointforsharepoint/thread/01a6e85a-3535-4a06-b402-08082be76b96
If that is not your problem, you have to check log file and see error message recorded by SharePoint at the time of publishing.
"Excel Web Apps
An error has occurred.
Try Again"
Configuration error description: Feature definition with Id f8c51e81-0b46-4535-a3d5-244f63e1cab9 failed validation, file 'Gemini\Actions.xml', line 70, character 10: The 'CommandAction' attribute is not declared.
Appear to have success on the 4th try!
Simply could not have done it without you.
You rock.
Thanks,
-Greg
Rebuild the OS it is....then follow these instructions EXACTLY.
If you still have problems, I would consider just rebuilding OS. I found that it is quite easy and quick to install Win2008 or Win2008R2. You can use evaluation edition from Microsoft website, and then extend that evaluation multiple times.
http://support.microsoft.com/kb/948472.
Usually it is more than enough for such testings.
I completely uninstalled & reinstalled sql server.
Came back with an error that I'm not seeing on the reported problems page.
It's saying that the web.config is missing from the IIS Web Site.
Guess I will uninstall again.
Regards,
Greg
I don't think fact that you used your domain account instead of SPAdmin makes difference.
Check this post: http://powerpivotgeek.com/server-installation/reported-problems/, specifically "Various errors after a previous uninstall fails when running NEW FARM install again". There is workaround for your reported error mesage IF you previously uninstalled SharePoint/SSAS integration and this is your second attempt to install.
And just to clarify, when you create new user, option "change password on first login" should be unchecked.
You were right (as ususal) I had unchecked the "user must change password on login".
So I was able to get by that hurdle. Thanks!
Next I was hit userpassword config issues when i tried to use your SQLService account (again went back & changed to prompt for password)
Here, perhaps I made a mistake because I just used my admin account (not SPAdmin) to specifiy the service accounts and collation config's"
After this the install continued & seemed to be going fine as I awaited the logon credentials to revert to the local system account.
However, that never happened it stayed as admin but changed to disabled (around the 40 minute mark)& i can't start or do anything with it.
Now it says that it can't "load file or assembly 'microsoft.analysisservices.hsarepoint.integration, version = 10.0.0.0 or one of its dependencies. The system cannot find the file specified.
Regards,
-Greg
- Are you using domain account? You MUST use domain, local machine accounts are not allowed
- When you created these users, have you uncheck box "User must change password on logon"? If so, you will have problem. Try to logon using this user to your domain and see
Vidas M.
can's seem to get past the new sharepoint farm configuration (picture 2)..it says the credentials i provided for the farm account are not valid...hmm, any ideas?..headed to bed now...will take it up tomorrow.
Thanks!
I have finally solved the issue.
There is a missing step: activating the feature, creating an application in the central admin!
Now I have another access / delegation issue to solve...
But I'm suffering an error after the install.
I install SSAS into an existing farm.
I create a power pivot site
but going into the powerpivot gallery raise this error:
Could not load type 'Microsoft.AnalysisServices.SharePoint.Integration.ReportGalleryView'
any idea?