%3CLINGO-SUB%20id%3D%22lingo-sub-1992139%22%20slang%3D%22en-US%22%3EThe%20provided%20file%20size%20'xxxxxxxxx'%20for%20the%20create%20or%20update%20operation%20exceeded%20the%20maximum%20allowed%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1992139%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSTRONG%3EScenario%3A%3C%2FSTRONG%3E%3CBR%20%2F%3EWithin%20Logic%20App%20constructing%20a%20string%20variable%20-%20sendtosftp%3CBR%20%2F%3EUsing%20this%20data%20creating%20a%20new%20file%20on%20the%20SFTP%20server.%3CBR%20%2F%3EIf%20the%20constructed%20variable%20size%20exceeds%2050%20MB%20size%20limit%2C%20get%20an%20error%20similar%20to%3A%3C%2FP%3E%0A%3CDIV%3E%0A%3CDIV%3E%3CSPAN%3E%7B%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%22status%22%3C%2FSPAN%3E%3CSPAN%3E%3A%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E400%3C%2FSPAN%3E%3CSPAN%3E%2C%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%22message%22%3C%2FSPAN%3E%3CSPAN%3E%3A%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%22The%26nbsp%3Bprovided%26nbsp%3Bfile%26nbsp%3Bsize%26nbsp%3B'58100000'%26nbsp%3Bfor%26nbsp%3Bthe%26nbsp%3Bcreate%26nbsp%3Bor%26nbsp%3Bupdate%26nbsp%3Boperation%26nbsp%3Bexceeded%26nbsp%3Bthe%26nbsp%3Bmaximum%26nbsp%3Ballowed%26nbsp%3Bfile%26nbsp%3Bsize%26nbsp%3B'52428800'%26nbsp%3Busing%26nbsp%3Bnon-chunked%26nbsp%3Btransfer%26nbsp%3Bmode.%26nbsp%3BPlease%26nbsp%3Benable%26nbsp%3Bchunked%26nbsp%3Btransfer%26nbsp%3Bmode%26nbsp%3Bto%26nbsp%3Bcreate%26nbsp%3Bor%26nbsp%3Bupdate%26nbsp%3Blarge%26nbsp%3Bfiles.%5Cr%5CnclientRequestId%3A%20xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx%22%3C%2FSPAN%3E%3CSPAN%3E%2C%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%22error%22%3C%2FSPAN%3E%3CSPAN%3E%3A%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%7B%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%22message%22%3C%2FSPAN%3E%3CSPAN%3E%3A%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%22The%26nbsp%3Bprovided%26nbsp%3Bfile%26nbsp%3Bsize%26nbsp%3B'58100000'%26nbsp%3Bfor%26nbsp%3Bthe%26nbsp%3Bcreate%26nbsp%3Bor%26nbsp%3Bupdate%26nbsp%3Boperation%26nbsp%3Bexceeded%26nbsp%3Bthe%26nbsp%3Bmaximum%26nbsp%3Ballowed%26nbsp%3Bfile%26nbsp%3Bsize%26nbsp%3B'52428800'%26nbsp%3Busing%26nbsp%3Bnon-chunked%26nbsp%3Btransfer%26nbsp%3Bmode.%26nbsp%3BPlease%26nbsp%3Benable%26nbsp%3Bchunked%26nbsp%3Btransfer%26nbsp%3Bmode%26nbsp%3Bto%26nbsp%3Bcreate%26nbsp%3Bor%26nbsp%3Bupdate%26nbsp%3Blarge%26nbsp%3Bfiles.%22%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%7D%2C%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%22source%22%3C%2FSPAN%3E%3CSPAN%3E%3A%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%22sftpwithssh-eus.azconn-eus.p.azurewebsites.net%22%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%3CSPAN%3E%7D%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%3CSPAN%3EThis%20issue%20happens%20even%20though%20%22Allow%20Chunking%22%20property%20is%20set%20to%20%22On%22.%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%3E%0A%3CP%3E%3CSTRONG%3EResolution%3A%3C%2FSTRONG%3E%3CBR%20%2F%3EBefore%20sending%20the%20data%20to%20SFTP%2C%20create%20a%20Componse%20action%20and%20set%20its%20value%20to%20the%20previous%20string%20variable.%3CBR%20%2F%3EAdd%20the%20%22body%22%20to%20the%20Compose%20action.%3C%2FP%3E%0A%3CP%3Ee.g.%3C%2FP%3E%0A%3CDIV%3E%0A%3CDIV%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%22Compose%22%3C%2FSPAN%3E%3CSPAN%3E%3A%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%7B%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nb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%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%22inputs%22%3C%2FSPAN%3E%3CSPAN%3E%3A%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%7B%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%22body%22%3C%2FSPAN%3E%3CSPAN%3E%3A%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%22%40body('Compose')%22%3C%2FSPAN%3E%3CSPAN%3E%2C%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-1992139%22%20slang%3D%22en-US%22%3E%3CP%3EThe%20provided%20file%20size%20xxxxxxxxx%20'58100000'%20for%20the%20create%20or%20update%20operation%20exceeded%20the%20maximum%20allowed%20file%20size%20'52428800'%20using%20non-chunked%20transfer%20mode.%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1992139%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ELogic%20Apps%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Microsoft

Scenario:
Within Logic App constructing a string variable - sendtosftp
Using this data creating a new file on the SFTP server.
If the constructed variable size exceeds 50 MB size limit, get an error similar to:

{
  "status": 400,
  "message": "The provided file size '58100000' for the create or update operation exceeded the maximum allowed file size '52428800' using non-chunked transfer mode. Please enable chunked transfer mode to create or update large files.\r\nclientRequestId: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "error": {
    "message": "The provided file size '58100000' for the create or update operation exceeded the maximum allowed file size '52428800' using non-chunked transfer mode. Please enable chunked transfer mode to create or update large files."
  },
  "source": "sftpwithssh-eus.azconn-eus.p.azurewebsites.net"
}
This issue happens even though "Allow Chunking" property is set to "On".
 

Resolution:
Before sending the data to SFTP, create a Compose action and set its value to the previous string variable.
Add the "body" to the Compose action.

e.g.

 "Compose": {
                "inputs": {
                    "body": "@variables('sendtosftp')"
                },
                "runAfter": {
                    "Until": [
                        "Succeeded"
                    ]
                },
                "type": "Compose"
            },
            "Create_file": {
                "inputs": {
                    "body": "@body('Compose')",