Hi Hilary,
Greetings of the day :)
I need your help in fixing 1 issue that i am having with repeating section with a cascading multiselect lookup based on dropdown change value.
Senario: In my InfoPath 2010 form, i am having a repeating section with two controls. 1. Dropdown, 2: Multiselect lookup. I need to provide cascading functionality between these two. i am using OOB filter that we will get when we bind data connection to a control (multi select loookup). i.e., for multiselect lookup control, i am binding a list where the Title column of that list = value selected in Dropdown.
This is working perfectly if i don't have a repeating table. It fails when i am having this senario in a repeating table. i checked the expression that is there for filter and i saw there is "current()/dropdownvalue" i believe this is to get current row selected value of dropwon. This is working in preview. However fails after publishing to library. It is giving null reference exception.
Please help me in achieving this task.
--------------below given are my log entries with the correlation error i receive
08/01/2012 20:37:54.28 w3wp.exe (0x21CC) 0x129C SharePoint Foundation Logging Correlation Data xmnv Medium Name=Request (GET:http://aditidt865:101/sites/CRF/_layouts/FormServer.aspx?XsnLocation=http://aditidt865:101/sites/CRF/FormServerTemplates/TestIssueForm.xsn&SaveLocation=http%3A%2F%2Faditidt865%3A101%2Fsites%2FCRF%2FTestDocLibrary&ClientInstalled=true&Source=http%3A%2F%2Faditidt865%3A101%2Fsites%2FCRF%2FTestDocLibrary%2FForms%2FAllItems%2Easpx&DefaultItemOpen=1) df6e4761-2959-453d-8fef-82aa375dc47f
08/01/2012 20:37:54.28 w3wp.exe (0x21CC) 0x129C SharePoint Foundation Logging Correlation Data xmnv Medium Site=/sites/CRF df6e4761-2959-453d-8fef-82aa375dc47f
08/01/2012 20:37:54.36 w3wp.exe (0x21CC) 0x129C InfoPath Forms Services Runtime - Business Logic 82g6 Warning Business logic failed due to an exception. (User: SPTEST\spadmin, Form Name: TestIssueForm, IP: , Request: http://aditidt865:101/_layouts/FormServer.aspx?XsnLocation=http://aditidt865:101/sites/CRF/FormServerTemplates/TestIssueForm.xsn&SaveLocation=http://aditidt865:101/sites/CRF/TestDocLibrary&ClientInstalled=true&Source=http://aditidt865:101/sites/CRF/TestDocLibrary/Forms/AllItems.aspx&DefaultItemOpen=1, Form ID: urn:schemas-microsoft-com:office:infopath:TestIssueForm:-myXSD-2012-03-06T05-40-29, Type: Exception, Exception Message: Error occured while populating Sub Areas. Error Message:The Web application at http://lab2-wfe1 could not be found. Verify that you have typed the URL correctly. If the URL should be serving existing content, the system administrator may need to add a new reque... df6e4761-2959-453d-8fef-82aa375dc47f
08/01/2012 20:37:54.36* w3wp.exe (0x21CC) 0x129C InfoPath Forms Services Runtime - Business Logic 82g6 Warning ...st URL mapping to the intended application.) df6e4761-2959-453d-8fef-82aa375dc47f
08/01/2012 20:37:54.36 w3wp.exe (0x21CC) 0x129C InfoPath Forms Services Runtime - Business Logic 7tge Medium Exception thrown from business logic event listener: System.Exception: Error occured while populating Sub Areas. Error Message:The Web application at http://lab2-wfe1 could not be found. Verify that you have typed the URL correctly. If the URL should be serving existing content, the system administrator may need to add a new request URL mapping to the intended application. at TestIssueForm.FormCode.PopulateSubAreas(String _strBussinessID) in C:\Users\sharepointadmin.CRM\Documents\InfoPath Projects\TestIssueForm1\FormCode.cs:line 80 at TestIssueForm.FormCode.FormEvents_Loading(Object sender, LoadingEventArgs e) in C:\Users\sharepointadmin.CRM\Documents\InfoPath Projects\TestIssueForm1\FormCode.cs:line 37 at Microsoft.Office.InfoPath.Server.SolutionLifetime.FormEventsHost.<>c__Di... df6e4761-2959-453d-8fef-82aa375dc47f
08/01/2012 20:37:54.36* w3wp.exe (0x21CC) 0x129C InfoPath Forms Services Runtime - Business Logic 7tge Medium ...splayClass6.<>c__DisplayClassa.<add_Loading>b__3() at Microsoft.Office.InfoPath.Server.Util.DocumentReliability.InvokeBusinessLogic(Thunk thunk) at Microsoft.Office.InfoPath.Server.SolutionLifetime.FormEventsHost.<>c__DisplayClass34.<FireLoadingEvent>b__30() at Microsoft.Office.InfoPath.Server.DocumentLifetime.OMExceptionManager.CallFormCodeWithExceptionHandling(UserMessages userMessages, OMCall d) df6e4761-2959-453d-8fef-82aa375dc47f
08/01/2012 20:37:54.41 w3wp.exe (0x21CC) 0x129C SharePoint Foundation Runtime tkau Unexpected System.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.Office.InfoPath.Server.SolutionLifetime.ExtensionXsltObject.Current(XsltContext xsltContext, Object[] args, XPathNavigator docContext) at MS.Internal.Xml.XPath.FunctionQuery.Evaluate(XPathNodeIterator nodeIterator) df6e4761-2959-453d-8fef-82aa375dc47f
08/01/2012 20:37:54.41 w3wp.exe (0x21CC) 0x129C SharePoint Foundation Monitoring b4ly Medium Leaving Monitored Scope (Request (GET:http://aditidt865:101/sites/CRF/_layouts/FormServer.aspx?XsnLocation=http://aditidt865:101/sites/CRF/FormServerTemplates/TestIssueForm.xsn&SaveLocation=http%3A%2F%2Faditidt865%3A101%2Fsites%2FCRF%2FTestDocLibrary&ClientInstalled=true&Source=http%3A%2F%2Faditidt865%3A101%2Fsites%2FCRF%2FTestDocLibrary%2FForms%2FAllItems%2Easpx&DefaultItemOpen=1)). Execution Time=133.674036832514 df6e4761-2959-453d-8fef-82aa375dc47f
---------------
Additional info: I used REST service for this. which worked 100% in dev as expected. However, getting some inconsistent "sate server error" in production server so i skipped it. I cannot use xml file as data source method as i dont know how many rows user will be adding at runtime.
thank you before hand.