SAF(NET) = STEPHEN A. FUQUA operating on the Web since 1995

Stephen is a web developer, Bahá'í, and interfaith activist in St. Paul, Minnesota. He likes to write about religion, social justice, sustainability, science, programming, &c.

February 13, 2008

SSIS: Suddenly Can't Write to Buffer

Problem: periodically, one of my SSIS packages was throwing an error saying "The buffer manager cannot create a temporary storage file on any path in the BufferTempStoragePath property. There is an incorrect file name or no permission." The package in question then would hang, locking a file that it was trying to import.

Solution: The BufferTempStoragePath is kind of self explanatory. As usual, Jamie Thomson's SQL Junkie blog has an excellent article that gives useful background on the issue, in Dataflow mechanics. He also points to my other favorite SSIS reference, Microsoft SQL Server 2005 Integration Services, by Kirk Haselden. Apparently my package needed to write some data out to the buffer and did not have proper permissions, just as the error says. So, where is this buffer? Neither THomson nor Haselden address this, but Haselden does answer an asked question: why does my package usually succeed, only rarely failing? "The Data Flow Task only uses the BufferTempStoragePath when it runs out of memory and must spool buffers out to disk." (p422)

In a random forum I found someone mentioning that the default buffer location is in c:\documents and settings\<username>\.... Well, there's my problem — the user executing the package does not have such a directory. No wonder it failed. Thankfully there is an override at the package level: you can directly set the path in a Data Flow diagram's properties.

TrackBack

Comments

Post a comment

Remember personal info?




deprecated

On safnet.com

Other sites managed or developed by S.A.F.

S.A.F. elsewhere on the web

  • LinkedIn
    LinkedIn can actually be useful when looking for prospective hires and business or organizational partners
  • GoodReads
    A fun and relatively-unknown social networking site geared towards one's book list
  • Live Journal
    Mirror of the blog at safnet.com, so that a few LJ friends can more easily read and comment there