Non Editable/locked PDF upload error

Sep 5, 2011 at 2:45 PM

Hi,

Just noticed that any pdf's that have been locked or made non-editable seem to give an error when uploading.  In this particular situation a suppliers invoices are emailed as a PDF attachement but are locked so they cannot be edited (even with pro version of adobe etc.).  But any of these PDF's seem to cause an error when uploading.  No problems with any normal PDF's or other document types.  Also no problem manually uploading these locked PDF's to SharePoint.

The error report screen pops up with the info below.  (Won't send vis the for some reason) and I have included the logs as well.

Method Name:UploadEmailException Message:String was not recognized as a valid DateTime.Stack Trace:   at System.DateTimeParse.ParseExact(String s, String format, DateTimeFormatInfo dtfi, DateTimeStyles style)   at System.DateTime.ParseExact(String s, String format, IFormatProvider provider)   at Sobiens.Office.SharePointOutlookConnector.Controls.EditItem.EditItemDateTimeControl.InitializeControl(EUField field, EUFolder rootFolder, EUListSetting listSetting, EUListItem listItem)   at Sobiens.Office.SharePointOutlookConnector.Forms.ListItemEditForm.GetEditItemControl(EUField field, EUFolder folder, EUListItem listItem)   at Sobiens.Office.SharePointOutlookConnector.Forms.ListItemEditForm.GenerateEditForm(EUFolder folder, EUListItem listItem, String contentTypeID)   at Sobiens.Office.SharePointOutlookConnector.Forms.ListItemEditForm.ContentTypeComboBox_SelectedIndexChanged(Object sender, EventArgs e)   at System.Windows.Forms.ComboBox.OnSelectedIndexChanged(EventArgs e)   at System.Windows.Forms.ComboBox.set_SelectedIndex(Int32 value)   at Sobiens.Office.SharePointOutlookConnector.Forms.ListItemEditForm.InitializeForm(EUFolder folder, EUListItem listItem)   at Sobiens.Office.SharePointOutlookConnector.BLL.EUEmailManager.UploadEmail(SharePointListViewControl listviewControl, ISPCFolder dragedFolder, DragEventArgs e, List`1 emailUploadFiles, Boolean isListItemAndAttachmentMode)

Error Log:

05/09/11 14:31  [GetFolders] QueryOptionsXML:<QueryOptions><IncludeMandatoryColumns>TRUE</IncludeMandatoryColumns>

                          <DateInUtc>TRUE</DateInUtc>

                          <Folder>Invoices</Folder>

</QueryOptions>05/09/11 14:31  [GetFolders] query:<Query><Where>

                           <Eq>

                               <FieldRef Name="FSObjType" />

                               <Value Type="Lookup">1</Value>

                           </Eq>

                   </Where></Query>

05/09/11 14:31  [GetFolders] GetListItems XML:<listitems xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema" xmlns="http://schemas.microsoft.com/sharepoint/soap/">

<rs:data ItemCount="1">

   <z:row ows_ContentTypeId="0x0120000213D6A4510BC6479BFF71B06CF0B132" ows_FileLeafRef="31;#September 2011" ows_Modified_x0020_By="DOMAIN\username" ows_Title="September 2011" ows_auto_x0020_num="float;#1.00000000000000" ows_Entered="0" ows_ID="31" ows_ContentType="Folder" ows_Created="2011-09-05T08:02:25Z" ows_Author="34;#Users Name" ows_Modified="2011-09-05T08:55:14Z" ows_Editor="34;#Users Name" ows__ModerationStatus="0" ows_FileRef="31;#Invoices/September 2011" ows_FileDirRef="31;#Invoices" ows_Last_x0020_Modified="31;#2011-09-05T10:15:47Z" ows_Created_x0020_Date="31;#2011-09-05T08:02:25Z" ows_File_x0020_Size="31;#" ows_FSObjType="31;#1" ows_PermMask="0x400001f07fff1bff" ows_CheckedOutUserId="31;#" ows_IsCheckedoutToLocal="31;#0" ows_UniqueId="31;#{157CB8A3-3CDF-432A-8270-4AC1E4AAABE4}" ows_ProgId="31;#" ows_ScopeId="31;#{61A81F48-0364-4167-9618-3D771CB59E2A}" ows_VirusStatus="31;#" ows_CheckedOutTitle="31;#" ows__CheckinComment="31;#" ows__EditMenuTableStart="September 2011" ows__EditMenuTableEnd="31" ows_LinkFilenameNoMenu="September 2011" ows_LinkFilename="September 2011" ows_ServerUrl="/Invoices/September 2011" ows_EncodedAbsUrl="http://companyweb/Invoices/September%202011" ows_BaseName="September 2011" ows_MetaInfo="31;#vti_rtag:SW|rt:157CB8A3-3CDF-432A-8270-4AC1E4AAABE4@00000000000 vti_etag:SW|&quot;{157CB8A3-3CDF-432A-8270-4AC1E4AAABE4},0&quot; Entered:BW|false Order:DW|3100.00000000000 vti_modifiedby:SR|DOMAIN\\username vti_title:SW|September 2011 vti_replid:SR|rid:{157CB8A3-3CDF-432A-8270-4AC1E4AAABE4} " ows__Level="1" ows__IsCurrentVersion="1" ows_SelectTitle="31" ows_SelectFilename="31" ows_owshiddenversion="3" ows__UIVersion="512" ows__UIVersionString="1.0" ows_Order="3100.00000000000" ows_GUID="{9E64C1B9-F1E8-4396-B828-F229DE9F21D8}" ows_WorkflowVersion="1" ows_ParentVersionString="31;#" ows_ParentLeafName="31;#" ows_Combine="1" ows_RepairDocument="1" />

</rs:data>

</listitems>

05/09/11 14:31  An exception occured on Method:UploadEmail Exception:String was not recognized as a valid DateTime.

05/09/11 14:31  An exception occured on Method:UploadEmail Exception:String was not recognized as a valid DateTime.

05/09/11 14:31  An exception occured on Method:LoadChoiceItemsInvoke Exception:Invoke or BeginInvoke cannot be called on a control until the window handle has been created.

05/09/11 14:31  An exception occured on Method:UploadEmail Exception:String was not recognized as a valid DateTime.

05/09/11 14:31  An exception occured on Method:UploadEmail Exception:String was not recognized as a valid DateTime.

05/09/11 14:31  An exception occured on Method:LoadChoiceItemsInvoke Exception:Invoke or BeginInvoke cannot be called on a control until the window handle has been created.