Moving Files on premise from Logic Apps

Doug Parkhouse 6 Reputation points
2020-10-22T15:27:51.307+00:00

From this Arcicle:
https://learn.microsoft.com/en-us/azure/connectors/connectors-create-api-sharepoint

It lists: SharePoint Online or in SharePoint Server on premises
and that we can
Create, copy, update, or delete files

However when using a logic app over an on premise gateway to on site Sharepoint server, when trying to copy a file we receive the error:

"This copy operation is not supported when using this with the On-Premises Data Gateway"

This seems to be the same for Move file as well. This seems somewhat fundamental to the use of Logic apps and the on-premise gateway. Is there something obvious I am missing or is the article incorrect in stating this is supported for both online and on-prem.

Thanks

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
2,854 questions
SharePoint Server Management
SharePoint Server Management
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Management: The act or process of organizing, handling, directing or controlling something.
2,811 questions
{count} votes

4 answers

Sort by: Most helpful
  1. Jerryzy 10,566 Reputation points
    2020-10-23T07:31:41.393+00:00

    Hi @Doug Parkhouse ,

    I'm using the SharePoint Server 2016 On-Premise, configured on-premise data gateway.

    If using Copy file action, it will also meet the same error:

    34474-snipaste-2020-10-23-15-19-06.png

    If I use Copy file (deprecated), then it's working to copy file in On-Premise environment:

    ![34446-snipaste-2020-10-23-15-21-26.png][2]

    ![34460-snipaste-2020-10-23-15-29-28.png][4]

    34564-snipaste-2020-10-23-15-30-19.png

    34435-snipaste-2020-10-23-15-30-30.png


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    [2]: /api/attachments/34446-snipaste-2020-10-23-15-21-26.png?platform=QnA [4]: /api/attachments/34460-snipaste-2020-10-23-15-29-28.png?platform=QnA

    0 comments No comments

  2. Doug Parkhouse 6 Reputation points
    2020-10-23T08:12:29.607+00:00

    @Mike Urnun It is sharepoint on prem 2019

    @Jerryzy-MSFT Will try this this morning and see if it works


  3. Jerryzy 10,566 Reputation points
    2020-10-23T09:49:52.987+00:00

    Hi @Doug Parkhouse ,

    This action is used to copy file between library folders within same site and only copy file which isn't including metadata, as in the parameter only single site url provided.

    A workaround is using SharePoint Event Receiver to copy file into other site using SharePoint Server Object Model:

    Copy files across site collections in SharePoint


  4. Mike Urnun 9,676 Reputation points Microsoft Employee
    2020-10-23T16:32:10.147+00:00

    Hello @Doug Parkhouse

    I believe this might be due to an incompatibility with Sharepoint 2019. Presently, the Sharepoint connector supports Sharepoint 2013 or 2016 on-prem servers, as per the reference doc: https://learn.microsoft.com/en-us/connectors/sharepointonline/