abdallah1973
asked on
Upload error When upload large file to sSarePoint 2013
Hi guys,
I have created the following code to read a file from SQL database, copy it to C drive and then upload to SharePoint 2013. The file uploaded if it's less or equal to 300 MB but if it's over is provide the following error.
4/15/2018 2:23:32 PM: Error Message :: Object reference not set to an instance of an object.Error StackTrace :: at PP.WindowService.PPSPSync. PMWebSPSyn c.UploadDo cument(Str ing siteURL, String documentListName, String documentListURL, String documentName, Byte[] documentStream, Int64 DocumentTypeId, String ProjectNumber, Int64 DocumentId, Int64 FileContentId, Int64 PhaseID, String FilePath, String LocalFileName) in D:\v24\pp.WindowService.PS PSync\PMWe bSPSync.cs :line 466
at PP.WindowService.PPSPSync. PMWebSPSyn c.ProcessD ata(DataRo w row) in D:\v24\PP.WindowService.PP SPSync\PPS PSync.cs:l ine 591
What is the solution?
PPSync2.cs
I have created the following code to read a file from SQL database, copy it to C drive and then upload to SharePoint 2013. The file uploaded if it's less or equal to 300 MB but if it's over is provide the following error.
4/15/2018 2:23:32 PM: Error Message :: Object reference not set to an instance of an object.Error StackTrace :: at PP.WindowService.PPSPSync.
at PP.WindowService.PPSPSync.
What is the solution?
PPSync2.cs
I don't know if it's a coincidence, but 300MB is also the default size for the Solution Cache. You might try modifying that and see if that's the cause -
https://docs.microsoft.com/en-us/sharepoint/install/software-boundaries-and-limits
Also check these limits:
https://blogs.technet.microsoft.com/sammykailini/2013/11/06/how-to-increase-the-maximum-upload-size-in-sharepoint-2013/
https://blogs.technet.microsoft.com/anneste/2014/06/12/sharepoint-2013-maximum-upload-size-changed/
https://docs.microsoft.com/en-us/sharepoint/install/software-boundaries-and-limits
Also check these limits:
https://blogs.technet.microsoft.com/sammykailini/2013/11/06/how-to-increase-the-maximum-upload-size-in-sharepoint-2013/
https://blogs.technet.microsoft.com/anneste/2014/06/12/sharepoint-2013-maximum-upload-size-changed/
ASKER
i still check your observations
This question needs an answer!
Become an EE member today
7 DAY FREE TRIALMembers can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
the transfer layer deletes the partial file and returns. The next step doesn't validate if the filetransfer was completed or not but just starts to process the file.... which is not there (giving an invalid object reference).
Try to find what the upload/download limits for this installation is.