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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Loop Running into Error
Power Automate
Unanswered

Loop Running into Error

(0) ShareShare
ReportReport
Posted on by 11

I am pulling a cell from a row in Excel and then having it go through a process to than pull data from a browser and paste back in:

  • Open excel
  • get data
  • paste data in browser
  • get data from browser
  • paste data into excel

 

It works but only for the first row it runs for. When it goes back a second time it gets an error on line 13. It is supposed to extract data from the web page and then paste into excel. I am not able to f figure out why this loop is breaking. 

 

View code attached.

 

  • jwmbd Profile Picture
    11 on at

    I forgot the workbook. 

  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    I read the code. I don’t see any logical errors. What is line 13?  Can you share the screenshot of the code, so I can see that?

  • jwmbd Profile Picture
    11 on at

    Unfortunately, I think I figured out the issue. I had about 900 rows of data, and when I changed it to 100 it worked. 

     

    I changed it to 200, and it worked. When I went back to 900, it stopped. 

     

    I am not sure why that caused an issue but maybe you have an idea. 

     

    I did attached the screenshot. 

    2023-05-25_22-04-10.png
  • Highboy Profile Picture
    1,187 Super User 2024 Season 1 on at

    Number of rows should not be a problem - I have excel sheets with 80.000+ rows that PAD handles with no problem.
    Put the whole thing in an On block error - redirect it to a sub function on block error and use the "Get last error" that will give you an idea of whats going on.
    Then post the errror here.

  • jwmbd Profile Picture
    11 on at

    Correlation Id: 7e5fb928-ba51-4fdb-b7ad-b78758303a30 Data extraction element not found.: Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK.ActionException: Failed to extract data (web page error while extracting data). ---> System.Exception: Data extraction element not found. at Microsoft.Flow.RPA.Desktop.UIAutomation.WebAutomation.Core.DataExtraction.LegacyExtractorBase`1.GetExtractionResults(Stopwatch stopwatch, Nullable`1 timeout) at Microsoft.Flow.RPA.Desktop.UIAutomation.WebAutomation.Core.DataExtraction.LegacyExtractorBase`1.InvokeExtraction(Nullable`1 timeout) at Microsoft.Flow.RPA.Desktop.UIAutomation.WebAutomation.Core.DataExtraction.LegacyExtractorBase`1.Extract(Nullable`1 timeout) at Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Common.DataExtraction.Engine.WebDataExtractionEngine`1.AttemptExtraction(ICollection`1 resultsList, WebActionRetryParameters retryParameters, Int32 attempts, Nullable`1 timeout) at Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Common.DataExtraction.Engine.WebDataExtractionEngine`1.<>c__DisplayClass4_0.b__1(Int32 attempts) at Microsoft.Flow.RPA.Desktop.UIAutomation.Core.Utilities.Clock.Execute[T](TimeSpan timeout, TimeSpan period, Func`1 action, Func`2 successCondition) at Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Common.ClockActionPeriodicRunner.Run(Func`2 func, TimeSpan pediod) at Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Common.WebPager.WebPageEnumerator.ForEachPage(IWebAutomationBrowser browser, WebPagerParameters pagerParameters, WebActionRetryParameters navigationRetryParameters, Action action) at Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Common.DataExtraction.Engine.WebDataExtractionEngine`1.ExtractElementData(IWebAutomationBrowser browser, WebPagerParameters pagerParameters, WebActionRetryParameters retryParameters, Nullable`1 timeout) at Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Common.Proxy.LocalWebAutomationRuntime.ExtractSingleValueFromWebPage(WebBrowserInfo webBrowserInfo, WebExtractionSelector extractionSelector, WebPagerParameters pagerParameters, WebActionRetryParameters retryParameters, Nullable`1 timeout) --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Common.Proxy.WebAutomationRuntimeRouter.Invoke(MethodInfo targetMethod, Object[] args) --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Reflection.DispatchProxyGenerator.Invoke(Object[] args) at generatedProxy_3.ExtractSingleValueFromWebPage(WebBrowserInfo , WebExtractionSelector , WebPagerParameters , WebActionRetryParameters , Nullable`1 ) --- End of remote exception stack trace --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at Microsoft.Flow.RPA.Desktop.UIAutomation.Shared.Rpc.RpcDispatchProxy`1.GetRemoteResultOrThrow(RemoteMethodCallResponse response, Type expectedResultType) at Microsoft.Flow.RPA.Desktop.UIAutomation.Shared.Rpc.RpcDispatchProxy`1.Invoke(MethodInfo targetMethod, Object[] args) --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Reflection.DispatchProxyGenerator.Invoke(Object[] args) at generatedProxy_1.ExtractSingleValueFromWebPage(WebBrowserInfo , WebExtractionSelector , WebPagerParameters , WebActionRetryParameters , Nullable`1 ) at Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Actions.WebAutomationRuntimeServiceProxy.<>c__DisplayClass14_0.b__0(IWebAutomationRuntime s) at Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Actions.WebAutomationRuntimeServiceProxy.ExecuteSafe[T](Func`2 action, TimeSpan timeout) at Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Actions.WebAutomationRuntimeServiceProxy.ExtractSingleValueFromWebPage(WebBrowserInfo webBrowserInfo, WebExtractionSelector extractionSelector, WebPagerParameters pagerParameters, WebActionRetryParameters retryParameters, Nullable`1 timeout) at Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Actions.ExtractData.b__53_0(IWebAutomationRuntime s) at Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Actions.WebAutomationActionBase.PerformWebAutomationWithLogging[T](Func`2 action, WebAutomationRuntimeLogData requestData, Func`3 resultData) at Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Actions.ExtractData.Execute(ActionContext context) --- End of inner exception stack trace --- at Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Actions.ExtractData.Execute(ActionContext context) at Microsoft.Flow.RPA.Desktop.Robin.Engine.Execution.ActionRunner.Run(IActionStatement statement, Dictionary`2 inputArguments, Dictionary`2 outputArguments)

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 315 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 267

#3
Henil Profile Picture

Henil 115

Last 30 days Overall leaderboard