web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : cGppxYbllZFDBR3g83wfCK
Power Automate - Building Flows
Answered

Adding Attachment (Links) to a Task in Planner results in Duplicate Error

Like (0) ShareShare
ReportReport
Posted on 2 Mar 2022 05:42:59 by 108

I have a simple flow to create a Planner Task that is triggered by a form (Cognito Forms) that at times can have multiple attachments I want linked in the task.

I am receiving the following error in the Update Task action of Key with path references.resourceLink is duplicated. Duplicate values are not supported.

The attachments are fetched from a SharePoint list and it only contains two png files with different names (image & image2) but the references resource link is producing 3 URL's two with the same name - why would it be creating a duplicate?

UluruRob_0-1646199365973.png

 

 

 

 

  • Verified answer
    UluruRob Profile Picture
    108 on 03 Mar 2022 at 08:14:27
    Re: Adding Attachment (Links) to a Task in Planner results in Duplicate Error

    OK so it works in the Web Version in Teams but not the Desktop - Kind of makes sense.

  • UluruRob Profile Picture
    108 on 03 Mar 2022 at 08:02:04
    Re: Adding Attachment (Links) to a Task in Planner results in Duplicate Error

    Thankyou - that's odd as I am logged into Teams using the same as the connector in Power Automate. I will have to investigate further.

  • v-bofeng-msft Profile Picture
    on 03 Mar 2022 at 07:38:56
    Re: Adding Attachment (Links) to a Task in Planner results in Duplicate Error

    Hi @UluruRob :
    I've made a test but did not encountered the problem you mentioned.

     

    vbofengmsft_1-1646292951376.png

     

    vbofengmsft_2-1646292975081.png

    I guess it may be caused by permission problems(because AbsoluteUri requires authentication), It is recommended that your connection and planner use the same account to log in.

    Best Regards,
    Bof

     

     

  • UluruRob Profile Picture
    108 on 03 Mar 2022 at 07:04:47
    Re: Adding Attachment (Links) to a Task in Planner results in Duplicate Error

    Thanks - That worked to get rid of the duplication and successfully attached the attachments, however I get an error now when trying to open the files on the task in Teams, any idea?

    UluruRob_2-1646291071612.png

     

     

    UluruRob_0-1646290900421.png

     

    UluruRob_1-1646290917790.png

     

  • v-bofeng-msft Profile Picture
    on 03 Mar 2022 at 06:11:12
    Re: Adding Attachment (Links) to a Task in Planner results in Duplicate Error

    Hi @UluruRob :

    The point is that the second loop gets the attachments added in the first loop:

    Round 1:

    •  Add attachment1
    •  Get Attachment1

    Round 2:

    •  Add Attachment1
    • Get Attachment1 & Attachment2

    Finally you will get 2 Attachment1 and one Attachment2.

    You could remove the 'Get attachments' and try:

    vbofengmsft_0-1646287846693.png

    Best Regards,

    Bof

     

  • UluruRob Profile Picture
    108 on 02 Mar 2022 at 09:40:42
    Re: Adding Attachment (Links) to a Task in Planner results in Duplicate Error

    UluruRob_1-1646214030605.png

     

  • UluruRob Profile Picture
    108 on 02 Mar 2022 at 09:40:13
    Re: Adding Attachment (Links) to a Task in Planner results in Duplicate Error

    Flow.jpg

  • Masino Profile Picture
    321 on 02 Mar 2022 at 09:09:19
    Re: Adding Attachment (Links) to a Task in Planner results in Duplicate Error

    Can you post your flow?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!