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 / ClearCollect Missing F...
Power Apps
Unanswered

ClearCollect Missing Field Values for Some Rows in Collection

(0) ShareShare
ReportReport
Posted on by 473

My datasource has both Name and Date fields, as per CRM view that I am fetching data from.

gymcode_2-1706616565217.png

 

However, when get .Date and .Name field, all 'Date' fields are fetched correctly, but 'Name' fields are missing for some rows.

gymcode_3-1706616693515.png


Edit: The 'Value' column in 'varDateRange' matches the date with record of '08/02/2024, 00:00:00' above with missing 'Name' value.

gymcode_0-1706619018715.png

May I know why this situation occurred, as this wasn't happening earlier in the day.

Below is my formula for reference.

Thank you

 

 //Store Public Holidays Date and Name
 ClearCollect(
 ServiceCalendarDateAndNameBetweenSelectedDates,
 AddColumns(
 Filter(
 varDateRange,
 Value in Filter(
 'Service Calendars',
 'Service Calendars (Views)'.'Active Service Calendars'
 ).Date
 ),
 "Name", LookUp('Service Calendars', Date = Value).Name
 )
 );

 

Categories:
I have the same question (0)
  • vaubeee Profile Picture
    533 on at

    HI @gymcode ! More or less a guess, but since this behavoiur means, that for that specific rows 'Service Calendars'.Date does not match the value of 'Value' I would check what exactly is returned as 'Value' in these cases. Just throw the return-value into a text-field. Good luck 😉  

  • ruihaolrh Profile Picture
    473 on at

    Hi @VauBee , edited my response, misunderstood your reply.

    May I know if there is a simple way to "concatenate the 'value' data during 'ClearCollect'?

    Thank you

  • ruihaolrh Profile Picture
    473 on at

    Hi @VauBee , after reviewing the code, I believe 'Value' comes from my 'varDateRange' collection earlier, using it's column 'Value' to Lookup the view's 'Date' column.

    The Values are datetime values, and it was also found, and match the record in CRM view with the missing Name.

    gymcode_0-1706618840739.pnggymcode_1-1706618859601.png

     

     

  • vaubeee Profile Picture
    533 on at

    Hi @gymcode, tbh I still don't get what your 'Value' holds at runtime, so I'm fishing in murky waters 😉 Irrespective of this, I wonder whether this could work 

     //Store Public Holidays Date and Name
     ClearCollect(
     ServiceCalendarDateAndNameBetweenSelectedDates,
     AddColumns(
     Filter(
     varDateRange,
     Value in Filter(
     'Service Calendars',
     'Service Calendars (Views)'.'Active Service Calendars'
     ).Date
     ),
     "Name", LookUp('Service Calendars (Views)'.'Active Service Calendars', Date = Value).Name
     )
     );

     

    ------------------------------------------------------------------------------------------------------------------------------
    If I have answered your question, please mark your post as Solved. Remember, you can accept more than one post as a solution.

    If you like my response, please give 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 392 Most Valuable Professional

#2
11manish Profile Picture

11manish 181 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 112 Super User 2026 Season 2

Last 30 days Overall leaderboard