'Get File Content' step with sharepoint connection in the logic app

M.K 0 Reputation points
2024-12-16T14:51:15.6633333+00:00

Hello,

I’m trying to retrieve an Excel file from SharePoint and generate a copy of it on a file server. While a file is successfully generated, some rows from the original Excel file are consistently missing in the output. What could be causing this issue? The original files are only around 16KB in size.

User's image

User's image

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,279 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
11,004 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Khadeer Ali 1,400 Reputation points Microsoft Vendor
    2024-12-16T22:50:15.4433333+00:00

    @M.K ,

    There might be few scenarios where some rows are missing when retrieving the Excel File form SharePoint.

    • The file might still be locked or open, leading SharePoint to serve a cached or incomplete version.
    • There could be a format or encoding issue causing Logic Apps to misinterpret parts of the file.

    To rule out retrieval issues, we can try fetching the file using 'Get File Content Using Path', which ensures we reference the correct version explicitly. Before this use a Compose action or log the raw content from Get File Content before creating the file. This will confirm if the issue is during retrieval or file creation.

    2 people found this answer helpful.

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.