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 / Error when using Kaiza...
Power Automate
Answered

Error when using Kaizala upload media from attachment

(0) ShareShare
ReportReport
Posted on by 12

Hi All,

 

I'm having an issue using the Kaizala - Upload Media from Attachment action.  I get the error message: 

{"statusCode":500,"headers":{"Access-Control-Allow-Origin":"*","Date":"Wed, 06 Jan 2021 13:21:38 GMT","Content-Length":"175","Content-Type":"application/json"},"body":{"message":"ProcessUploadAttachement: Problem in Parsing the JSON. Unable to cast object of type 'Newtonsoft.Json.Linq.JValue' to type 'Newtonsoft.Json.Linq.JObject'."}}d

 

In the flow, I'm getting an attachment from an email and trying to post it to Kaizala.  I have to first save the attachment in a string variable.

 

Kaizala Upload.png

 

If I try to put the contents directly in the media file box, I get: 

Media File Direct.png

 

Flow save failed with code 'OpenApiOperationParameterValidationFailed' and message 'Input parameter 'request' validation failed in workflow operation 'Upload_media_from_attachment_2': The parameter with value '"@items('For_Each_Attachment')?['contentBytes']"' in path 'request/fileContent' with type/format 'String/byte' is not convertible to type/format 'Object'.'.

 

 

I saw another user having an issue with uploading media to Kaizala and getting the same error message I'm getting.  It was on a separate post that had already been solved, so I wanted to create a new one.

 

Thanks in advance.

Categories:
I have the same question (0)
  • v-litu-msft Profile Picture
    Microsoft Employee on at

    Hi @bkilby,

     

    The upload field only supports base64 format code, so you should use Get attachment action to get the Email attachment base64 code, then use it to upload to the Kaizala:

    Screenshot 2021-01-07 102609.jpg

    Best Regards,
    Community Support Team _ Lin Tu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • bkilby Profile Picture
    12 on at

    Thanks for your help, but it is still giving the same error message when I try to save.

     

    bkilby_0-1610023832935.png

    It's as if the Kaizala upload is looking for an object rather than a string.

  • Verified answer
    bkilby Profile Picture
    12 on at

    I found the answer on another Microsoft certified blog https://mixtricks.net/power-automate/when-new-email-arrives-send-to-kaizala-group/ 

     

    He uses a object variable to format the proper JSON that the Kaizala action is looking for.  

     

    Solution.png

     

    The only change I had to make is in the JSON double quotes have to be added around the Content-Type but not the Content Bytes. 

    { "$content-type":"<Attachment Content-Type>", "$content":<Attachment Content Bytes> }

     

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
David_MA Profile Picture

David_MA 77 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 68

#3
Expiscornovus Profile Picture

Expiscornovus 56 Most Valuable Professional

Last 30 days Overall leaderboard