Forum Discussion

webportal's avatar
webportal
Impactful Individual
5 years ago
Solved

Error importing files from Sharepoint folder into data flow

Hello,

 

I'm trying to build a data flow to import and combine all the files inside a directory in a Sharepoint.

 

I'm using "Import from Sharepoint folder" button, and paste the following URL:

 

https://xxxx.sharepoint.com/sites/LOL/Documentos%20Partilhados/MyFolder/

 

Although this is returning the error:

 

Ocorreu uma exceção: DataSource.Error: Microsoft.Mashup.Engine1.Library.Resources.HttpResource: Falha do pedido: 
Versão de OData: 3 e 4, Erro: The remote server returned an error: (404) Not Found. (Not Found)
Versão de OData: 4, Erro: The remote server returned an error: (404) Not Found. (Not Found)
Versão de OData: 3, Erro: The remote server returned an error: (404) Not Found. (Not Found). (ID de Sessão: 2af3d25e-)

2 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    It could be because yopu are trying the fulll folder path. Try just the site root i.e 

    https://xxxx.sharepoint.com/sites/LOL

    This blog explains the steps to get multiple files from a sharepoint folder.

    https://powerbi.microsoft.com/en-us/blog/combining-excel-files-hosted-on-a-sharepoint-folder/

     

    PS: Please mark this post as a "solution"  if this helps solving the issue and/or hit the "thumbs-up" button if you found this insighful. Thanks.

    • webportal's avatar
      webportal
      Impactful Individual

      Anonymous thank you so much for helping!

       

      I've managed to combine the files stored in SP folder, the only thing is: if the files are stored in a OneDrive for business folder what URL should be used?