Skip to main content

Notifications

Power Automate - AI Builder
Suggested answer

filename not match in "apply to each "

Posted on 3 Dec 2024 03:22:29 by 20
Hi
I try to create a flow with the goal of analyzing all PDFs in the OneDrive folder using AI Builder to extract invoice information, and then writing that information into Excel.
step1: to list all the files in OneDrive,
step2: get the file names by json
step3: use AI Builder to recognize each file,
step4: writing that information into Excel
 
I find that the file names and the information from AI Builder do not match, and it only works correctly when the "Degree of parallelism" is set to 1. Is there a way to set the "Degree of parallelism" to 20 or even 50 ?

Thanks
 
flow screen
Categories:
  • CW-23070243-0 Profile Picture
    CW-23070243-0 20 on 03 Dec 2024 at 05:39:00
    filename not match in "apply to each "
    @Fubar
     
    Thanks for your kind help.
    I removed Var filename, use json into"Add a row into a table", it works

  • Suggested answer
    Fubar Profile Picture
    Fubar 7,586 on 03 Dec 2024 at 05:01:22
    filename not match in "apply to each "
    Think you'll find the issue is you setting the filename Variable inside the loop as variables are global - setting it in one concurrent/parallel assigns the value to all the parallels at the same time.
     
    Rather than setting the Variable, extract the filename each time you need to use it using expression in the respective fields of the nodes where it is needed.
     
     

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

November 2024 Newsletter…

November 2024 Community Newsletter…

Community Update Oct 28…

Power Platform Community Update…

Tuesday Tip #7 Community Profile Tips…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 143,297

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 63,890

Leaderboard