Cannot bulk load because the file "1427664189517725696/export-705810599278007420.tmp" could not be opened. Operating system error code 5(Access is denied.).

Ayush Shrivastava 120 Reputation points
2024-09-12T12:59:45.22+00:00

Cannot bulk load because the file "1427664189517725696/export-705810599278007420.tmp" could not be opened. Operating system error code 5(Access is denied.).

This error occurs when I try to run bulk insert query. This was working a few days back but its not working now.

Weird thing is, the same query works in a fella developers MacBook and not mine.

Running this using JDBC.

Azure SQL Database
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
3,202 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Sina Salam 22,031 Reputation points Volunteer Moderator
    2024-09-12T19:15:40.16+00:00

    Hello Ayush Shrivastava,

    Welcome to the Microsoft Q&A and thank you for posting your questions here.

    I understand that you have an Operating system error code 5(Access is denied.) while running bulk insert query using JDBC.

    This error could happen to any executable file not because it's Azure SQL query or Azure Blob storage, it is a permission issue. You can use your SQL Server service account that have rwx to run the query, and make sure SQL Server has access to the entire folder as well as checking that firewall setting is not blocking access to the file.

    The links below will guide you for similar question and more details:

    I hope this is helpful! Do not hesitate to let me know if you have any other questions.

    Please don't forget to close up the thread here by upvoting and accept it as an answer if it is 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.