ErrorMessageSchedule.Text (outside GallerySchedule) returns Blank, while the per-row label inside the gallery correctly shows "WARN: Planned DEV Start Date should be future day".
Reason
The outside label's formula likely references a gallery-template control (e.g. LabelScheduleGalStatus.Text) directly. Controls inside a gallery template only exist per row — there's no row context outside the gallery, so the reference resolves to Blank.
Fix
Capture the warning into a collection
Inside the gallery row (e.g. in the per-row label's OnChange, or in your existing batch update logic), push the warning text into a collection:
powerfxCollect(colScheduleWarnings, {Item: ThisItem.ID, WarnText: LabelScheduleGalStatus.Text})
(If you already maintain colScheduleGal, add a WarnText column there instead of a new collection.)
Update ErrorMessageSchedule.Text formula
Replace the current formula with:
powerfxFirst(Filter(colScheduleGal, StartsWith(WarnText,"WARN:") || StartsWith(WarnText,"ERR:"))).WarnText
Default value
Wrap with IfError/Coalesce to avoid blank-on-no-match:
powerfxCoalesce(
First(Filter(colScheduleGal, StartsWith(WarnText,"WARN:") || StartsWith(WarnText,"ERR:"))).WarnText,
""
)
Vishnu WR
Please ✅ Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider answering Yes to Was this reply helpful? or give it a Like ♥