cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
elaaadani
Helper V
Helper V

add items with the same name in the sharepoint list

 

Hello, I hope you all are well !

I need help to handle the error of creating an element in sharepoint. The error appears when I want to create an element with the same name.
I'm using an incremental variable to add in the name, but I can't do this.
Thank you very much.


status":400, "message": "The specified name is already in use"

 

elaaadani_0-1611102843377.png

 

9 REPLIES 9
abm
Super User
Super User

Hi @elaaadani ]

 

Add a compose name and create the unique name. Then set the output of the compose under the create step. This way you can easily debug the run time history to find why its not creating the item.

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Power Automate Video Tutorials

@abm Hi

The error appears when I want to create an item with the same name as another item that already exists in the sharepoint list. I would like to be able to create the element if it exists with the same name, but adding a number.

File
File_1

Hi @elaaadani 

 

Could you please tell me what's the Power Action step you using to create this? 

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Power Automate Video Tutorials
elaaadani
Helper V
Helper V

@abm

I create the items by sending an HTTP request to sharepoint

elaaadani_2-1611165973561.png

  1.  

Hi @elaaadani 

 

Thanks for your reply. Are you creating a page in SharePoint or a list item? 



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Power Automate Video Tutorials

@abm thank you , List item 

abm
Super User
Super User

Hi @elaaadani 

 

Thanks for your reply. So I did setup a list and set the unique rule. See below steps. I did tested and worked as expected.

 

image.png



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Power Automate Video Tutorials

@abm Hello! I did exactly that. I get this

elaaadani_0-1611201017417.png

 


Still, when I re-run the flow, it creates the elements with the same name. When this happens, the error appears that the element already exists with that name.
How can I do so that if the element exists with that name, I can create it but with a number next to it ? Like

ORDENES.xlsx_2
ORDENES.xlsx_3

....

Hi @elaaadani 

 

In order to analyse it further I need to see the screenshot of your flow. The earlier screenshot you provided is not enough to understand the logic.

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Power Automate Video Tutorials

Helpful resources

Announcements
 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Users online (2,211)