The SharePoint task is failing to archive some items returning a Null reference error.

book

Article ID: 100034259

calendar_today

Updated On:

Description

Error Message

Task report file - 
https://SP_Server/teams/Lists/Announcements/3_.000(Announcement Name)    V1.0    7/5/2017 6:38:51 PM    0    Default SharePoint Policy    Archive Libraries    ARCHIVE     *** Error *** - Null reference
Parameter name: value


Dtrace of EvSharePointArchiveTask
(EvSharePointArchiveTask) <11164> EV-L {IndexMetadata.AddProperty} Added Set:EVSP Name:Modified Length:19 Searchable:True Retrievable:True Count:12
(EvSharePointArchiveTask) <11164> EV-H {SPListAttachmentInfo.GetMetadataFromXml} Either XML Attribute with name: Name is null or Attribute's value is null
(EvSharePointArchiveTask) <11164> EV-H {SPListItemProcessor.AsyncStoreItem} Null reference|Parameter name: value
(EvSharePointArchiveTask) <11164> EV-H {SPItemProcessor.ProcessItemOrVersion} Exception: Null reference|Parameter name: value Info:Error processing item: https://SP_Server/teams/Lists/Announcements/3_.000 V1.0 Diag: Type:System.ArgumentNullException


Fiddler can be used on the EV server to view the XML data that is being returned from the SharePoint server.  
Fiddler-
FAILED ITEM- Does not contain data for the Attachment
   
 
 


SUCCESSFUL ITEM- Contains data for the Attachment
   
  Author="ONE\ramaswsr" TimeCreated="2017-07-10 18:36:50Z" TimeLastModified="2017-07-10 18:36:50Z" Name="Announcement Name.pdf" Length="26169" UniqueId="01e5c183-3578-44b6-8623-ff42d7798f2b" ModifiedBy="ONE\ramaswsr" url="/teams/Lists/Announcements/Attachments/4/Announcement Name.pdf"/>
 

 

Cause

As seen by the error above this issue is caused when NULL XML data is returned from SharePoint.  EV is unable to process the data with a NULL value and the error is returned and archiving moves forward.  

 

Resolution

The issue must be corrected in SharePoint by removing and re-adding the attachment to the item.

Issue/Introduction

SharePoint items are failing to archive showing a Null reference error in the task report file.