program crashes on all files

May 21, 2012 at 2:58 AM

I created a for each loop to recursivly upload around 1000 folders full of data using this application and the first couple hundred went just swimmingly, but then for no reason that I can figure out, the program decided its going to crash on every folder with content that needs uploading.   This client will probably fire me for this, but just in case they dont, a little insight would be very appreciated!

The following is the command issued by the batch file, followed by the exception it throws:

 

C:\scripts\nike-with-files>(
mkdir "z:\SET2409 Action Sports Summit\design_archive"
 mkdir "z:\SET2409 Action Sports Summit\project_management_archive"
 C:\Users\administrator.SETMGMT\Desktop\SPBatchImport\OrbitOne.SharePoint.Import
er.exe -folder:"z:\SET2409 Action Sports Summit\Design" -site:"http://sharepoint
.set2launch.com/nike/action-sports/set2409" -documentlibrary:Design -archive:"z:
\SET2409 Action Sports Summit\design_archive"
 C:\Users\administrator.SETMGMT\Desktop\SPBatchImport\OrbitOne.SharePoint.Import
er.exe -folder:"z:\SET2409 Action Sports Summit\Project Management" -site:"http:
//sharepoint.set2launch.com/nike/action-sports/set2409" -documentlibrary:"Projec
t Management" -archive:"z:\SET2409 Action Sports Summit\Project_Management_archi
ve"
)
INFO - Configuring application
INFO - Initializing Sharepoint Connection
INFO - Initializing Validation
INFO - Initializing data source: File system: z:\SET2409 Action Sports Summit\De
sign
INFO - Number of files: 0
INFO - Number of folders: 9
INFO - Number of empty folders: 9
INFO - Total file size: 0 bytes
INFO - Start Import
INFO - Import finished
INFO - Import completed.
INFO - Configuring application
INFO - Initializing Sharepoint Connection
INFO - Initializing Validation
INFO - Initializing data source: File system: z:\SET2409 Action Sports Summit\Pr
oject Management
INFO - Number of files: 8
INFO - Number of folders: 16
INFO - Number of empty folders: 15
INFO - Total file size: 28.71 MB
INFO - Start Import

Unhandled Exception: Microsoft.SharePoint.Client.ServerException: Exception from
 HRESULT: 0x80131904
   at Microsoft.SharePoint.Client.ClientRequest.ProcessResponseStream(Stream res
ponseStream)
   at Microsoft.SharePoint.Client.ClientRequest.ProcessResponse()
   at Microsoft.SharePoint.Client.ClientRequest.ExecuteQueryToServer(ChunkString
Builder sb)
   at Microsoft.SharePoint.Client.ClientRequest.ExecuteQuery()
   at Microsoft.SharePoint.Client.ClientRuntimeContext.ExecuteQuery()
   at Microsoft.SharePoint.Client.ClientContext.ExecuteQuery()
   at OrbitOne.SharePoint.Importer.SharePoint.DocumentLibraryRepository.EnsureCo
lumn(String fieldName, ClientContext context)
   at OrbitOne.SharePoint.Importer.SharePoint.DocumentLibraryRepository.EnsureIn
itialized()
   at OrbitOne.SharePoint.Importer.SharePoint.DocumentLibraryRepository.GetFilen
amesWithSource()
   at OrbitOne.SharePoint.Importer.SharePoint.SharePointImportDestination.get_Ex
istingFilenames()
   at OrbitOne.SharePoint.Importer.SharePoint.FlatListSharePointDestination.get_
NameResolver()
   at OrbitOne.SharePoint.Importer.SharePoint.FlatListSharePointDestination.Impo
rt(ImportItem importItem)
   at OrbitOne.SharePoint.Importer.DocumentImporter.Execute()
   at OrbitOne.SharePoint.Importer.CommandLine.Program.Main(String[] args)

May 21, 2012 at 10:11 AM

The error: HRESULT: 0x80131904 seems to be a login fail for SQL server - does the user that runs the program have upload permission to the doc lib?

 

May 21, 2012 at 7:08 PM

yes the user does - the user is the domain administrator account