• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 4192
  • Last Modified:

Infopath 2007: Object reference not set to an instance of an object.

Guys,

having problems getting the form deployed to our sharepoint environment.

The form previews fine on my system but when i attempt to verify the design against the server i get the following error:

The SOAP response indicates that an error occurred on the server:

Server was unable to process request. ---> Object reference not set to an instance of an object.

When attempting to upload the published form to the server sharepoint throws the Unknown Error screen at me.

Below is the log entry from the last attempt to verify the form design on the server.

03/07/2011 14:05:42.51       w3wp.exe (0x078C)                             0x061C      Forms Server                        Forms Services Deployment           82lx      Exception      ConstructFromXsnFile failed with unhandled exception System.NullReferenceException: Object reference not set to an instance of an object.     at Microsoft.Office.InfoPath.Server.Binding.StepSnippetTree.HandleMultiplyBoundSnippets(Dictionary`2 multiplyBoundSnippets)     at Microsoft.Office.InfoPath.Server.Binding.StepSnippetTree.AnnotateSnippetForMultipleBindingInternal(StepSnippetElement stepSnippetElement, SnippetElement snippetContext, Stack`1 additionalAncestors, Boolean processMultiplyBoundClasses, Dictionary`2 multiplyBoundSnippetList)     at Microsoft.Office.InfoPath.Server.Binding.StepSnippetTree.AnnotateSnippetForMultipleBindingInternal(StepSnippetElement stepSnippetElement, SnippetElement snippetContext, Stack`1 additionalAncestors, Boolean processMultiplyBoundClasses, Dictionary`...      f3cfefa1-20ea-4e85-bb77-09d9bac8f8a0
03/07/2011 14:05:42.51*      w3wp.exe (0x078C)                             0x061C      Forms Server                        Forms Services Deployment           82lx      Exception      ...2 multiplyBoundSnippetList)     at Microsoft.Office.InfoPath.Server.Binding.StepSnippetTree.AnnotateSnippetForMultipleBindingInternal(StepSnippetElement stepSnippetElement, SnippetElement snippetContext, Stack`1 additionalAncestors, Boolean processMultiplyBoundClasses, Dictionary`2 multiplyBoundSnippetList)     at Microsoft.Office.InfoPath.Server.Binding.StepSnippetTree.AnnotateSnippetForMultipleBindingInternal(StepSnippetElement stepSnippetElement, SnippetElement snippetContext, Stack`1 additionalAncestors, Boolean processMultiplyBoundClasses, Dictionary`2 multiplyBoundSnippetList)     at Microsoft.Office.InfoPath.Server.Binding.StepSnippetTree.AnnotateSnippetForMultipleBinding(StepSnippetElement stepSnippetElement, SnippetElement snippetContext, Stack`1 additionalAncestors, Boolean proce...      f3cfefa1-20ea-4e85-bb77-09d9bac8f8a0
03/07/2011 14:05:42.51*      w3wp.exe (0x078C)                             0x061C      Forms Server                        Forms Services Deployment           82lx      Exception      ...ssMultiplyBoundClasses, Dictionary`2 multiplyBoundSnippetList)     at Microsoft.Office.InfoPath.Server.Binding.SnippetTree.AnnotateSnippetForMultipleBinding()     at Microsoft.Office.InfoPath.Server.Converter.SolutionConverter.ConvertView(Solution solution, ConverterDocument converterDocument)     at Microsoft.Office.InfoPath.Server.Converter.SolutionConverter.ConvertSolution(Solution solution)     at Microsoft.Office.InfoPath.Server.SolutionLifetime.Solution.<>c__DisplayClass2.<ConstructFromXsnFile>b__0()     at Microsoft.Office.Server.Diagnostics.FirstChanceHandler.ExceptionFilter(Boolean fRethrowException, TryBlock tryBlock, FilterBlock filter, CatchBlock catchBlock, FinallyBlock finallyBlock)      f3cfefa1-20ea-4e85-bb77-09d9bac8f8a0
03/07/2011 14:05:44.61       w3wp.exe (0x078C)                             0x061C      Forms Server                        Forms Services Deployment           82mn      Exception      TryRunConversion failed with unhandled exception System.NullReferenceException: Object reference not set to an instance of an object.     at Microsoft.Office.InfoPath.Server.Binding.StepSnippetTree.HandleMultiplyBoundSnippets(Dictionary`2 multiplyBoundSnippets)     at Microsoft.Office.InfoPath.Server.Binding.StepSnippetTree.AnnotateSnippetForMultipleBindingInternal(StepSnippetElement stepSnippetElement, SnippetElement snippetContext, Stack`1 additionalAncestors, Boolean processMultiplyBoundClasses, Dictionary`2 multiplyBoundSnippetList)     at Microsoft.Office.InfoPath.Server.Binding.StepSnippetTree.AnnotateSnippetForMultipleBindingInternal(StepSnippetElement stepSnippetElement, SnippetElement snippetContext, Stack`1 additionalAncestors, Boolean processMultiplyBoundClasses, Dictionary`2 mu...      f3cfefa1-20ea-4e85-bb77-09d9bac8f8a0
03/07/2011 14:05:44.61*      w3wp.exe (0x078C)                             0x061C      Forms Server                        Forms Services Deployment           82mn      Exception      ...ltiplyBoundSnippetList)     at Microsoft.Office.InfoPath.Server.Binding.StepSnippetTree.AnnotateSnippetForMultipleBindingInternal(StepSnippetElement stepSnippetElement, SnippetElement snippetContext, Stack`1 additionalAncestors, Boolean processMultiplyBoundClasses, Dictionary`2 multiplyBoundSnippetList)     at Microsoft.Office.InfoPath.Server.Binding.StepSnippetTree.AnnotateSnippetForMultipleBindingInternal(StepSnippetElement stepSnippetElement, SnippetElement snippetContext, Stack`1 additionalAncestors, Boolean processMultiplyBoundClasses, Dictionary`2 multiplyBoundSnippetList)     at Microsoft.Office.InfoPath.Server.Binding.StepSnippetTree.AnnotateSnippetForMultipleBinding(StepSnippetElement stepSnippetElement, SnippetElement snippetContext, Stack`1 additionalAncestors, Boolean processMu...      f3cfefa1-20ea-4e85-bb77-09d9bac8f8a0
03/07/2011 14:05:44.61*      w3wp.exe (0x078C)                             0x061C      Forms Server                        Forms Services Deployment           82mn      Exception      ...ltiplyBoundClasses, Dictionary`2 multiplyBoundSnippetList)     at Microsoft.Office.InfoPath.Server.Binding.SnippetTree.AnnotateSnippetForMultipleBinding()     at Microsoft.Office.InfoPath.Server.Converter.SolutionConverter.ConvertView(Solution solution, ConverterDocument converterDocument)     at Microsoft.Office.InfoPath.Server.Converter.SolutionConverter.ConvertSolution(Solution solution)     at Microsoft.Office.InfoPath.Server.SolutionLifetime.Solution.<>c__DisplayClass2.<ConstructFromXsnFile>b__0()     at Microsoft.Office.Server.Diagnostics.FirstChanceHandler.ExceptionFilter(Boolean fRethrowException, TryBlock tryBlock, FilterBlock filter, CatchBlock catchBlock, FinallyBlock finallyBlock)     at Microsoft.Office.Server.Diagnostics.ULS.SendWatsonOnExceptionTag(ULSTagID tagID, ULSCat cat...      f3cfefa1-20ea-4e85-bb77-09d9bac8f8a0
03/07/2011 14:05:44.61*      w3wp.exe (0x078C)                             0x061C      Forms Server                        Forms Services Deployment           82mn      Exception      ...egoryID, String output, Boolean fRethrowException, TryBlock tryBlock, CatchBlock catchBlock, FinallyBlock finallyBlock)     at Microsoft.Office.InfoPath.Server.SolutionLifetime.Solution.ConstructFromXsnFile(SolutionCabinet solutionCabinet, SolutionIdentity solutionId)     at Microsoft.Office.InfoPath.Server.Converter.ConversionAppDomain.OperationRunner.ExecuteConversion(SolutionCabinet solutionCabinet, SolutionIdentity solutionId, Boolean executeVerification)     at Microsoft.Office.InfoPath.Server.Converter.ConversionAppDomain.OperationRunner.ExecuteConversion(SolutionCabinet solutionCabinet, SolutionIdentity solutionId, Boolean executeVerification)     at Microsoft.Office.InfoPath.Server.Converter.ConversionAppDomain.ExecuteInRemote(AppDomain domain, SolutionCabinet solutionCabinet, Solu...      f3cfefa1-20ea-4e85-bb77-09d9bac8f8a0
03/07/2011 14:05:44.61*      w3wp.exe (0x078C)                             0x061C      Forms Server                        Forms Services Deployment           82mn      Exception      ...tionIdentity solutionId)     at Microsoft.Office.InfoPath.Server.Converter.ConversionAppDomain.<>c__DisplayClass4.<TryRunConversion>b__0()     at Microsoft.Office.Server.Diagnostics.FirstChanceHandler.ExceptionFilter(Boolean fRethrowException, TryBlock tryBlock, FilterBlock filter, CatchBlock catchBlock, FinallyBlock finallyBlock)      f3cfefa1-20ea-4e85-bb77-09d9bac8f8a0
03/07/2011 14:05:44.61       w3wp.exe (0x078C)                             0x061C      Forms Server                        Forms Services Runtime              82mk      Exception      LoadDocumentAndPlayEventLog failed with unhandled exception System.NullReferenceException: Object reference not set to an instance of an object.     at Microsoft.Office.InfoPath.Server.Binding.StepSnippetTree.HandleMultiplyBoundSnippets(Dictionary`2 multiplyBoundSnippets)     at Microsoft.Office.InfoPath.Server.Binding.StepSnippetTree.AnnotateSnippetForMultipleBindingInternal(StepSnippetElement stepSnippetElement, SnippetElement snippetContext, Stack`1 additionalAncestors, Boolean processMultiplyBoundClasses, Dictionary`2 multiplyBoundSnippetList)     at Microsoft.Office.InfoPath.Server.Binding.StepSnippetTree.AnnotateSnippetForMultipleBindingInternal(StepSnippetElement stepSnippetElement, SnippetElement snippetContext, Stack`1 additionalAncestors, Boolean processMultiplyBoundClasses, Dict...      f3cfefa1-20ea-4e85-bb77-09d9bac8f8a0
03/07/2011 14:05:44.61*      w3wp.exe (0x078C)                             0x061C      Forms Server                        Forms Services Runtime              82mk      Exception      ...ionary`2 multiplyBoundSnippetList)     at Microsoft.Office.InfoPath.Server.Binding.StepSnippetTree.AnnotateSnippetForMultipleBindingInternal(StepSnippetElement stepSnippetElement, SnippetElement snippetContext, Stack`1 additionalAncestors, Boolean processMultiplyBoundClasses, Dictionary`2 multiplyBoundSnippetList)     at Microsoft.Office.InfoPath.Server.Binding.StepSnippetTree.AnnotateSnippetForMultipleBindingInternal(StepSnippetElement stepSnippetElement, SnippetElement snippetContext, Stack`1 additionalAncestors, Boolean processMultiplyBoundClasses, Dictionary`2 multiplyBoundSnippetList)     at Microsoft.Office.InfoPath.Server.Binding.StepSnippetTree.AnnotateSnippetForMultipleBinding(StepSnippetElement stepSnippetElement, SnippetElement snippetContext, Stack`1 additionalAncestors, Boolea...      f3cfefa1-20ea-4e85-bb77-09d9bac8f8a0
03/07/2011 14:05:44.61*      w3wp.exe (0x078C)                             0x061C      Forms Server                        Forms Services Runtime              82mk      Exception      ...n processMultiplyBoundClasses, Dictionary`2 multiplyBoundSnippetList)     at Microsoft.Office.InfoPath.Server.Binding.SnippetTree.AnnotateSnippetForMultipleBinding()     at Microsoft.Office.InfoPath.Server.Converter.SolutionConverter.ConvertView(Solution solution, ConverterDocument converterDocument)     at Microsoft.Office.InfoPath.Server.Converter.SolutionConverter.ConvertSolution(Solution solution)     at Microsoft.Office.InfoPath.Server.SolutionLifetime.Solution.<>c__DisplayClass2.<ConstructFromXsnFile>b__0()     at Microsoft.Office.Server.Diagnostics.FirstChanceHandler.ExceptionFilter(Boolean fRethrowException, TryBlock tryBlock, FilterBlock filter, CatchBlock catchBlock, FinallyBlock finallyBlock)     at Microsoft.Office.Server.Diagnostics.ULS.SendWatsonOnExceptionTag(ULSTagID tagID,...      f3cfefa1-20ea-4e85-bb77-09d9bac8f8a0
03/07/2011 14:05:44.61*      w3wp.exe (0x078C)                             0x061C      Forms Server                        Forms Services Runtime              82mk      Exception      ... ULSCat categoryID, String output, Boolean fRethrowException, TryBlock tryBlock, CatchBlock catchBlock, FinallyBlock finallyBlock)     at Microsoft.Office.InfoPath.Server.SolutionLifetime.Solution.ConstructFromXsnFile(SolutionCabinet solutionCabinet, SolutionIdentity solutionId)     at Microsoft.Office.InfoPath.Server.Converter.ConversionAppDomain.OperationRunner.ExecuteConversion(SolutionCabinet solutionCabinet, SolutionIdentity solutionId, Boolean executeVerification)     at Microsoft.Office.InfoPath.Server.Converter.ConversionAppDomain.OperationRunner.ExecuteConversion(SolutionCabinet solutionCabinet, SolutionIdentity solutionId, Boolean executeVerification)     at Microsoft.Office.InfoPath.Server.Converter.ConversionAppDomain.ExecuteInRemote(AppDomain domain, SolutionCabinet solutionCa...      f3cfefa1-20ea-4e85-bb77-09d9bac8f8a0
03/07/2011 14:05:44.61*      w3wp.exe (0x078C)                             0x061C      Forms Server                        Forms Services Runtime              82mk      Exception      ...binet, SolutionIdentity solutionId)     at Microsoft.Office.InfoPath.Server.Converter.ConversionAppDomain.<>c__DisplayClass4.<TryRunConversion>b__0()     at Microsoft.Office.Server.Diagnostics.FirstChanceHandler.ExceptionFilter(Boolean fRethrowException, TryBlock tryBlock, FilterBlock filter, CatchBlock catchBlock, FinallyBlock finallyBlock)     at Microsoft.Office.Server.Diagnostics.ULS.SendWatsonOnExceptionTag(ULSTagID tagID, ULSCat categoryID, String output, Boolean fRethrowException, TryBlock tryBlock, CatchBlock catchBlock, FinallyBlock finallyBlock)     at Microsoft.Office.InfoPath.Server.Converter.ConversionAppDomain.TryRunConversion(SolutionCabinet solutionCabinet, SolutionIdentity solutionId, Boolean separateAppDomain)     at Microsoft.Office.InfoPath.Server.Converter.ConversionAp...      f3cfefa1-20ea-4e85-bb77-09d9bac8f8a0
03/07/2011 14:05:44.61*      w3wp.exe (0x078C)                             0x061C      Forms Server                        Forms Services Runtime              82mk      Exception      ...pDomain.RunConversion(SolutionCabinet solutionCabinet, SolutionIdentity solutionId, Boolean separateAppDomain)     at Microsoft.Office.InfoPath.Server.Util.InstalledSolutions.<>c__DisplayClass1.<VerifyUnpackedSolution>b__0()     at Microsoft.Office.Server.Diagnostics.FirstChanceHandler.ExceptionFilter(Boolean fRethrowException, TryBlock tryBlock, FilterBlock filter, CatchBlock catchBlock, FinallyBlock finallyBlock)      f3cfefa1-20ea-4e85-bb77-09d9bac8f8a0

Any help would be appreciated.  

Thanks,

Andy.
0
ExproAndyGould
Asked:
ExproAndyGould
  • 6
  • 5
2 Solutions
 
nsyyoungCommented:
Do you have Enterprise or Standard SharePoint?  

1. How are you publishing your form?  
2. Are you uploading the form XNS file, intending to use it as a template for XML forms, or are you publishing it through the Infopath publish command?  
3. Are you promoting any fields?
0
 
ExproAndyGouldAuthor Commented:
We have Enterprise sharepoint and are pubishing the form as a browser enabled admin-approved form.

There were fields being promoted but we removed these in case they were causing the issue.

The error occurs before we even publish the form.  When running the design checker the form gets no issues.  when the Verify on Server box is checked the error above and the log events occur

0
 
nsyyoungCommented:
Is there any conditional formatting in any of the form's controls?

0
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 
ExproAndyGouldAuthor Commented:
Yes, the form uses quite a lot of conditional formatting.

0
 
nsyyoungCommented:
Are there any required fields that might be hidden at any time?  If possible, add default values to those fields and see if the error goes away (to eliminate the possiblity of trying to enter a null value into a required SharePoint column).  That's my 2 bits learned from experience.

Also, and there may be others who know more about this than I do, but I've found that weird stuff that should be innocuous, like changing colors with certain values, sometimes chokes in SharePoint.  One time I had to create a calculated column in SharePoint to do what the hidden calculated field in the form was supposed to do, even though the fields matched the columns in datatype, formatting, and calculations.
0
 
ExproAndyGouldAuthor Commented:
Thanks for your help anyway.

No required fields are being used - found they cause too many problems.

I have tried removing the codebehind, deleting all controls and all views and validating the form after each change and the error is still thrown.  

Think its time to start over.
0
 
nsyyoungCommented:
check your data connections coming and going; if anything has changed and those weren't updated, there will be errors.
0
 
ExproAndyGouldAuthor Commented:
I removed the data connections in sequence and then remove all of the resulting unbound controls on the form.

Once they were all remove the error was resolved.

I went back through removing each data connection and unbound data source items validating the form after each change.

The error was in a repeating table fed from a data source.  each row in the table had a row number column which was autonumbering using the following formula:

count(preceding-sibling::*)

removed the default value from this field (the formula) and the error is gone.  

do you happen to know a better formula to autonumber rows in a repeating table?

Thanks for your suggestion regarding the data sources!

Andy.
0
 
nsyyoungCommented:
I'm so glad it worked.  

For the numbering, maybe this?  http://www.infopathdev.com/forums/p/2259/27235.aspx
0
 
ExproAndyGouldAuthor Commented:
Perfect!  Thanks very much
0
 
ExproAndyGouldAuthor Commented:
Own comment added as part of solution to clarify steps involved in fixing the error
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 6
  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now