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 Automate / Blank attachment in fo...
Power Automate
Unanswered

Blank attachment in forms showing error while saving to sharepoint list

(0) ShareShare
ReportReport
Posted on by 13

Hi All,

 

I have a form which has three fields text field, link field and one upload. A respondent can submit a link or upload an attachment. But the flow I created is not working if the upload field is empty. is there a way to make it work? 

 

screen shot of the flow:-

Noob01_0-1634976923610.png

 

Categories:
I have the same question (0)
  • powercorner Profile Picture
    477 on at

    Hey @Noob01 ,

    the error comes from the fact that you defined a json scheme and inside this scheme the json action awaits a value which is not set inside your incoming json code. 

    So you need to change the schema. 

    What you can do is take the json output from the forms "get response details" action and use it to create a new scheme from example.

    powercorner_0-1634979768670.png

     

    You will see that the scheme will change and then the workflow should work. In case it doent work just show me your current scheme and we will make the ajustments manually.

     

    With regards

    Kevin

  • CFernandes Profile Picture
    8,482 Most Valuable Professional on at

    Hey @Noob01 

     

    There are two ways of resolving this problem.

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

     

    P.S. take a look at my blog here and like & subscribe to my YouTube Channel thanks.

  • Noob01 Profile Picture
    13 on at
    This is the schema I m using. Tried including null in all the parameters, but it is still throwing error.
    {
        "type""array",
        "items": {
            "type""object",
            "properties": {
                "name": {},
                "link": {
                    "type": [
                        "string",
                        "null"
                    ]
                },
                "id": {
                    "type": [
                        "string",
                        "null"
                    ]
                },
                "type": {},
                "size": {
                    "type": [
                        "integer",
                        "null"
                    ]
                },
                "referenceId": {
                    "type": [
                        "string",
                        "null"
                    ]
                },
                "driveId": {
                    "type": [
                        "string",
                        "null"
                    ]
                },
                "status": {
                    "type": [
                        "integer",
                        "null"
                    ]
                },
                "uploadSessionUrl": {}
            },
            "required": [
                "name",
                "link",
                "id",
                "type",
                "size",
                "referenceId",
                "driveId",
                "status",
                "uploadSessionUrl"
            ]
        }
    }
  • powercorner Profile Picture
    477 on at

    Hello @Noob01 ,

    you changed the null values but you have still defined the required fields. if you take the "null-valued" fields out of the required array it should work 🙂

    If it this helps, I would be happy about a kudo and a solution 😉

    With regards

    Kevin

  • Noob01 Profile Picture
    13 on at

    @powercorner  I have removed the fields from the required fields but the flow is still not running successfully. this is the schema:

    {
        "type""array",
        "items": {
            "type""object",
            "properties": {
                "name": {},
                "link": {
                    "type": [
                        "string",
                        "null"
                    ]
                },
                "id": {
                    "type": [
                        "string",
                        "null"
                    ]
                },
                "type": {},
                "size": {
                    "type": [
                        "integer",
                        "null"
                    ]
                },
                "referenceId": {
                    "type": [
                        "string",
                        "null"
                    ]
                },
                "driveId": {
                    "type": [
                        "string",
                        "null"
                    ]
                },
                "status": {
                    "type": [
                        "integer",
                        "null"
                    ]
                },
                "uploadSessionUrl": {}
            },
            "required": []
        }
    }
  • powercorner Profile Picture
    477 on at

    hi @Noob01 ,

    what is the exact error message? Can you screenshot it?

     

    With regards

    Kevin

  • Noob01 Profile Picture
    13 on at

    Noob01_0-1635767518488.png

     

  • powercorner Profile Picture
    477 on at

    Hello again,

     

    the error message states that there is a property called content? You havent defined any property called content in your schema. I dont know how important that data is, but maybe you could paste some example data here, so I could parse it in my flow and see and understand whats wrong.


    With regards

    Kevin 

  • powercorner Profile Picture
    477 on at

    @Noob01 ,

    maybe you can even show us a screen of the action in edit mode, cause I do not really understand what you are trying to achive. usually when you parse the information from a forms form the propertynames are coming as ids and not as text like you described it in your schema. I think your approach is kinda faulty.

    powercorner_0-1635768844977.png

     

    so my schema looks like this: 

    {
     "type": "object",
     "properties": {
     "responder": {
     "type": "string"
     },
     "submitDate": {
     "type": "string"
     },
     "r69fc42ea3d3842e5a7cfd87f04c5133f": {
     "type": "string"
     },
     "r98ee8e8e3fa3402995b5fe5ca6d839ba": {
     "type": "string"
     }
     }
    }



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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 58

#2
David_MA Profile Picture

David_MA 53 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 36 Most Valuable Professional

Last 30 days Overall leaderboard