question

sam57 avatar image
1 Vote"
sam57 asked ChaitanyaNaykodiMSFT-9638 commented

Logic App sFTP get file content - duplicate content

When we are trying to read data from an FTP server using the sFTP - SSH get file content action we have an issue when the file is larger than the chunk size. When this happens, the action reads the file until the chunk size and then appends the beginning of the file again.

So to give an example, our file looks like this
<?xml>
<root>
<branch>some_data</branch>
<branch>some other data</branch>
</root>

after the action downloaded it from the sFTP server it looks like this in the logic app:
<?xml>
<root>
<branch>some_data</branch>
<?xml>
<root>

Is this a known bug? This does not happen when the file is smaller than the chunk size.

azure-logic-apps
· 5
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello @sam57, Thank you for reaching out. According to the documentation Get File Content reads the complete file and implicitly uses message chunking. Can you tell me if you have you set the chunking to a specific size between 5MB - 50 MB ? And did you observe any timeouts for the file which has the content missing?


0 Votes 0 ·
sam57 avatar image sam57 ChaitanyaNaykodiMSFT-9638 ·

At first I did not set the chunking size manually, but we had files of over 100mb big. And the run failed. So in order to debug it (working with 100mb files is slow), I set the chunking size to 5mb and used a file of 5.1mb. Same error as with the 100mb one...

And no, there are no timeouts.

1 Vote 1 ·

One more thing: the duplicate content happens despite the "Infer Content Type" setting. If this is set to "no", the base64 encoded string also contains the duplicate data.

1 Vote 1 ·
DanielTom-0781 avatar image DanielTom-0781 ChaitanyaNaykodiMSFT-9638 ·

Any update on this? Issue is still persisting

0 Votes 0 ·

Hello @DanielTom-0781, as additional information required to help resolve the issue was not provided, we could not conclude on this issue. Can you please create a new question on this platform with any observations made? so that it is easier for us to track this issue.

0 Votes 0 ·

0 Answers