Does Integrating an InfoPath form with a Process Stop that form from Using List Connections?

  • 4 November 2011
  • 3 replies
  • 0 views

Badge +5

I can't retrieve data from a list in InfoPath when a form is part of a K2 process, but normal forms don't have that problem. When I try and make a data connection I get the following error



There was a form postback error. (User: ALPHApnewhook, Form Name: Premiere Card Approval Requests, IP: , Request:_ http://uatworkflowcentral.cineplex.com/_layouts/FormServer.aspx?XmlLocation=http://uatworkflowcentral.cineplex.com/premiere card approval requests/Premiere Card Approval - Send form for first approval - Task for ALPHA_pnewhook - 17_13.xml&Source=http://uatworkflowcentral.cineplex.com/_layouts/k2/closepage.html&OpenIn=Browser, Form ID: urn chemas-microsoft-com ffice:infopath remiere-Card-Approval-Requests:-myXSD-2011-11-03T16-12-54, Type: NullReferenceException, Exception Message: Object reference not set to an instance of an object.)


I'm able to use a data connection to a database in this form, and in preview mode in the designer this data connection works. It seems this problem only occurs with the form in the browser.


I could use a smart object to wrap the list, but that adds a bit of extra work I'd rather avoid.


Thanks,

Peter


3 replies

Badge +10

I've mixed SmartObject calls and SharePoint list calls in the same InfoPath browser in the past without problems.


Have you recreated the sharePoint lists dataconnection as a udcx file?  K2 automatically creates a udcx file for browser enabled forms but you have to manually create the udcx for the Sharepoint list calls and manually change it when moving between environments. 


With that said I'm surprised about the error message your receiving.  Forms services often hides useful error messages.  Try making it open in the client and see if the error still occurs and if so hopefully it'll provide more information.  This can be done by changing the form url parameter from &OpenIn=Browser to &OpenIn=Client

Badge +5

I have extracted the dat aconnection into a udcx file and put it in a new Data Connection Library (not the existing K2 dcl) and approved it. I get error both when the data connection is embedded in the form and in a separate file.


I'll try opening in the client next, and report back any errors. Thanks.

Badge +5

I just installed update 1390 and it appears this issue was resolved. This article, KB001389,  on 4.5 high priority fixes mentions my issue, "When an InfoPath form is designed to query a SharePoint list using a data connection inside a K2 process, an error stating "There has been an error while loading the form" is displayed. " http://help.k2.com/en/KB001389.aspx

Reply