Select the product you need help with
- Internet Explorer
- Windows Phone
- More products
"The File Exists" Error Message When You Upload Files by Using the Om_Sample Code Sample from the SharePoint Portal Server SDK
Article ID: 323622 - View products that this article applies to.
This article was previously published under Q323622
When you use the Om_sample code sample that is included in the SharePoint Portal Server Software Development Kit (SDK) to upload documents to the portal, you may receive the following error message:
You receive the error message when you run the following line of code:
The file exists
This issue may occur if the %SystemRoot%\Temp folder on the server contains more than 65,535 files. Each time you upload a file to the portal by using the code sample, a temporary file is created in the %SystemRoot%\Temp folder. The maximum number of files that the %SystemRoot%\Temp folder can contain is 65,535 files.
To work around this issue, upload files in groups of approximately 50,000 at any one time. After you upload each group of files, empty the contents of the %SystemRoot%\Temp folder on the server.
For more information about the SharePoint Portal Server SDK, visit the following Microsoft Web site: