none
Pipeline component failing for writing some of the files to network location with "Insufficient system resources exist to complete the requested service." RRS feed

  • Question

  • Hi All,

    We are writing to the file share network location through BizTalk send C# custom pipeline component. There are some reasons due to which we are not using FILE adapter.

    In one execution there are thousands of files and while writing to the share, not for all files but some of the files are unable to get written with error “Insufficient system resources exist to complete the requested service.

    Files which are failing are not more than 50 KB files even though more than that, same or less size files are successfully getting written of the same execution.

    Application is multi-threaded with separate assigned send host.

    Here in code fs is the source file data type of System.IO.Stream

    using (FileStream output = new FileStream(destinationLocation, FileMode.CreateNew, FileAccess.Write))

                        {

                           fs.CopyTo(output);

                            fs.Dispose();

                        }

    Any inputs to handle this in code ?


    Wednesday, October 2, 2019 4:07 PM

All replies

  • You would have to do some monitoring on it to look for memory and thread usage to identify what resource is the issue.

    Can you let us know why you don't want to use the FILE adapter?  Possibly we can address that issue and then BizTalk will take care of ensuring that you don't use too much memory or threads.

    Wednesday, October 2, 2019 7:54 PM