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 Apps / Fetching items failed....
Power Apps
Answered

Fetching items failed. Possible invalid string in filter query.

(0) ShareShare
ReportReport
Posted on by 277

Dear all,

 

I know this error is very common. I have reviewed past cases in this community. However, I have no clue why my query is throwing error. (the error underline is highlighting the LookUp look) Please kindly assist.

 

ForAll(
galSurfaceArea.AllItems,
If(
Value(lblSurfaceArea.Text) > 0,

If(
IsBlank(
LookUp(
TestSurface,
ID=ThisRecord.ID
)
),
Patch(
TestSurface,
Defaults(TestSurface),
{
TestCertNo: DataCardValue.Text,
Length: txtLength.Text,
}
),
Patch(
TestSurface,
LookUp(
TestSurface,
ID = ThisRecord.ID
),
{
TestCertNo: DataCardValue.Text,
Length: txtLength.Text,
}
)
),
)
);

Categories:
  • iAm_ManCat Profile Picture
    18,256 Most Valuable Professional on at

    Might be because you are doing an IsBlank against a record instead of against a record's property

     

    This is what you have currently:

    IsBlank(
     LookUp(
     TestSurface,
     ID=ThisRecord.ID
     )
    )

     

    This is using the property to check if the Property is blank:

    IsBlank(
     LookUp(
     TestSurface,
     ID=ThisRecord.ID
     ).ID
    )

     

  • Verified answer
    hongkong Profile Picture
    277 on at

    I found the error was due to the term ThisRecord is ambiguous used by ForAll and LookUp. I have rewritten the logic to avoid use of LookUp to work around it. 

  • subsguts Profile Picture
    1,259 Moderator on at

    Would you please share what you did.  Thanks!

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 Apps

#1
11manish Profile Picture

11manish 236 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 207 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 169

Last 30 days Overall leaderboard