I have the following error in a flow. My second attachment isn’t mandatory so when users keeps it empty I am getting this error. Anyone can help me solving this?
My schema is as following:
{
"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"
]
}
}
Dear @ManishJain ,
I didn't get the first sentence, what do you mean by do compose of attachments variable as well and provide that?
Just want to ask you if any availability to schedule a ms teams call and help me with it?
Hi @roymaalouf ,
Please do compose of Attachments variable as well and provide that . I think you are using Attachments array as input for Apply to each and same variable in Condition as per screenshot. Check for Current Item to be null or non null .
Thanks
Parse schema is as following:
looks like you have not shared the entire json which contains 'content' and what you need to do to overcome null thing is define like this
"content": {
"type": ["string","null"]
}
Thanks
InvalidTemplate. Unable to process template language expressions in action 'Parse_JSON' inputs at line '0' and column '0': 'Required property 'content' expects a value but got null. Path ''.'.
This is the error!
I can't put id or driveid in condition since i created get file content after the condition! so they will not appear in condition entries! Please i need to solve this
Hi @roymaalouf ,
If I get it right your current item is not null but driveid or id is null as a result when you try to get content from sharepoint it fails. Please check your data what is coming as null and put that in the condition.
Thanks
Sorry for bothering you! I am using the following expression:
Current item is equal to null
any recommendation?
Hi @roymaalouf ,
The condition that you are putting to check if the attachment is null is not right. that is why it is going inside that parse json route which is only for Valid attachment. Please check the expression you are using to check null attachment.
Thanks
Michael E. Gernaey
497
Super User 2025 Season 2
David_MA
436
Super User 2025 Season 2
Riyaz_riz11
244
Super User 2025 Season 2