Skip to content

Commit a2d938b

Browse files
authored
Merge pull request #186109 from Clare-Zheng82/0125-Add_SPO_list_TSG
Add SPO List TSG
2 parents c249e44 + 8ff417f commit a2d938b

File tree

2 files changed

+34
-1
lines changed

2 files changed

+34
-1
lines changed

articles/data-factory/connector-troubleshoot-sharepoint-online-list.md

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ author: jianleishen
66
ms.service: data-factory
77
ms.subservice: data-movement
88
ms.topic: troubleshooting
9-
ms.date: 10/01/2021
9+
ms.date: 01/25/2022
1010
ms.author: jianleishen
1111
ms.custom: has-adal-ref, synapse
1212
---
@@ -25,6 +25,39 @@ This article provides suggestions to troubleshoot common problems with the Share
2525

2626
- **Recommendation**: Check your registered application (service principal ID) and key to see whether they're set correctly.
2727

28+
## Connection failed after granting permission in SharePoint Online List
29+
30+
### Symptoms
31+
32+
You granted permission to your data factory in SharePoint Online List, but you still fail with the following error message:
33+
34+
`Failed to get metadata of odata service, please check if service url and credential is correct and your application has permission to the resource. Expected status code: 200, actual status code: Unauthorized, response is : {"error":"invalid_request","error_description":"Token type is not allowed."}.`
35+
36+
### Cause
37+
38+
The SharePoint Online List uses ACS to acquire the access token to grant access to other applications. But for the tenant built after November 7, 2018, ACS is disabled by default.
39+
40+
### Recommendation
41+
42+
You need to enable ACS to acquire the access token. Take the following steps:
43+
44+
1. Download [SharePoint Online Management Shell](https://www.microsoft.com/download/details.aspx?id=35588#:~:text=The%20SharePoint%20Online%20Management%20Shell%20has%20a%20new,and%20saving%20the%20file%20to%20your%20hard%20disk.), and ensure that you have a tenant admin account.
45+
1. Run the following command in the SharePoint Online Management Shell. Replace `<tenant name>` with your tenant name and add `-admin` after it.
46+
47+
```powershell
48+
Connect-SPOService -Url https://<tenant name>-admin.sharepoint.com/
49+
```
50+
1. Enter your tenant admin information in the pop-up authentication window.
51+
1. Run the following command:
52+
53+
```powershell
54+
Set-SPOTenant -DisableCustomAppAuthentication $false
55+
```
56+
:::image type="content" source="./media/connector-troubleshoot-guide/sharepoint-online-management-shell-command.png" alt-text="Diagram of Azure Data Lake Storage Gen1 connections for troubleshooting issues.":::
57+
58+
1. Use ACS to get the access token.
59+
60+
2861
## Next steps
2962

3063
For more troubleshooting help, try these resources:
27.6 KB
Loading

0 commit comments

Comments
 (0)