Skip to main content

Notifications

Power Automate - General Discussion
Answered

SharePoint List Remains Blank When A New Form is Submitted, While Flow Runs Successfully

(0) ShareShare
ReportReport
Posted on by

Hi All,

 

I have created a flow, which runs successfully, an which has the objective of transferring the data harvested through an MS Form into a SharePoint list.

 

Mila_0-1598557159514.png

 

Throughout the day, I have had all sorts of errors, including the 'string date/time' error.

The latest, and the one that keeps recurring, is that the flow runs successfully and yet my list in SharePoint is empty, with only the Title field being populated.

 

I have rebuilt that list 4 times (at some point today it would not let me import it from Excel, despite having worked ok all morning) and I am at the end of my rope. 

 

Can anyone help?

 

Thanks!

 

  • RodolfoIsturiz Profile Picture
    RodolfoIsturiz 24 on at
    Re: SharePoint List Remains Blank When A New Form is Submitted, While Flow Runs Successfully

    Thank you a lot @Mila and @Hardesh15 ! You also helped me a lot. I had the same problem with my flow, but now it is working perfectly!

     

    Regards,

  • Re: SharePoint List Remains Blank When A New Form is Submitted, While Flow Runs Successfully

    THANK YOU!! 

     

    This has now worked for me!! 

     

    Thanks so much for your help @Hardesh15 - you're a legend!

     

     

  • Verified answer
    Hardesh15 Profile Picture
    Hardesh15 7,087 on at
    Re: SharePoint List Remains Blank When A New Form is Submitted, While Flow Runs Successfully

    @Anonymous 

     

    Its simplified version of the same-

    Hardesh15_1-1598630675105.png

     

    Thanks

    Hardesh

     

  • Verified answer
    Hardesh15 Profile Picture
    Hardesh15 7,087 on at
    Re: SharePoint List Remains Blank When A New Form is Submitted, While Flow Runs Successfully

    @Mila 

     

    Actually i pasted wrong screen. So i edit my last post. this will definitely work. i tested it.

    use this kind of expression in your create item date column-

    if(empty(outputs('Get_response_details')?['body/r6ff84fef86f6418eba18cee1bba15ec9']),null,outputs('Get_response_details')?['body/r6ff84fef86f6418eba18cee1bba15ec9'])

    Thanks

    Hardesh

  • Re: SharePoint List Remains Blank When A New Form is Submitted, While Flow Runs Successfully

    So sorry @Hardesh15 , I tried but this doesn't work.

     

    Mila_0-1598629850568.png

    I have now updated the MS Form and deleted the date/time questions, and rebuilt them as single line text so that I can move on with the process. 

     

    Thank you SO much for trying to help me!

  • Hardesh15 Profile Picture
    Hardesh15 7,087 on at
    Re: SharePoint List Remains Blank When A New Form is Submitted, While Flow Runs Successfully

    @Anonymous 

     

    i followed your logic and created test. i have created two date question in my MS form 1. DOB (required) 2. Visa Expiry (Not required).

    and in SharePoint list made same column type.

     

    Use this expression in each create item column for which date is optional-

    if(empty(outputs('Get_response_details')?['body/r6ff84fef86f6418eba18cee1bba15ec9']),null,outputs('Get_response_details')?['body/r6ff84fef86f6418eba18cee1bba15ec9'])

    This (outputs('Get_response_details')?['body/r6ff84fef86f6418eba18cee1bba15ec9']) is my dynamic value of Visa expiry date from dynamic content.

     
     

    121.jpg

     

    Thanks

    Hardesh

  • Re: SharePoint List Remains Blank When A New Form is Submitted, While Flow Runs Successfully

    HI @Hardesh15 

     

    At the moment the only way it works is if i change the Question style in my form (i.e. changing from a date/time question to a text question - not ideal, but hey).

  • Re: SharePoint List Remains Blank When A New Form is Submitted, While Flow Runs Successfully

    Hi @Hardesh15 

     

    I built a much simpler, 3-questions form for testing, and the same happens.

     

    When the question that is set up as a 'date/time' question in the MS Form is not answered, the flow doesn't run and kicks up this error:

     

    Mila_0-1598620536648.png

     

     

  • Re: SharePoint List Remains Blank When A New Form is Submitted, While Flow Runs Successfully

    Hi @Hardesh15 ,

     

    I do not know why they come up like that. I have used the following Question Option in Forms:

     

    Mila_0-1598619347001.png

     

    This is how ALL the fields that require a date (not just the date of birth) are set up in the SharePoint list: 

    Mila_1-1598619487197.png

     

    The flow did not fail at the DOB stage (see green tick)

    Mila_2-1598619595265.png

    but at the stage when one of the questions that requires a date input (non-mandatory field in the form) is NOT populated:

     

    Mila_3-1598619704236.png

    The Questions (shortened below for GDPR) are not mandatory in the form and not mandatory in the sharepoint list:

     

    Passport expiry date

    Visa Expiry date

     

     

  • Hardesh15 Profile Picture
    Hardesh15 7,087 on at
    Re: SharePoint List Remains Blank When A New Form is Submitted, While Flow Runs Successfully

    @Mila 

    now understand the issue. In compose output you see "date1986-......" why date text is added before your DOB field. in  SharePoint Date field you can only supply Date and time. you can not pass data like this. See my compose output there is no text prefix in date.

     

    If you are making fields mandatory in SharePoint List then you must supply value to it. Can you give me field name from form and SharePoint List which are causing issue to you. Also please mention which are mandatory and which are optional fields. i need this to build expression so that you do not get such error.

     

    Thanks

    Hardesh

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

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

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,666

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,996

Leaderboard