Process CSV file uploaded SharePoint from MS Forms in ADF Pipeline

Steve Dunker 40 Reputation points
2024-01-12T23:28:47.54+00:00

I need to be able to upload a file along with some questions, then run a ADF Pipeline that creates a new file based on the csv uploaded and the answers to the questions. My first thought was to leverage Azure Blog Storage to get the files and pass parameters for the specific file and answers to the questions. I have the pipeline and dataflow created and works great. Unfortunately, I can't find a way to get the file from the Forms location in One Drive for Biz or SharePoint to Blob storage. So I thought I would try a different direction such as directly accessing the file from SharePoint. I cant figure out the right way to connect the dataset to the file. Keeping in mind I will be passing in a different filename each time the pipeline runs. Any ideas would be appreciated.

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
Microsoft 365 and Office | SharePoint | For business | Windows
{count} votes

2 answers

Sort by: Most helpful
  1. Amira Bedhiafi 41,111 Reputation points Volunteer Moderator
    2024-01-15T12:44:34.7866667+00:00

    Based on this old thread , you can copy file from SharePoint Online by using Web activity to authenticate and grab access token from SPO, then passing to subsequent Copy activity to copy data with HTTP connector as source. More links : https://learn.microsoft.com/en-us/azure/data-factory/connector-sharepoint-online-list?tabs=data-factory#copy-file-from-sharepoint-online https://techcommunity.microsoft.com/t5/azure-data-factory-blog/sharepoint-online-multiple-files-folder-copy-with-http-connector/ba-p/2480426


  2. Smaran Thoomu 32,525 Reputation points Microsoft External Staff Moderator
    2024-01-29T12:57:26.8333333+00:00

    Hi @Steve Dunker

    It looks like the error message is indicating that the credentials or permissions are not correct. Here are some things to check:

    1. Make sure that the credentials you are using to authenticate to SharePoint are correct. You can test this by trying to access the SharePoint site directly using the same credentials.
    2. Make sure that the App Registration has the correct permissions to access the SharePoint site. You can check this by going to the App Registration in the Azure portal and checking the API permissions.
    3. Make sure that the redirect URL in the App Registration matches the redirect URL in the Linked Service. The redirect URL should be the URL of the page that the user is redirected to after they have authenticated.
    4. Make sure that the Linked Service is configured correctly. You can check this by going to the Linked Service in the Azure portal and checking the properties.

    Regarding the redirect URL, it should be the URL of the page that the user is redirected to after they have authenticated. In your case, it looks like the URL you provided is the URL of the SharePoint folder containing the files you want to process. This may not be the correct URL to use as the redirect URL. You should check the documentation for the SharePoint Online connector to see what the correct format for the redirect URL is.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.