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 / ERROR UN FLOW USING SH...
Power Automate
Unanswered

ERROR UN FLOW USING SHAREPOINT

(0) ShareShare
ReportReport
Posted on by 56

I have created a flow using AI Builder to extract information from several PDFs located in a SharePoint folder and place the information in an Excel file also located in SharePoint. However, when I add a new PDF to the folder, the flow doesn't work, and I get the following error: The execution of template action 'Aplicar_a_cada_uno' failed: the result of the evaluation of 'foreach' expression '@{triggerOutputs()?['body/Author']}@{triggerOutputs()?['body/Author/JobTitle']}@{triggerOutputs()?['body/Author/DisplayName']}@{triggerOutputs()?['body/Author/Email']}' is of type 'String'. The result must be a valid array.

 

image.png
image.png
Categories:
I have the same question (0)
  • Michael E. Gernaey Profile Picture
    53,963 Moderator on at

    Hello,

     

    I am not sure what the Apply to Each you have is trying to do, can you explain. What I can say is that based on what you put there, the result is in fact just a string, and an Apply to Each requires it to be an array of values that it can loop through

     

    Can you please share more of the flow and what you expect to loop through
    Cheers
    If you like my answer, please Mark it as Resolved, and give it a thumbs up, so it can help others
    Thank You
    Michael Gernaey MCT | MCSE | Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

  • Gean_ST Profile Picture
    56 on at

    I'm trying to extract information from several PDFs located in a SharePoint folder. I'm using the AI Builder tool to perform this extraction. What I want is that every time I upload a file to the folder, AI Builder should do its work, extract the information, and place it in the Excel file. 

  • Michael E. Gernaey Profile Picture
    53,963 Moderator on at

    Hi,

     

    I understand that part, but what is the loop for. You are talking about a single file, not files.  Since the loop is your issue, what are you trying to loop through at that point.

  • Gean_ST Profile Picture
    56 on at

    Okay, I fixed it already. Now, the problem is that when extracting the information, it doesn't extract the first piece of data, even though the flow indicates that it's working correctly. it should report 5 items: NOTI_NRO, DECLA_NRO, SERIE, USUARIO_NOMB and RUC_NRO. but as you can see it doesnt extract NOTI_NRO. when i test its fine.

    image.png
    image.png

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 484

#2
11manish Profile Picture

11manish 282

#3
David_MA Profile Picture

David_MA 280 Super User 2026 Season 1

Last 30 days Overall leaderboard