ADLS Gen2 operation failed for: Operation returned an invalid status code 'Conflict'. Account: 'abc'. ErrorCode: 'EndpointUnsupportedAccountFeatures'. Message: 'This endpoint does not support BlobStorageEvents or SoftDelete.

manoj reddy 20 Reputation points
2024-12-21T17:12:26.5366667+00:00

I am new to ADF. while creating linked service for data lake storage Gen2 I am getting a error ADLS Gen2 operation failed.

User's image

ADLS Gen2 operation failed for: Operation returned an invalid status code 'Conflict'. Account: 'abc'. ErrorCode: 'EndpointUnsupportedAccountFeatures'. Message: 'This endpoint does not support BlobStorageEvents or SoftDelete. Please disable these account features if you would like to use this endpoint.'. RequestId: '0e7f7d73-e01f-005b-0bc9-533c4f000000'.

Operation returned an invalid status code 'Conflict'

Azure Data Lake Storage
Azure Data Lake Storage
An Azure service that provides an enterprise-wide hyper-scale repository for big data analytic workloads and is integrated with Azure Blob Storage.
1,511 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,049 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,093 questions
0 comments No comments
{count} votes

Accepted answer
  1. hossein jalilian 9,310 Reputation points
    2024-12-21T19:19:32.6766667+00:00

    Thanks for posting your question in the Microsoft Q&A forum.

    The error you're encountering is due to the Azure Data Lake Storage Gen2 account having BlobStorageEvents or SoftDelete features enabled, which are not supported by the endpoint you're trying to use in Azure Data Factory. To resolve this issue, you need to disable these features on your storage account

    Go to your Azure Storage account in the Azure portal, navigate to the Data protection section under Data management. and in the Recovery section, disable the following options:

    • Turn off "Enable soft delete for blobs"
    • Turn off "Enable soft delete for containers"
    • Disable any blob storage event settings if enabled

    Save the changes and wait for a few minutes for the settings to propagate, Return to Azure Data Factory and try creating the linked service again.


    Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Sina Salam 14,551 Reputation points
    2024-12-21T19:35:20.33+00:00

    Hello manoj reddy,

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

    I understand that you are facing a challenges ADLS Gen2 operation failed for: Operation returned an invalid status code 'Conflict' and connection failed error.

    The error message suggests that the linked service in Azure Data Factory (ADF) failed and it's encountering issues because your Azure Data Lake Storage Gen2 (ADLS Gen2) account has features like BlobStorageEvents or SoftDelete enabled, which are incompatible with the current operation.

    Below are the steps with the appropriate links to resolve the issue:

    1. Disabling Soft Delete and Blob Storage Events - https://learn.microsoft.com/en-us/azure/storage/blobs/soft-delete-blob-overview and https://learn.microsoft.com/en-us/azure/storage/blobs/storage-blob-event-overview
    2. Verifying Storage Account Type - https://learn.microsoft.com/en-us/azure/storage/common/storage-account-overview
    3. Enable hierarchical namespace for Azure Data Lake Storage Gen2 - https://learn.microsoft.com/en-us/azure/storage/blobs/data-lake-storage-namespace
    4. Granting Necessary Permissions - https://learn.microsoft.com/en-us/azure/role-based-access-control/built-in-roles#storage-blob-data-contributor
    5. Assign Azure roles using the Azure portal - https://learn.microsoft.com/en-us/azure/role-based-access-control/role-assignments-portal
    6. Linked Services in Azure Data Factory - https://learn.microsoft.com/en-us/azure/data-factory/linked-services

    I hope this is helpful! Do not hesitate to let me know if you more steps and 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.

    1 person found this answer helpful.
    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.