Solved

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

Posted on 2011-03-07
11
3,784 Views
Last Modified: 2012-05-11
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
Comment
Question by:ExproAndyGould
  • 6
  • 5
11 Comments
 
LVL 8

Expert Comment

by:nsyyoung
Comment Utility
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
 

Author Comment

by:ExproAndyGould
Comment Utility
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
 
LVL 8

Expert Comment

by:nsyyoung
Comment Utility
Is there any conditional formatting in any of the form's controls?

0
 

Author Comment

by:ExproAndyGould
Comment Utility
Yes, the form uses quite a lot of conditional formatting.

0
 
LVL 8

Expert Comment

by:nsyyoung
Comment Utility
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
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 

Author Comment

by:ExproAndyGould
Comment Utility
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
 
LVL 8

Accepted Solution

by:
nsyyoung earned 500 total points
Comment Utility
check your data connections coming and going; if anything has changed and those weren't updated, there will be errors.
0
 

Assisted Solution

by:ExproAndyGould
ExproAndyGould earned 0 total points
Comment Utility
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
 
LVL 8

Expert Comment

by:nsyyoung
Comment Utility
I'm so glad it worked.  

For the numbering, maybe this?  http://www.infopathdev.com/forums/p/2259/27235.aspx
0
 

Author Comment

by:ExproAndyGould
Comment Utility
Perfect!  Thanks very much
0
 

Author Closing Comment

by:ExproAndyGould
Comment Utility
Own comment added as part of solution to clarify steps involved in fixing the error
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Before you can digitally sign infopath forms, you must have a digital certificate. Microsoft Certificate Services will need to be enabled on a Windows Server 2008 to facilitate the creation and verification of the digital certifciates on the web ser…
Learn to move / copy / export exchange contacts to iPhone without using any software. Also see the issues in configuration of exchange with iPhone to migrate contacts.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now