Skip to content

Commit 2c4781a

Browse files
committed
2 parents b1eb85c + 8af2acc commit 2c4781a

27 files changed

+795
-1618
lines changed
Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
---
2+
title: Maintenance mode for client-side web parts
3+
ms.date: 12/18/2017
4+
ms.prod: sharepoint
5+
ms.assetid: 3ebd2a11-8291-4228-add0-9e0cd899dd3c
6+
---
7+
8+
# Maintenance mode for client-side web parts
9+
10+
_**Applies to:** Office 365_
11+
12+
When working with client-side web parts, you can load them in maintenance mode. The maintenance mode can be helpful when trying to debug issues related to web parts placed on the page.
13+
14+
## Switch to maintenance mode
15+
16+
> [!NOTE]
17+
> In order to load a page in the maintenance mode, you have to have edit permissions for that specific page.
18+
19+
To switch to the maintenance mode, navigate to the page and in the URL append `?maintenancemode=true`, for example:
20+
21+
```text
22+
https://contoso.sharepoint.com/sites/team?maintenancemode=true
23+
```
24+
25+
To leave the maintenance mode, remove `?maintenancemode=true` from the URL and reload the page.
26+
27+
## Available information
28+
29+
The maintenance mode shows various information about each web part on the page.
30+
31+
### Web part summary
32+
33+
When in maintenance mode, for each web part you will see the following summary information:
34+
35+
![Web part summary information displayed in maintenance mode](../images/maintenance-mode-summary.png)
36+
37+
Property|Description
38+
--------|-----------
39+
Alias|Web part alias
40+
Id|The unique ID of the web part
41+
InstanceId|The ID of a specific instance of a web part (that is, if you have two more of the same web parts on a page, they will each have the same web part ID, but a different instance ID.
42+
IsInternal|Indicates whether the web part was made by Microsoft or a third party. If `true`, it is made by Microsoft. If `false`, it is made by a third party.
43+
Version|The version number of the web part.
44+
Environment|Enumeration indicating the environment on which the web part is running. Possible values: `1` - Local Workbench, `2` - SharePoint
45+
UserAgent|A string that contains information about the device and software in use (such as browser type and version).
46+
47+
### Web part manifest
48+
49+
To get more information about the web part, switch to the **Manifest** tab.
50+
51+
![Web part manifest information displayed in maintenance mode](../images/maintenance-mode-manifest.png)
52+
53+
By exploring the manifest information, you can learn details such as:
54+
55+
- where the web part bundle is hosted
56+
- which external scripts is the web part loading and from where
57+
- what version of the SharePoint Framework has the web part been built on
58+
- which components of the SharePoint Framework does the web part use
59+
60+
This information can be invaluable when trying to find a reason why the particular web part is malfunctioning.
61+
62+
### Web part data
63+
64+
Another piece of information available in the maintenance mode, is web part data.
65+
66+
![Web part data information displayed in maintenance mode](../images/maintenance-mode-data.png)
67+
68+
Using the information from the **Data** tab, you can see the configuration for each web part. This is helpful when trying to reproduce errors reported by users which could be caused by a specific web part configuration.
69+
70+
If the web part [integrates its properties with SharePoint](../spfx/web-parts/guidance/integrate-web-part-properties-with-sharepoint.md), the data section shows the types and values that are passed to SharePoint for further processing.
71+
72+
## Considerations
73+
74+
- the maintenance mode works for client-side web parts placed on both modern and classic SharePoint pages. See the [Open and use the web part maintenance page](https://support.office.com/en-us/article/Open-and-use-the-web-part-maintenance-page-eff9ce22-d04a-44dd-ae83-ac29a5e396c2#PickTab=2016,_2013) support article, to get more information about opening classic web parts in maintenance view
75+
- to open page in maintenance mode, you have to have edit permissions for that page
76+
- when in maintenance mode, web part code is not being executed and you cannot edit web part properties
77+
- in maintenance mode, you can delete or move web parts on the page
78+
- the maintenance mode shows only information about web parts. You cannot use it to show information about SharePoint Framework extensions that are executed on the page
79+
- switching to maintenance mode only disables executing web part code. Any SharePoint Framework extensions registered on the page will still execute
80+
81+
## See also
82+
83+
- [Open and use the web part maintenance page](https://support.office.com/en-us/article/Open-and-use-the-web-part-maintenance-page-eff9ce22-d04a-44dd-ae83-ac29a5e396c2)

docs/images/maintenance-mode-data.png

43.4 KB
Loading
76.9 KB
Loading
39.8 KB
Loading

0 commit comments

Comments
 (0)