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 Automate
Suggested Answer

Bug in Send Data

(0) ShareShare
ReportReport
Posted on by
I am trying to use Send Data to send log data to Log Analytics and it comes back with a LengthRequired error.
The connector has no ability to set headers or the length so how does this ever work?
Thanks.
Screenshot 2026-06-18 171632.png
Categories:
I have the same question (0)
  • Suggested answer
    Sunil Kumar Pashikanti Profile Picture
    2,195 Moderator on at
     
    An HTTP 411 Length Required error usually means the request reached Log Analytics without a valid payload size. In Power Automate, this often happens when the Send Data action cannot properly interpret the body.

    A few things to check:

    1. Use a JSON array: The Log Analytics API expects an array, even for a single record. For example:
    [  
         {    
              "LogMessage": "Test",    
              "Status": "Success"  
         }
    ]

    2. Ensure the body is correctly parsed If you are passing dynamic content, wrap it to make the type explicit:
         json(body('Compose'))
    or
         string(outputs('YourData'))
     
    3. Avoid empty inputs If the payload is null or empty, the connector may send a zero-length request, which triggers this error. Add a check before calling the action.

    In most cases, fixing the payload structure or casting the input resolves the issue without needing to switch to the HTTP action.
     
    ✅ If this answer helped resolve your issue, please mark it as Accepted so it can help others with the same problem.
    👍 Feel free to Like the post if you found it useful.

    Sunil Kumar Pashikanti, Moderator
    Blog: https://sunilpashikanti.com/posts/

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 462

#2
Vish WR Profile Picture

Vish WR 256

#3
David_MA Profile Picture

David_MA 242 Super User 2026 Season 1

Last 30 days Overall leaderboard