Hi,
We have an Infopath 2007 browser based form on a MOSS environment. The form has a file attachment control which has suddenly stopped working. This was working fine earlier but now some users have reported that they can't attach files to the form.
As soon as I select a file and click "Upload", I get the error "There has been an error while processing the form.". On checking the logs, the error is as follows:
05/11/2012 15:47:10.34 w3wp.exe (0x3AD4) 0x471C Forms Server Forms Services Runtime 142t High Incrementing temporary SQM bucket DATAID_IPFSFILEATTACHMENTSIZE0_100KB ad7f9c47-dcf8-4324-bd9d-7bca88ca662a
05/11/2012 15:47:10.35 w3wp.exe (0x3AD4) 0x471C Forms Server Forms Services Runtime 8geb Exception Unhandled exception when rendering form on postback System.IndexOutOfRangeException: Index was outside the bounds of the array. at System.Collections.ArrayList.Contains(Object item) at System.Collections.Specialized.StringCollection.Contains(String value) at Microsoft.Office.InfoPath.Server.DocumentLifetime.EventFileAttachment.IsInInfoPathExtensionBlackList(String extension) at Microsoft.Office.InfoPath.Server.DocumentLifetime.EventFileAttachment.IsValidExtension(String fileName) at Microsoft.Office.InfoPath.Server.DocumentLifetime.EventFileAttachment.ValidateUploadedFile(HttpPostedFile file, Document document) at Microsoft.Office.InfoPath.Server.DocumentLifetime.EventFileAttachment.SetAttachment(Document document, BindingServices bindingServices, HttpPostedFile fil... ad7f9c47-dcf8-4324-bd9d-7bca88ca662a
05/11/2012 15:47:10.35 w3wp.exe (0x3AD4) 0x471C Forms Server Forms Services Runtime 82g1 Critical There was a form postback error. (User: Form Name: AttachTest, IP: , Request: http://****/_layouts/FormServer.aspx?XsnLocation=**********/Forms/template.xsn&SaveLocation=*****&DefaultItemOpen=1, Form ID: urn:schemas-microsoft-com:office:infopath:AttachTest:-myXSD-2012-05-11T11-53-51, Type: IndexOutOfRangeException, Exception Message: Index was outside the bounds of the array.) ad7f9c47-dcf8-4324-bd9d-7bca88ca662a
05/11/2012 15:47:10.35* w3wp.exe (0x3AD4) 0x471C Forms Server Forms Services Runtime 8geb Exception ...e) at Microsoft.Office.InfoPath.Server.DocumentLifetime.EventFileAttachment.Play(Document document, BindingServices bindingServices, EventLogProcessor eventLogProcessor) at Microsoft.Office.InfoPath.Server.DocumentLifetime.Event.PlayEvent(Document document, BindingServices bindingServices, EventLogProcessor eventLogProcessor) at Microsoft.Office.InfoPath.Server.DocumentLifetime.EventLogProcessor.<>c__DisplayClass1.<ExecuteLog>b__0() at Microsoft.Office.InfoPath.Server.DocumentLifetime.EventLogProcessor.ExecuteLog(Int32 expectedEventLogID) at Microsoft.Office.InfoPath.Server.DocumentLifetime.Document.<>c__DisplayClass6.<PlayEventLog>b__3() at Microsoft.Office.Server.Diagnostics.FirstChanceHandler.ExceptionFilter(Boolean fRethrowException, TryBlock tryBlock, FilterBlo... ad7f9c47-dcf8-4324-bd9d-7bca88ca662a
05/11/2012 15:47:10.35* w3wp.exe (0x3AD4) 0x471C Forms Server Forms Services Runtime 8geb Exception ...ck filter, CatchBlock catchBlock, FinallyBlock finallyBlock) ad7f9c47-dcf8-4324-bd9d-7bca88ca662a
Form session state size is 10MB so that doesn't seem to be the issue, as I have tested with files of a few KBs.
Any ideas would be greatly appreciated.
Thanks and Kind regards,
Simranjeev