cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
TroGun18
Level: Powered On

Copying entries from one sharepoint to another

Hi,

I have created a flow which copies 4 fields to one sharepoint from another.

ID, Date, Author & Comment. 

image.png

 

This works 80 % of the times. However, it seems that some of the "Comments" are empty after this flow runs. Comments are mandatory in Sharepoint 1 (Parent site) and there are no empty rows. I have checked that all the users have read/write access to sharepoint 2 (the receiving sharepoint site). Is there a better way of making sure all the comments are trensferred from Sharepoint 1 to Sharepoint 2?

 

Any help is much appreciated 🙂

 

Regards,

Trond

 
10 REPLIES 10
Highlighted
Dual Super User
Dual Super User

Re: Copying entries from one sharepoint to another

Hi!
Did you inspect flow execution results?
https://docs.microsoft.com/en-us/power-automate/see-a-flow-run
Please also note the trigger is executed when an item is created or modified. The modification of items in sharepoint list 1 forces the creation of a new item in sharepoint list 2 also. Is this design intent?


Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



TroGun18
Level: Powered On

Re: Copying entries from one sharepoint to another

Hi @efialttes ,

 

I do not get any error Messages. A New item is to be created in Sharepointlist 2. This is intent.

Right now it creates a New item, but without the comment (just ID, Name and Date).

 

Super User
Super User

Re: Copying entries from one sharepoint to another

Hey @TroGun18 

The flow execution wouldn't throw an error if an item didn't contain data... you still need to check the execution results to see if the items where the 'comment' field which generate a null value actually have a value... can you verify as @efialttes suggested?

Noting; just because the field is mandatory doesn't mean all items will have a value for the 'comments' field... for example the field could have been made mandatory after items had already been added, or another mechanism is adding data without setting the field... but the first check is to see the actual items contain a value in the Flow execution results, and then verify in SharePoint.

Thinking about it... on your source list check the 'Items that need attention' view.... which will show any items missing values for mandatory columns

a.png

 

HTH

Jay

-------------------------------------------------------------------------

If I have answered your question, please mark your post as Solved.

If you like my response, please give it a Thumbs Up

 

TroGun18
Level: Powered On

Re: Copying entries from one sharepoint to another

Hi @Jay-Encodian ,

 

I've checked that the Comment Field has a value in the Source list (sharepoint1).

I checked "tems that need attention" and there is a list of  approx 20 items. But how can I get information of what is the real issue With these? frustrating that some comments are transferred to Sharepoint2 and some don't...

Super User
Super User

Re: Copying entries from one sharepoint to another

Hey @TroGun18 

Can you share screen shots of the execution history showing where there is a null value for the comments field, also showing a screenshot of the corresponding item in SharePoint? 

Thanks J

TroGun18
Level: Powered On

Re: Copying entries from one sharepoint to another

Hi @Jay-Encodian ,

 

image.png

 

As you can see the flow was successfully run and the source Sharepoint has comment:

image.png

 

However, the other sharepoint list is not picking up this comment: It's empty

image.png

From the Run history I can see that the Body in the "Create Item" for comment is "Null":

"CommentDate": "2019-12-12T10:53:41Z",

  "Comment": null

 

Any idea why?

Dual Super User
Dual Super User

Re: Copying entries from one sharepoint to another

Hi
On the pagw you take the screenshot, if you doubleclick on the trigger, you will be able to inspect its outputs, and identify which item from the list is related to. Can you share a new screenshot with this details?
Hope this helps


Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



TroGun18
Level: Powered On

Re: Copying entries from one sharepoint to another

Hi @efialttes ,

Here are the details. I noticed that the input from Andreas (the editor) is missing the "Comment" Field. The 3 other Fields from the second (receiving) sharepoint is showing (ID, Name and date).

image.png

image.png

image.png

image.png

image.png

image.png

image.pngI find it strange that the "Comment" field is missing here... the 3 other fields are showing (ID, Name and Date).

image.png

image.png

image.png

image.png

regards,

Trond

Dual Super User
Dual Super User

Re: Copying entries from one sharepoint to another

So, the problem is not the flow itself, but the info from sharepint that triggers it... that's really weird.
1. How is Comments column defined in sharepont list? and
2. Did the Comments Column already exist on your SP list when you created the Flow? Or, was this column added later?


Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



TroGun18
Level: Powered On

Re: Copying entries from one sharepoint to another

1. image.pngimage.png

2. The Comment Field was already there. This is not a Field that I added after the flow creation

 

Helpful resources

Announcements
firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Solution Authors
Top Kudoed Authors
Users online (5,122)