Skip to main content
Community site session details

Community site session details

Session Id : 3KxFsCY1q2he0740ap3qPN
Power Apps - Building Power Apps
Unanswered

Problem passing null date from PowerApps to Power Automate

Like (0) ShareShare
ReportReport
Posted on 27 May 2021 17:35:40 by 52

Hi,

 

I have built a PowerApps form that it takes a few metadata and upload to SharePoint Doc Library using Power Automate. There is a calendar control, DOB, sometimes, DOB is unknown. So dtDOB.selectedDate has nothing in it. When I upload the record, I am receiving a message error Flow.RUN() failed {"error": "TriggerInputSchemaMismatch", "message": "The input body for trigger 'manual' of type 'Request' did not match its schema definition. Error details 'String '' does not validate against format 'date'.'."}}

 

DOB column is a date field, not required.

 

Thank you in advance for helping.

  • Alex-W Profile Picture
    314 on 22 Jan 2024 at 16:32:34
    Re: Problem passing null date from PowerApps to Power Automate

    Update to my previous post... using single quotes for the null date value stopped working for me.  It worked fine during testing, but today I keep on getting flow errors that say, "'item/MeetingDate' is required to be of type 'String/date'. The runtime value '"null"' to be converted doesn't have the expected format 'String/date'."

     

    I removed the single quotes from the formula and replaced it with null and now it works again.

    if(equals(triggerBody()?['date'],'1999-01-01'),null,triggerBody()?['date'])
  • Alex-W Profile Picture
    314 on 21 Jan 2024 at 19:58:35
    Re: Problem passing null date from PowerApps to Power Automate

    @lras1202 @Priscilla 

    It is now January 2024 and I can't find a lot of information online about this issue.  I have a workaround for this that has been working fine so far. 

     

    On the app, use the following formula for the date field section of the OnSelect formula that runs the flow.  DatePicker_Meeting is the date picker data card that I tied to the date column on SharePoint.  Coalesce is used to return the date "1999-01-01" if the date picker is blank.

    Coalesce(Text(DatePicker_Meeting.SelectedDate, "yyyy-mm-dd"), "1999-01-01")

     

    On the flow, I am using the Update files property action since I am working with a document library, but the following should work with a list too.  I created an expression for the date field.  This expression is checking if the date received from the app is 1999-01-01.  If yes, updated the date field with a blank value, else use the actual date from the date picker on the app.  "triggerBody()?['date']" is the dynamic content for the date input.

    if(equals(triggerBody()?['date'],'1999-01-01'),'',triggerBody()?['date'])

     

    I used 1999 for the date if the date picker is blank because the date field will never have a date from this year.  Therefore, this date could be any date.  

     

    If there is a simpler way to do this, please let me know.

  • Priscilla804 Profile Picture
    14 on 17 Nov 2022 at 10:24:12
    Re: Problem passing null date from PowerApps to Power Automate

    have you ever resolved your issue please? as i'm encountering it just now

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410 Super User 2025 Season 2

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2

Loading complete