Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Background:

  1. I followed this article http://www.kraftkennedy.com/blog/bid/101982/Creating-Edit-Item-Forms-for-Document-Libraries-in-SharePoint-Designer-2010
  2. I did not delete any of the fields yet
  3. The new editform2.aspx is set to default
  4. I upload a file ~100 kb and editform2.aspx takes my data entry and everything works
  5. I upload a file ~7+ MB and editform2.aspx takes my data and upon save I get following error. Can anyone please suggest a fix?

Browser Error

Server Error in '/' Application.
--------------------------------------------------------------------------------

<nativehr>0x81020030</nativehr><nativestack></nativestack>The URL 'Shared Documents/test.pdf' is invalid.  It may refer to a nonexistent file or folder, or refer to a valid file or folder that is not in the current Web. 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.Runtime.InteropServices.COMException: <nativehr>0x81020030</nativehr><nativestack></nativestack>The URL 'Shared Documents/test.pdf' is invalid.  It may refer to a nonexistent file or folder, or refer to a valid file or folder that is not in the current Web.

Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  

Stack Trace: 


[COMException (0x81020030): <nativehr>0x81020030</nativehr><nativestack></nativestack>The URL 'Shared Documents/test.pdf' is invalid.  It may refer to a nonexistent file or folder, or refer to a valid file or folder that is not in the current Web.]
   Microsoft.SharePoint.Library.SPRequestInternalClass.AddOrUpdateItem(String bstrUrl, String bstrListName, Boolean bAdd, Boolean bSystemUpdate, Boolean bPreserveItemVersion, Boolean bPreserveItemUIVersion, Boolean bUpdateNoVersion, Int32& plID, String& pbstrGuid, Guid pbstrNewDocId, Boolean bHasNewDocId, String bstrVersion, Object& pvarAttachmentNames, Object& pvarAttachmentContents, Object& pvarProperties, Boolean bCheckOut, Boolean bCheckin, Boolean bMigration, Boolean bPublish, String bstrFileName, ISP2DSafeArrayWriter pListDataValidationCallback, ISP2DSafeArrayWriter pRestrictInsertCallback, ISP2DSafeArrayWriter pUniqueFieldCallback) +0
   Microsoft.SharePoint.Library.SPRequest.AddOrUpdateItem(String bstrUrl, String bstrListName, Boolean bAdd, Boolean bSystemUpdate, Boolean bPreserveItemVersion, Boolean bPreserveItemUIVersion, Boolean bUpdateNoVersion, Int32& plID, String& pbstrGuid, Guid pbstrNewDocId, Boolean bHasNewDocId, String bstrVersion, Object& pvarAttachmentNames, Object& pvarAttachmentContents, Object& pvarProperties, Boolean bCheckOut, Boolean bCheckin, Boolean bMigration, Boolean bPublish, String bstrFileName, ISP2DSafeArrayWriter pListDataValidationCallback, ISP2DSafeArrayWriter pRestrictInsertCallback, ISP2DSafeArrayWriter pUniqueFieldCallback) +420

[SPException: The URL 'Shared Documents/test.pdf' is invalid.  It may refer to a nonexistent file or folder, or refer to a valid file or folder that is not in the current Web.]
   Microsoft.SharePoint.WebPartPages.DataFormWebPart.UpdateCallback(Int32 affectedRecords, Exception ex) +24356681
   System.Web.UI.DataSourceView.Update(IDictionary keys, IDictionary values, IDictionary oldValues, DataSourceViewOperationCallback callback) +4065620
   Microsoft.SharePoint.WebPartPages.DataFormWebPart.FlatCommit() +312
   Microsoft.SharePoint.WebPartPages.DataFormWebPart.HandleOnSave(Object sender, EventArgs e) +24
   Microsoft.SharePoint.WebControls.SaveButton.OnBubbleEvent(Object source, EventArgs e) +727
   System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +70
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +29
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2981

ULS Log: Totally false error. We have nothing but space. and following error does not happen with large file when using EditForm.aspx

SqlError: 'The transaction log for database 'Content_DB' is full. To find out why space in the log cannot be reused, see the log_reuse_wait_desc column in sys.databases' Source: '.Net SqlClient Data Provider' Number: 9002 State: 4 Class: 17 Procedure: 'proc_UpdateDocument' LineNumber: 428 Server: 'SPDataServer02'

share|improve this question
    
is this pdf file stored on the file system or in a library/list? –  ali Sharepoint Apr 8 '13 at 13:47

2 Answers 2

The SQL error is your real problem as once the transaction log fills up, SharePoint starts acting very strangely. You need to truncate the log and then rerun your tests.

share|improve this answer

@Dave Wise: Actually, log file is 1mb in size but I still went ahead and shrunk the file. The DB is half GB.

I recreated another library and I was able to upload large files. Then I created a customEditform.aspx using SP Designer and now I can upload large file but metadata screen keeps giving me same error.

@Ali SharePoint: Regardless of file type. I tried uploading a large (10mb) powerpoint file, file uploads but metadata screen (customeditform.aspx) chokes and gives the same in original post.

share|improve this answer
    
This post sharepoint.stackexchange.com/questions/42259/… is having same issue. I wonder if original poster ever found a solution to this. My customeditform code looks good after looking at this post. So I am not sure where else to look for. –  McLoving Apr 8 '13 at 16:12
    
@Dave Wise: Could you mark your reply to be the answer? It helped. Thanks. I dont see the check box to mark it as answer. –  McLoving Apr 8 '13 at 17:41
    
Please don't use the Answer button to post comments - you can comment on your own question. And to mark as accepted click on the greyed tick beneath the vote count. Obviously it helps if you don't create two accounts and then log in with the other one :-) –  SPDoctor Apr 8 '13 at 18:52
    
@SPDoctor: Good Point. I have no idea why I could not see the reply or to make the answer. can you mark dave's reply to answered. thanks. i m sorry. –  McLoving Apr 8 '13 at 19:30
    
No, you have to do it. Only the poster of the question can mark an answer as accepted. It looks as though you used your original account to ask the question and now you are using a second account with different emails. Please log in with your original account to mark the answer as accepted. Thanks. –  SPDoctor Apr 8 '13 at 19:58

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.