For anyone else who comes across this, this workaround did not fix the issue we face.
- First, as of Dec 2021 the reference to body('Compose') is an empty string, so an SFTP-SSH Create File succeeds but because it has to write nothing. The appropriate reference should be output('Compose') which returned our 75MB plus content, but resulted in the same error "...exceeded the maximum..."
- Second, but it should not make a difference, our source for content is not a string variable, but rather in a reference to the content of an AS2 Decode action. We assigned it to the Inputs of the Compose using base64ToString(body('Decode_AS2_message')?['AS2Message']?['Content']). We had to wrap it in the base64 to string otherwise the resulting SFTP-SSH file is written out as base64 encoded.
Third, just to check if the detail that the source for content is a string, we added a string variable and assigned the AS2 Decode content to it as shown above, then assigned the string to the Compose shape, etc.
Net: This made no difference. The error still occurs. It is not a fix for this error.