web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Unanswered

Power automate flow from FORMS does not work if the attachment (which is not mandatory) is not added to the responses

(0) ShareShare
ReportReport
Posted on by

Hi team,

 

New user here, I have a flow to send an email to specific team members with a responses from FORMS, "if available" will include attachments. The flow only works if the attachments are added, if they are not, then the Parse JSON2 does not work with a null value (Unable to process template language expressions in action 'Parse_JSON_2' inputs at line '0' and column '0': 'Required property 'content' expects a value but got null. Path ''.'.), in the initial Parse JSON if not attachment is this: 

 "r1c2119aa82c641919131fd4a92c5b022": "",

 

 

Claumna221827_0-1709691738391.pngClaumna221827_1-1709691780718.png

Parse JSON

{
    "type""object",
    "properties": {
        "responder": {
            "type""string"
        },
        "submitDate": {
            "type""string"
        },
        "r62973a2802a2423eb96d133c2215c407": {
            "type""string"
        },
        "r7f81f88ae98c42bfaa7ef4a088fd7727": {
            "type""string"
        },
        "rcb9ed959aa96430faab67c200776cfc5": {
            "type""string"
        },
        "rc110865033c64daf97eccf4d86ae430b": {
            "type""string"
        },
        "r99f7024a7bcf4d80ab53aea51d6cdbe0": {
            "type""string"
        },
        "rba8c923b21a045518c43c4ca65f81810": {
            "type""string"
        },
        "r92b604b9097c493db8381047906d675b": {
            "type""string"
        },
        "r0f396e37d5824969a6262f4c8b49560a": {
            "type""string"
        },
        "r6196efda99704994a0c0c90c854d6244": {
            "type""string"
        },
        "r2a8de9caaa8c46c8a10dbb649c23c970": {
            "type""string"
        },
        "r13429ac4f60a476db3366bac437135e3": {
            "type""string"
        },
        "r2b0e653ec47442daac68ced3f3ba1022": {
            "type""string"
        },
        "rc82475452c60436c8c5acb0a61fc14e7": {
            "type""string"
        },
        "r568cd79d99eb48deaae0bf75ea7953e5": {
            "type""string"
        },
        "red17093b8e0140bfa298ceec97e4ab39": {
            "type""string"
        },
        "r930557c2b92f4068b4dc2a4106f21d7d": {
            "type""string"
        },
        "r63664ec0563b4b7b8ad84d9da7e78293": {
            "type""string"
        },
        "rf1bad09bbeab437998f43b7c572fc04b": {
            "type""string"
        },
        "r0ae644e4cb68497c8834a0adf11d90f0": {
            "type""string"
        },
        "rb1d4d7ed4e89457d99d969c56ab116cc": {
            "type""string"
        },
        "r8256e74778534ca1a270361a27d954c7": {
            "type""string"
        },
        "r33b93ba19dcc4c4b9e9d383e6c7706a0": {
            "type""string"
        },
        "r204d850dc4ca4ce595a33fc77375d000": {
            "type""string"
        },
        "rc8d2256355064f14a67f5d945187994b": {
            "type""string"
        },
        "r79978d0d3028441a82099743524ceef1": {
            "type""string"
        },
        "re1d9811af87c4ede9befef1ed8e4c463": {
            "type""string"
        },
        "r0f2a1dc1230e41779a384bf239336419": {
            "type""string"
        },
        "r5d6ee3d3b47f4338894f62b4508dd0fa": {
            "type""string"
        },
        "r4b26a16401614eea91ef011918c56edb": {
            "type""string"
        },
        "r34118a4746194d1e98e4f7b8ca77d3eb": {
            "type""string"
        },
        "r1c2119aa82c641919131fd4a92c5b022": {
            "type""string"
        },
        "rbf095cf99b584caab3f8bd7c9786183c": {
            "type""string"
        },
        "r91880f7e8af546ba90e28b89a7c65242": {
            "type""string"
        },
        "raff04472f7884cdd96ee8b1e3ec024cc": {
            "type""string"
        }
    }
}

 

Parse JSON 2 details here: 

{
    "type""array",
    "items": {
        "type""object",
        "properties": {
            "name": {
                "type""string"
            },
            "link": {
                "type""string"
            },
            "id": {
                "type""string"
            },
            "type": {},
            "size": {
                "type""integer"
            },
            "referenceId": {
                "type""string"
            },
            "driveId": {
                "type""string"
            },
            "status": {
                "type""integer"
            },
            "uploadSessionUrl": {}
        },
        "required": [
            "name",
            "link",
            "id",
            "type",
            "size",
            "referenceId",
            "driveId",
            "status",
            "uploadSessionUrl"
        ]
    }
}
I have the same question (0)
  • v-yetonggu-msft Profile Picture
    on at
    Re: Power automate flow from FORMS does not work if the attachment (which is not mandatory) is not added to the responses

    Hi @Claumna221827 ï¼Œ

    You can add a condition to determine whether compose is empty. If it is not empty, 'Parse Json'.

     

    Best Regards,

    Sunshine Gu

  • CFernandes Profile Picture
    8,396 Most Valuable Professional on at
    Re: Power automate flow from FORMS does not work if the attachment (which is not mandatory) is not added to the responses

    Hey @Claumna221827 - In Parse JSON you can modify the schema to handle null values..

     

    "test": {
    "type": ["number","null"]
    },

     

    I also see an error in your Parse JSON there is just >type {} > snippet from your schema below:

     

     "id": {
                    "type""string"
                },
                "type": {},
                "size": {
                    "type""integer"
                },
     

    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.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 560 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 347 Moderator

#3
Expiscornovus Profile Picture

Expiscornovus 262 Most Valuable Professional

Last 30 days Overall leaderboard

Featured topics

Restore a deleted flow