Why is Azure Data Factory SharePoint Online List Linked Service Connecting without Error, but not Showing Preview Data

huangapple go评论59阅读模式
英文:

Why is Azure Data Factory SharePoint Online List Linked Service Connecting without Error, but not Showing Preview Data

问题

我正在尝试在Azure Data Factory管道中使用SharePoint Online列表作为数据源。我可以连接到它,但没有显示数据。

背景:
根据Microsoft文档,我已经建立了Azure Data Factory的Copy Data Activity和Linked Service来实现这一目标:
Microsoft Docs

按照文档的指导,我建立了一个应用程序,设置了它在Azure Vault中的密钥,具有集成的运行时,并在SharePoint站点上为应用程序授予权限。现在它可以连接而没有错误,并且在Linked Service Connection选项卡中单击“List name”下拉列表时返回Azure Data Factory中资产的列表。

不起作用的是“预览数据”链接。单击后,它尝试获取数据,但返回一个空对象,并显示“没有数据可预览”的屏幕消息。(列表中有几百行数据。)

我尝试使用查询,并通过其语法确认它正在连接,甚至验证列表的所有列名 - 只是没有返回数据。

我漏掉了什么?

英文:

I am attempting to use a SharePoint Online list as a data source in an Azure Data Factory pipeline. I can get it to connect, but it shows no data.

Background:
I have established an Azure Data Factory Copy Data Activity and Linked Service to do so per the Microsoft documentation:
Microsoft Docs

As it instructs, I established an App, set up its secret in the Azure Vault, have an integrated runtime, and established the Apps permissions on the SharePoint site. It now connects without error and returns the list of assets in Azure Data Factory when clicking the "List name" drop down list in the Linked Service Connection tab.

What is not working is the "Preview data" link. After clicking, it attempts to get the data, but returns an empty object with the screen message of "No Data to Preview". (There are a couple of hundred rows in the list.)

Why is Azure Data Factory SharePoint Online List Linked Service Connecting without Error, but not Showing Preview Data

I explored using a query and confirmed through its syntax that it is connecting and even validating all column names of the List - it just is not returning data.

What am I missing?

答案1

得分: 1

I tried to reproduce the issue in my environment and able to get the data from SharePoint Online List and able to get the data to get the data from SharePoint Online List follow below steps:

  1. Register a application with the Microsoft Identity platform (Azure Active Directory). Take note of the following values, which you will use to define the associated service:
    • Application ID
    • Application key
    • Tenant ID
  2. Permit your registered application to access SharePoint Online. follow this Allow app to access SharePoint Online.

My lists and the no item in each list:

Why is Azure Data Factory SharePoint Online List Linked Service Connecting without Error, but not Showing Preview Data

In ADF I am using this list only which have 2 items:

Why is Azure Data Factory SharePoint Online List Linked Service Connecting without Error, but not Showing Preview Data

I am able to preview the data correctly.

Why is Azure Data Factory SharePoint Online List Linked Service Connecting without Error, but not Showing Preview Data


If still issue persist:

  • check your data if it is available in list, or in proper format.
  • Or raise a support ticket for deeper investigation.
英文:

I tried to reproduce the issue in my environment and able to get the data from SharePoint Online List and able to get the data to get the data from SharePoint Online List follow below steps:

  1. Register a application with the Microsoft Identity platform (Azure Active Directory). Take note of the following values, which you will use to define the associated service:
    • Application ID
    • Application key
    • Tenant ID
  2. Permit your registered application to access SharePoint Online. follow this Allow app to access SharePoint Online.

My lists and the no item in each list:

Why is Azure Data Factory SharePoint Online List Linked Service Connecting without Error, but not Showing Preview Data

In ADF I am using this list only which have 2 items:

Why is Azure Data Factory SharePoint Online List Linked Service Connecting without Error, but not Showing Preview Data

I am able to preview the data correctly.

Why is Azure Data Factory SharePoint Online List Linked Service Connecting without Error, but not Showing Preview Data


If still issue persist :

  • check your data if it is available in list, or in proper format.
  • Or raise a support ticket for deeper investigation.

答案2

得分: 0

我发现了我的错误。在SharePoint页面的权限配置对话框中,我替换了Scope参数,使用了基于我的SharePoint页面实例的字符串,这是我糟糕的假设。虽然这样可以建立连接并提供列表的名称而不出错,但它不会返回列表中的数据。

事实上,Scope参数的意图是原样输入,不要进行修改。这样做后,它运行得很完美。

注意:我是通过提出一个支持工单来学到这一点的,正如建议的那样。在Azure订阅下提交工单时,微软的支持非常出色!

英文:

I found the error of my ways. In the dialog where you configure the permissions at the SharePoint page, I was replacing the Scope parameter with a string based on my instance of SharePoint page-a poor assumption on my part. Although this would allow a connection without error and provide the names of the lists, it would not return the data from a list.

As found, the Scope parameter is intended to be typed exactly as is without modification. Doing that, it worked perfectly.

Why is Azure Data Factory SharePoint Online List Linked Service Connecting without Error, but not Showing Preview Data

Note: I learned this by putting in a support ticket as suggested. Microsoft's support is awesome when you put in a ticket under an Azure subscription!

huangapple
  • 本文由 发表于 2023年4月11日 01:54:41
  • 转载请务必保留本文链接:https://go.coder-hub.com/75979474.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定