Skip to main content
Kofax

SharePoint AddItem File Not Found error

To find the cause of the following SharePoint AddItem error:

“When trying to add list item"934ea59a-bf1e-407a-9223-abdf0109281c" to below site "https://sharepoint.com/site" the following error was returned. File Not Found.”

 

Answer / Solution: 

It is possible the relative path folder does not exist in SharePoint.

To investigate, I would suggest exporting the document using Repository Browser, update its name and file type to match the Sharepoint AddItlem metadata and attempt to manually add it to the same SharePoint site location.  Please confirm the relative path used in the job exists, file names and metadata add to SharePoint.  

If the relative path does not exist, this is the error returned by SharePoint:

The returned error from Sharepoint client.svc is :

"ErrorMessage":"File Not Found.","ErrorValue":null,
"TraceCorrelationId":"e995669f-04b6-0032-4979-fc210ee42fbe","ErrorCode":-2147024893,"ErrorTypeName":"System.IO.DirectoryNotFoundException"

The Application event log errors are:

--------------------------------------------------------------------------------------------------------

Type : Microsoft.SharePoint.Client.ServerException, Microsoft.SharePoint.Client.Runtime, Version=16.1.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c
Message : File Not Found.
Source : Microsoft.SharePoint.Client.Runtime
Help link :
ServerStackTrace :
ServerErrorCode : -2147024893
ServerErrorValue :
ServerErrorTypeName : System.IO.DirectoryNotFoundException
ServerErrorDetails :
ServerErrorTraceCorrelationId : 0693669f-5434-0032-4979-fd877b328dcb
Data : System.Collections.ListDictionaryInternal
TargetSite : Void ProcessResponseStream(System.IO.Stream)
HResult : -2146233088
Stack Trace :    at Microsoft.SharePoint.Client.ClientRequest.ProcessResponseStream(Stream responseStream)
   at Microsoft.SharePoint.Client.ClientRequest.ProcessResponse()
   at Agility.Server.Integration.Sharepoint.SharePointHelper.UploadDocumentContentStream(ClientRuntimeContext context, String documentLocation, Byte[] documentContents, Boolean overwrite, Folder targetFolder)
   at Agility.Server.Integration.Sharepoint.SharePointHelper.UploadDocumentSliceBySlice(ClientContext context, String documentURL, Byte[] documentContents, Boolean overwrite, Folder targetFolder)
   at Agility.Server.Integration.Sharepoint.SharePointHelper.AddSharepointListItem(ClientContext context, IntegrationEventCategory list, IntegrationDataCollection fields, Byte[] documentContents, String relativePath, String documentName, Boolean checkInDocument, Boolean overwrite, Boolean isSharepointOnline)
   at Agility.Server.Integration.Sharepoint.SharePointHelper.AddListItem(IntegrationSite integrationSite, IntegrationEventCategory list, IntegrationDataCollection fields, Byte[] documentContents, String relativePath, String documentName, Boolean checkInDocument, Boolean overwrite)

------------------------------------------------------------------------------------------------------------------------------------------

Type : System.ServiceModel.FaultException`1, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089

Message : When trying to add list item"61a8023d-b89b-4b06-89ec-abfa00b0cde8"  to below site "http://sharepoint.com/site" the following error was returned.File Not Found.

Source : Agility.Server.Core

-------------------------------------------------------------------------------------------------------------------------------------------

  • Was this article helpful?