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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / JIRA Attachments Error
Power Automate
Unanswered

JIRA Attachments Error

(0) ShareShare
ReportReport
Posted on by 8

Hi all,

 

We are struggling with a Power Automate flow we have. It was working fine up until a few days ago.

 

The process is as follows.. submit a form through PowerApps and in flow we create a JIRA ticket, get attachments from SharePoint, loop through them, and POST to JIRA.

 

We are getting the following error:

 

Request to Azure Resource Manager failed with error: '{"error":{"code":"InvalidContentOperation","message":"Decoding as bytes is not supported for content envelope of type 'multipart/form-data' when the content property is not set."}}'.

 

Here is the flow setup

 

Screen Shot 2021-06-22 at 5.28.40 PM.png

and the code behind it

 

 

{
 "$content-type": "multipart/form-data",
 "$multipart": [
 {
 "headers": {
 "Content-Disposition": "form-data; name=\"file\"; filename=@{items('Apply_to_each_2')?['DisplayName']}"
 },
 "body": {
 "$content-type": "@{outputs('Compose_8')?['$content-type']}",
 "$content": @{body('Get_attachment_content_2')?['$content']}
 }
 }
 ]
 }

 

 

Any help would be appreciated! 

Categories:
I have the same question (0)
  • abm abm Profile Picture
    32,865 Most Valuable Professional on at

    Hi @dazftw 

     

    I did tested this and worked as expected. Please see below.

     

    image.png

     

    Above Compose2 expression is as follows:

     

    outputs('Get_file_content_using_path')?['body'].$content
     

    My Test Result. See below

     

    image.png

  • dazftw Profile Picture
    8 on at

    Ok, so that did get me one step closer.. now however I am getting a 401 unauthorized... How are you authenticating this HTTP request? We have been using username/pass but I feel like that could be causing the issue?

  • robert111111 Profile Picture
    4 on at

    how did you get this? i try to follow your guide @abm but has same error like @dazftw problem

     

    robert111111_0-1661345974091.png

     

  • elneki Profile Picture
    6 on at

    Hello All!

    Has anyone figure out how to solve this issue? I have tried all suggestions that I've found to no avail, including the one suggested in this post.

    Any help would be greatly appreciated.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard