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 / Issues with IsBlank(Lo...
Power Apps
Suggested Answer

Issues with IsBlank(LookUp()) inside of AddColumns (Unanswered)

(0) ShareShare
ReportReport
Posted on by 14
I have the following ClearCollect function:
 
ClearCollect(
    locTableCourses,
    AddColumns(
        Filter(gblTableCourseJourneyPairs, 'Journey ID' = locRecordLearningJourney.ID),
        Course,
        LookUp(gblTableCourses, ID = CourseID),
        Completed,
        Not(IsBlank(LookUp('Completed Courses', Title = User().Email && 'Course ID' = CourseID)))
    )
)
 
However, whenever I run this, I get the following error message:

"Error when trying to retrieve data from the network: Fetching items failed. Possible invalid string in filter query."
 
The issue seems to be with the "IsBlank()" section. If I remove the "Not(IsBlank(" so that it simply returns a record, it runs fine. However, later if I try to do "IsBlank(ThisRecord.Completed)", it'll throw the previous error message again.
 
Does anybody know what's going on here and/or how I can fix this? I appreciate any help with this!
Categories:
I have the same question (0)
  • Power Platform 1919 Profile Picture
    2,217 Super User 2026 Season 1 on at
    Hi @Tomasteixeira, can you please share what data sources are used?
    Can you try this formula (replace Col_Name with any column of 'Completed Courses' data source).
    Note this is a free typed code (error might come)
    ClearCollect(
        locTableCourses,
        AddColumns(
            Filter(gblTableCourseJourneyPairs, 'Journey ID' = locRecordLearningJourney.ID),
            Course,
            LookUp(gblTableCourses, ID = CourseID),
            Completed,
            LookUp('Completed Courses', Title = User().Email && 'Course ID' = CourseID).Col_Name<>Blank()
        )
    )
     
  • Tomasteixeira Profile Picture
    14 on at
    @Power Apps 1919 What do you mean by share the data source used? The data is from Sharepoint Lists if that's what you mean.
     
    The solution  you provided gives the same error message unfortunately. Additionally, when verifying the collection through the Variables tab, the 'Completed' column has question marks everywhere
  • Suggested answer
    Power Platform 1919 Profile Picture
    2,217 Super User 2026 Season 1 on at
    Hi @Tomasteixeira, can you try this once.
    Note this is a free typed code (error might come)
    ClearCollect(
        locTableCourses,
        AddColumns(
            Filter(gblTableCourseJourneyPairs, 'Journey ID' = locRecordLearningJourney.ID),
            Course,
            LookUp(gblTableCourses, ID = CourseID),
            Completed,
            CountRows(Filter('Completed Courses', Title = User().Email && 'Course ID' = CourseID))<>0
        )
    )
     
  • Tomasteixeira Profile Picture
    14 on at
    @Power Apps 1919 this also gives the same issue
  • Power Platform 1919 Profile Picture
    2,217 Super User 2026 Season 1 on at
    Hi @Tomasteixeira ,
    is 'Course ID' a lookup column?
    If possible, can you share the Schema of the SharePoint Lists , which are being used 

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 893

#2
Valantis Profile Picture

Valantis 571

#3
11manish Profile Picture

11manish 482

Last 30 days Overall leaderboard