CSV attachment corrupted which processed from email attachment Processed through Logic Apps

Mutthuluru Yashwanth Sai 0 Reputation points
2023-07-10T17:29:16.3566667+00:00

Hi Team,

I am currently processing an email attachment file (.csv) to ADLS Gen2 using Logic Apps. The file is successfully created when the email is received. However, I have noticed that the file stored in ADLS is getting corrupted.

Could you please assist me with resolving this issue?

Thank you.

Best regards,

Yash M

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,310 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Sonny Gillissen 3,356 Reputation points
    2023-07-11T18:05:08.89+00:00

    Hi Mutthuluru Yashwanth Sai ,

    Thank you for reaching out on Microsoft Q&A!

    As seen in your screenshot you're missing the contents of the file. The file itself is created because you've added in the filename, which basically is enough for creating the file itself. However, without contents it's not a valid file.

    You can add the contents by adding the following dynamic content to the 'Blob content' field:

    items('For_each')?['contentBytes']

    Please click “Accept answer” if you find this helpful. Feel free to drop additional queries in the comments below!

    Kind regards,

    Sonny

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.