cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Read from D365 then Add Row to Excel problem

Hi Guys, so I have this kind of issue where in when I fetch data from D365 then write it to Excel stored in sharepoint, I am having a discrepancy issue with it. So here is my process in detail

 

1. Get List of data from D365.

2. Do "Apply to each" with the list fetch from #1

3. Inside the loop, write each data per row iterated from #2 in Excel file stored in Sharepoint.

4. After done, delay 5m to ensure all is written.

5. Fetch the file from sharepoint then distribute in email.

 

So the issue here for example, I have 1000 rows of data fetched from #1 but I am receiving a mail sometimes with just 800+ or so rows in the excel file. And sometimes, data writing was very smooth with no missing data on the excel. So I want to know how can we prevent this from happening? Thank you

2 REPLIES 2
LinkeD365
Advocate IV
Advocate IV

Hey @Anonymous 

 

Could you be seeing the effects of parallelism? Where in the Apply to each, which are normally run in parallel, are both trying to update your excel file & one overwrites the other?

 

https://powerusers.microsoft.com/t5/Power-Automate-Community-Blog/Degree-of-Parallelism-in-Power-Automate/bc-p/473315

 

If my reply helped, consider marking it as answered. Thanks for your time in sharing your issues and helping the community

Anonymous
Not applicable

Hi,

 

I am only using concurrency level 1 since it cause write request failure to sharepoint sometimes if I set it to a higher value. Also what was weird here was for example I have 200 rows fetched in D365 then I write it in excel file residing at sharepoint directory. Run history says that it successfully writes all 200 rows but checking on excel at sharepoint, sometimes its not and likely less than 200 or something. So what would be the best solution for this?

 

Best Regards,

Kydo

Helpful resources

Announcements
MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

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

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

PA Survey Carousel Image.png

We want to hear from you!

If you are a small business ISV/Reseller, share your thoughts with our research team.

Top Solution Authors
Top Kudoed Authors
Users online (2,704)