Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Suggested answer

Upload files to Dalux : Content range issue

(2) ShareShare
ReportReport
Posted on by
Hello,
 
I tried to create a flow, which extract the file from one CDE to upload it in another one (Dalux). I reach to download the files. But, I always have an error :
        "httpStatusCode": 400,
        "errorCode": "E40004",
        "errorCodeMessage": "HeaderValidationFailed",
        "message": "Missing or invalid Content-Range Header (remember to include length)",
        "logTime": "2025-07-16T14:27:34.3455295Z"
 
I don't understand because my code respect the syntaxe :
"Content-Range": "@{concat('bytes ',string(variables('Debut')),'-', string(sub(outputs('Compose_1'),1)), '/', string(outputs('Compose_1')))}"
 
This is the extract of Dalux documentation : 
      - in: header
        name: Content-Range
        description: The indices of the bytes of the part of the file being uploaded, along with the total number of bytes
        required: true
        schema:
          type: object
          format: "Content-Range: bytes <start index>-<end index>/<total bytes>"
          example: bytes 0-255/256
 
To check the size of the files, I used to way : 
- lenght(base64tobinary(variable(chunk)
- I also get it from the metadatas from the initial CDE where I download the file.
 
I try to do a script on Python to do the same operation and it's work. So I don't understand what is the issue with Power Automate. Would you have any tips ?
 
Thansk in advance
 
  • Suggested answer
    Srinivas Kadamati Profile Picture
    3,150 Super User 2025 Season 1 on at
    Upload files to Dalux : Content range issue
     
    If the content Range is fixed, can you try hardcoding the value first then check
    Also you can place a Compose action and pass your expression(concat('bytes ',string(variables('Debut')),'-', string(sub(outputs('Compose_1'),1)), '/', string(outputs('Compose_1'))))t o see whether the value you're getting is correct
     

    (If this answers your question you can mark as Answered and give it a Like)

    Regards,
    Srini
     
     
  • Tomac Profile Picture
    693 Super User 2025 Season 1 on at
    Upload files to Dalux : Content range issue
    On a failed run, can you show us the inputs of the action that failed so we can see exactly what Power Automate is evaluating that string as?
     
    This will help in determining the issue at hand.

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1