Share via

when I use copy data (ADF) I get this message: The stream does not support concurrent IO read or write operations

2022-02-15T15:53:29.887+00:00

I am trying to copy json files from Blob storage to cosmos DB and I am getting the following message.

Operation on target PeriodoPersona failed: Failure happened on 'Sink' side. ErrorCode=UserErrorDocumentDBWriteError,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=Documents failed to import. Error message:The stream does not support concurrent IO read or write operations..,Source=Microsoft.DataTransfer.DocumentDbManagement,''Type=System.NotSupportedException,Message=The stream does not support concurrent IO read or write operations.,Source=System,'

Azure Data Factory
Azure Data Factory

An Azure service for ingesting, preparing, and transforming data at scale.


1 answer

Sort by: Most helpful
  1. KranthiPakala-MSFT 46,827 Reputation points Moderator
    2022-02-16T01:13:36.637+00:00

    Hello @Huaman Santos, Kremlin Stwart ,

    Thanks for the question and using MS Q&A platform.

    As per my understanding, you are receiving above error while trying to copy data from blob storage to cosmos DB.

    From previous cases, we have noticed this behavior due to concurrent connections, could you please try below and see if that helps.

    Set max concurrent connections to 1 on your pipeline data source configuration and try running the job. This should make the copy activity that moves data from blob storage to Cosmos DB run as expected.

    Hope this will help. Please let us know how it goes.

    ------------------------------

    • Please don't forget to click on 130616-image.png or upvote 130671-image.png button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how
    • Want a reminder to come back and check responses? Here is how to subscribe to a notification
    • If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators

    Was this answer helpful?


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.