while copying file from blobstorage and writing in to Azure File Share using create file in Azure logic APP creates blank files with NULL contents

Nikhil Nair 6 Reputation points
2022-11-25T07:03:27.037+00:00

0

I am getting blank files (files with null values) with size of 3MB.while creating it through Logic APP after copying from blob and create file using create file trigger using File Share connector. the file shows size after creating in fileshare location but while opens nothing is there and all contents are empty. How to overcome this issue. any alternatives.

Azure Storage
Azure Storage
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Carlos Solís Salazar 18,291 Reputation points MVP Volunteer Moderator
    2022-11-25T11:56:19.24+00:00

    Hi @Nikhil Nair

    Thank you for asking this question on the **Microsoft Q&A Platform. **

    If the process of coping the files is a one-time job, you can use AzCopy

    If this is a recurring task you can use an Automation Account with a PowerShell Runbook In this last scenario, if you don't what that the process run at a specific time, you can use a Logic App as a trigger to the Automation Account (Using webhook)

    Hope this helps!

    ----------

    Accept Answer and Upvote, if any of the above helped, this thread can help others in the community looking for remediation for similar issues.
    NOTE: To answer you as quickly as possible, please mention me in your reply.

    1 person found this answer helpful.

  2. MayankBargali-MSFT 70,991 Reputation points Moderator
    2022-11-25T11:44:39.217+00:00

    @Nikhil Nair Thanks for reaching out. Please share your workflow and configuration. To troubleshoot the issue, I will suggest you to verify that you are passing the content bytes (File content parameter) correctly to your action Create File of your Azure File share connector along with the name and file extension is passed correctly (File name parameter) on your action.

    **Note: ** You should pass the binary content.

    Simple flow to copy single file from storage to file store:
    265516-image.png

    Copy all the files from storage folder to file store:
    265569-image.png

    The above is just for reference and you can update the workflow as per your business needs along with passing the dynamics values.


Your answer

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