Introduction
This posting walks through the process of configuring SharePoint Server 2010 farm Excel Services to use Secure Store Services and an unattached service account, when presented published Excel 2010 workbooks and workbook objects that connect to external data sources. Accomplishing this involves the following tasks:
Preparation
This posting has presented the steps necessary for how to setup SharePoint Server 2010 Excel Services to use Secure Store Services and the unattended service account when presenting Excel workbook objects, such as PivotCharts and tables. For additional detail on any topic discussed here, see the references below.
References
BI Services Series |
How to implement SharePoint 2010 Access Services |
How to setup Secure Store and BCS to access LOB data |
How to enable document conversion from Word to HTML in SharePoint 2010 |
How to set up Excel Services to use Secure Store Services and an unattended service account |
- Configuring a data access account;
- Configuring the farm Secure Store target application for the unattended service account;
- Configuring the farm's Excel Services Global Settings;
- Configuring a workbook to use the unattended service account when published and connecting to external data sources;
- Configuring this workbook to publish only user-defined workbook objects to Excel Services; and finally
- Testing our implementation.
Preparation
- Identify an Active Directory service account that will serve as the Excel services unattended service account. This must be a domain account. It may be an existing farm services account or a new one.
- For this posting, an existing farm services account, contoso\sp_app, will be used.
- Identify the target external data source to which Excel needs access.
- For this posting, the full version of the AdventureWorks database, version 2008R2, will be used.
- Identify a name that you will assign to the Secure Store service application.
- Create or identify a document library on the farm to which you want to publish a workbook.
- Launch SQL Server Management Studio.
- In the console tree, expand Security.
- Right-click on Logins, and then click New Login.
- Add the AD account, in this case, contoso\sp_app, and then select Windows Authentication.
- Select the User Mapping page; select the target database (in this case AdventureWorks Full); and then add the db_datareader role to this account:
- Click OK.
- This completes Step 1.
- Connect to Central Administration using a farm administrator account (this is critical).
- Go: Security > General Security > Configure service accounts.
- From the Credential Management dropdown, select Service Application Pool - SharePoint Web Services Default:
- Verify that Excel Services Application (Excel Services Application Web Service Application) is listed along with other service applications.
- Note down the account name associated with this service. For this posting, the service account is: contoso\sp_app.
- Click Cancel.
- Go: Application Management > Manage service applications. The Manage Service Applications page is displayed:
- Click on Secure Store Service. The Secure Store Service page is displayed:
- On the Edit ribbon, click the New button. The Create New Secure Store Target Application Target Application Settings page is displayed.
- Configure the new Secure Store Target Application. For this posting, the following configuration was used:
- Target Application ID: ExcelServicesUnattended.
- Display Name: ExcelServicesUnattended.
- Contact Email: Stephan.bren@contoso.com.
- Target Application Type: Group:
- Click Next. The Create New Secure Store Target Application Add Field page is displayed:
- Leave all settings default, and then click Next. The Create New Secure Store Target Application Specify the membership settings page is displayed.
- Enter user accounts who for administration and the unattended account that will be mapped to this secure store application:
- Click OK. The browser is returned to the Secure Store Service Target Application page, now displaying the new Target Application name:
- Check the new target application item listed, and then, on the Edit ribbon, click the Set Credentials button. The Set Credentials for Secure Store Target Application (Group) dialog appears.
- In this dialog, enter the same domain account and password that was used in Step 1: For this posting, these accounts are the same, but they need not be.
- Click OK.
- This completes Step 2.
- From Central Administration, go: Application Management > Manage Service Applications:
- Click Excel Services.
- Click Global Settings, and then scroll down to the External Data section.
- In the Application ID field, enter the same name that was assigned to the Target Application ID, back in step 2. For this posting, the Target Application ID is ExcelServicesUnattended:
- Click OK.
- This completes Step 3.
- Open the Excel 2010 workbook that you want to publish and that is connected to an external data source:
- On the Data ribbon, click the Connections button. The Workbook Connections dialog appears:
- Click the Properties button. The Connection Properties dialog appears:
- Check off all of the options that you see, and then select the Definitions tab:
- The Command Text and Command Type are custom. For additional information on these, see the Notes section, below. The SQL that you see there is the following:
- Click the Authentication Settings button. The Excel Services Authentication Settings dialog appears.
- Select None:
- Click OK. The Excel Services Authentication Settings dialog closes.
- Click OK again. The Connection Properties dialog closes.
- Click OK one more time. The Workbook Connections dialog closes.
- This completes this Step 4.
- Select the PivotChart that you want to be published.
- On the Layout ribbon, click the Properties button. The small Chart Name box appears just below the button.
- Enter a defined name for this chart object. For this posting, the defined name for the chart will be MyChart: Incidentally, this particular chart already has filters applied: the date range has between filtered to between 7/3/2005 and 7/30/2005. This filtering is not fixed and can be modified even after publication to the farm. We'll see how later.
- Press the Enter key. The little dialog closes, and now when you select the chart, the defined name for the chart will appear in the Name box.
- Select the File tab. The File options are displayed.
- On the File tab, select the Save & Send option, and then select Save to SharePoint: .
- Click the Publish Options button. The Publish Options dialog is displayed.
- On the Show tab, from the dropdown, select items in the Workbook; then check the MyChart and PivotTable2 objects listed below:
- Click OK. The dialog closes.
- This completes Step 5. All configuration has now been completed and it remains to test the implementation.
- Double-click where it states, Browse for a location. A Save As dialog appears:.
- Enter the URL to the document library identified or created at the beginning of this posting. For this posting, the URL is:
http://spdev12/AdventureWorks/Workbooks/
- Press the Enter key. After a few moments, the target SharePoint document library will be shown on the Save As dialog:
- Press the Enter key again. The dialog closes. After a few moments, a new browser instance is launched that displays the published workbook chart: Note that it displays the same filtered view that was previously configured in the local workbook copy itself.
- To change the filter and interact with the chart, look for the View dropdown, in the upper right corner, and then select PivotTable2 from this dropdown. The view changes to display the PivotChart's data:
- Change the filter settings as desired, and then return to the PivotChart (in this case MyChart) object to see the affect:
- This completes Step 6.
- Navigate to the target site dashboard page.
- On the Page ribbon, click the Edit Page button. The page enters edit mode:
- Click where it states, Add a Web Part, in the web part zone to which you want to add the image. The Browse ribbon gets the focus and displays tools for finding and selecting a web part.
- In the Categories panel, click Business Data, and then in the Web Parts panel, select Excel Web Access:
- Click the Add button. The Browse button is updated, and the page body is updated to display the added web part in edit mode:
- Click the link, Click here to open the tool pane. The Excel Web Access toolpane is displayed:
- Click the ellipsis box next to the Workbook field. The Select an Asset -- Webpage Dialog appears:
- In this dialog, navigate to the location of the published workbook. For this posting, the workbook is located in the Workbooks document library in the AdventureWorks site:
- Click OK. A progress indicator appears for a few moments, and then the dialog closes, with the workbook path now displayed in the Workbook field on the Excel Web Access toolpane:
- Click OK. The toolpane closes, and the PivotChart is now displayed in the web part:
- To expand the web part so as to eliminate the scroll bars, from the title toolbar, just above the web part, select the Edit Web Part option. The Excel Web Access toolpane opens.
- Scroll down to the Appearance section, and expand this section.
- Select Yes for both the Height and Width fields;
- enter 475 for height and
- enter 580 for width; and then
- select None from the Chrome Type dropdown:
- Click OK, and then on the Page ribbon, click the Stop Editing button; then select the Browse tab. The PivotTable is displayed as it would appear to any user:
- To remove the PivotChart toolbar (File, Data, Find, etc), go back to the Toolpane, and then select None from the Type of Toolbar dropdown in the Title Bar section. You might also want to uncheck All Workbook Interactivity in the Navigation and Interactivity section. After making these changes, the PivotChart displays as a simple image:
- This completes the Optional step.
This posting has presented the steps necessary for how to setup SharePoint Server 2010 Excel Services to use Secure Store Services and the unattended service account when presenting Excel workbook objects, such as PivotCharts and tables. For additional detail on any topic discussed here, see the references below.
References
- TechNet SQL Server 2008 R2
- The data connection uses Windows Authentication and user credentials could not be delegated. The following connections failed to refresh: PowerPivot Data
- This workbook contains one or more queries that refresh external data
- The data connection uses Windows Authentication and user credentials could not be delegated. The following connections failed to refresh: PowerPivot Data
- CodePlex SQL Server Product Samples
- TechNet SharePoint 2010
- Microsoft Office Excel 2010
- Refresh connected (imported) data
- View a named item in Excel Services
- Excel Web Access Web Part custom properties
- Using Excel Services to share pieces and parts of Excel workbooks
- Using charts and PivotChart reports in a workbook in the browser
- Blogs
- Step 4: Excel Services Authentication Settings dialog: Selecting None here is essential. By selecting None, Excel Services uses the unattended service account identity to establish the connection to the external data source.
- Step 5: Publish Options dialog: Selecting specific items will impact the user's online experience when viewing the published workbook later on. Selection of the appropriate objects here is important: if you want to only present the PivotChart, then only select the chart object and nothing else. If you want to publish the chart and also enable users to interact with the chart, you must select the chart object and the its data source, which in this case is the PivotTable2 object. The reason being that published PivotCharts cannot be made directly interactive. The way to work around this is to provide access to the underlying chart data, and the filter methods associated with that data. We'll see this later once the workbook objects are published.
- Optional: Select an Asset -- Webpage Dialog: note that you can navigate to any asset (workbook) within the site collection - not just to assets within the current site.
No comments:
Post a Comment