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 Apps
Unanswered

Error

(0) ShareShare
ReportReport
Posted on by 116

Hello guys,

 

can someone help me with this error?

I'm using a code like this:

ForAll(Collection; Patch(table1;Lookup(excel; data1=data2)

{

test: "t"

}

)));;

Cedric0404_0-1718290674110.png

 

Categories:
I have the same question (0)
  • MarkRahn Profile Picture
    1,424 Super User 2026 Season 2 on at

    Hi @Cedric0404 

     

    What are the fields in "Collection", "table1", and "excel"? If any or all of these have field names "data1" or "data2", then Power Apps may get confused on which one is being referenced.

     

    I am going to make the following assumptions:

    1.  "Collection" contains the field "data2"
    2. "table1" and "excel" are set up with the same data structure. i.e. the fields are the same
    3. "excel" contains the field "data1"
    4. The field "test" exists in table1

     

    If all of that is correct, then your formula should be something like:

     

    ForAll(Collection As UniqueNameHere; 
    	Patch(table1;LookUp(excel; data1=UniqueNameHere.data2);
    	{
    		test: "t"
    	}
    
    ));

     

    Notice the use of "As" to give "Collection" a name that can be referenced later to prevent Power Apps from getting confused in more than one data source contains the field "data2". Also notice that LookUp has the "U" capitalized as I don't think Power Apps will recognize "Lookup" as valid.

     

    -Mark

    If I've answered your question or solved your problem, please mark this question as answered. This helps others who have the same question find a solution quickly via the forum search. If you liked my response, please consider giving it a thumbs up.

     

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 345 Most Valuable Professional

#2
11manish Profile Picture

11manish 207 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 177

Last 30 days Overall leaderboard