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 / Date Picker Error "Err...
Power Apps
Unanswered

Date Picker Error "Error when trying to retrieve data from the network"

(0) ShareShare
ReportReport
Posted on by 56

Hi there, 

I have added two date pickers to filter a gallery but I am getting this error message: "Error when trying to retrieve data from the network". The query runs when I take the date picker code out.

 

I found this related community post and attempted to correct my query - LINK

It mentions using Value(DatePicker.Value) - but Value is not recognized which is why I stuck with SelectedDate.

 

My SQL table date is formatted "yyyy-mm-dd" and data type Date, so I set the FORMAT property of my date pickers to match.

kpechal150_0-1704469165427.png

Still getting the error message when I run it. No errors are thrown when writing it.

Any thoughts or suggestions?

Thanks!

 

 

FirstN(
 If(
 IsBlank(stST_KTN.Text),
 If(
 IsBlank(stST_ID.Text),
 If(
 IsBlank(stST_Data.Text),
 Filter(
 EXPL_Sent,
 STOID = cbST_STO.Selected.Value || IsBlank(cbST_STO.Selected.Value),
//Date Picker Filters
 SentDate >= Value(dpST_DateStart.SelectedDate) || IsBlank(Value(dpST_DateStart.SelectedDate)),
 SentDate <= Value(dpST_DateEnd.SelectedDate) || IsBlank(Value(dpST_DateEnd.SelectedDate)),
 CID = sdST_C.Selected.IDC || IsBlank(sdST_C.Selected.IDC)
 ),
 Filter(Search(
 EXPL_Sent,
 stST_Data.Text,
 "DataDescription"
 ),
 CID = sdST_C.Selected.IDC
 )
 ),
 Filter(
 EXPL_Sent,
 SentID = Value(stST_ID.Text)
 )
 ),
 Filter(
 EXPL_Sent,
 CID = sdST_C.Selected.IDC,
 OKN = stST_KTN.Text ||
 AID = Value(stST_KTN.Text) ||
 AIDold = Value(stST_KTN.Text)
 )
 ),
 2000
)

 

 

 

FirstN(
If(
IsBlank(stST_KTN.Text),
If(
IsBlank(stST_ID.Text),
If(
IsBlank(stST_Data.Text),
Filter(
EXPL_Sent,
STOID = cbST_STO.Selected.Value || IsBlank(cbST_STO.Selected.Value),
//Date Picker Filters
SentDate >= Value(dpST_DateStart.SelectedDate) || IsBlank(Value(dpST_DateStart.SelectedDate)),
SentDate <= Value(dpST_DateEnd.SelectedDate) || IsBlank(Value(dpST_DateEnd.SelectedDate)),
CID = sdST_C.Selected.IDC || IsBlank(sdST_C.Selected.IDC)
),
Filter(Search(
EXPL_Sent,
stST_Data.Text,
"DataDescription"
),
CID = sdST_C.Selected.IDC
)
),
Filter(
EXPL_Sent,
SentID = Value(stST_ID.Text)
)
),
Filter(
EXPL_Sent,
CID = sdST_C.Selected.IDC,
OKN = stST_KTN.Text ||
AID = Value(stST_KTN.Text) ||
AIDold = Value(stST_KTN.Text)
)
),
2000
)

 

 

 

Categories:
  • QuentinDURIEZ Profile Picture
    577 Moderator on at

    Hi,

    Value is a conversion formula, it will convert the parameter to the number.

    If your SQL column "SentDate" is a Date or DateTime type, just using dpST_DateStart.SelectedDate will work
    If "SentDate" is a string type , use the formula below to convert the date-type object contained in dpST_DateStart.SelectedDate to a formatted string.

    Text(dpST_DateStart.SelectedDate, 'yyyy-MM-dd')


    Regards,

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 382 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 329

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard