Menu
Cutty
  • Chryslers
  • Lutherie
  • YLSNED
  • About
Cutty

Tag: InfoPath

Infopath form error when calling WCF service via SSL

Posted on April 14, 2015December 1, 2019 by Iain 'Cutty' Carlin

Interesting issue with a few Infopath forms. They’ve been working fine for ages using a WCF service to update another system.

When we changed our SharePoint site to use SSL, the form was generating an error when calling the WCF service. There were a number of factors at play:

  1. The WCF service was not configured correctly to have an SSL end point. By changing the binding configuration in the web.config for the web service, I was able to get the WSDL to display correctly using https when browsing to the service. However, the form still didn’t work AND the WSDL returned had the wrong URL (was the internal server name not the FQDN).
…
+

Infopath form – drop down field not updating with new values

Posted on May 11, 2013February 19, 2015 by Iain 'Cutty' Carlin

This one had me stumped for days. Infopath form with drop down field populated by internal values in the drop-down.

I needed to add one option, which I did and uploaded the form. I could see the version number updating on the form (I display that as a field) but the drop-down wouldn’t change!

Turns out I had a read-only and updatable versions of the form. The read-only version is displayed after the form has been submitted. I was editing the read-only version not the editable one that gets filled in. Doh!…

+

Infopath 2010 getuserprofilebyname and field values changing when loading existing form.

Posted on February 8, 2011February 18, 2015 by Iain 'Cutty' Carlin

In InfoPath 2007, I created several forms that load the user’s contact details into fields using the getuserprofilebyname service.

When we upgraded to SharePoint 2010 the forms still worked, but the user details were being changed every time the form loaded.

Turns out that the “Refresh value when formula is recalculated” setting does something different in 2010 compared with 2007.

Turning the setting on in 2010 causes the formula to recalculate every time the form opens and then overwrite whatever was already saved. So I have had to go to every form and uncheck the value on that field to get them all to work.…

+

‘SnippetElement’ is null or not an object error.

Posted on January 31, 2011February 19, 2015 by Iain 'Cutty' Carlin

I upgraded an InfoPath 2007 form to 2010. Users were getting a javascript error when submitting the form. The error was “’SnippetElement’ is null or not an object.”.

I did a few things to try and resolve the error. Recreated all my data connectors, re-published the form several times, all to no avail.

Finally, I ran the javascript debugger in IE and found that the error related to a problem with some code in core.js. There was a function that was trying to get the ‘SnippetElement’ from the submit button on the form.

I’m not sure what that means, but I checked the submit action for the form and found that “Show the Submit button in both the Ribbon and the Info tab in the InfoPath Filler.”…

+

InfoPath–Kerberos broke GetUserProfileByName

Posted on November 2, 2010February 20, 2015 by Iain 'Cutty' Carlin

I have an InfoPath form that was working.

It uses the SharePoint GetUserProfileByName method to get the user’s details to populate fields on the form. The form, that was working, recently stopped working giving the error: “The following query failed: GetUserProfileByName” and words to the effect that the user is unauthorised.

Strangely enough it turns out the solution was related to a previous post here where a web service could not be accessed because the web.config dynamic value for the web service set the site back to the root site.

My form was pointing to the root site for the web service.…

+

Who would have thought InfoPath was so picky…

Posted on September 27, 2010February 18, 2015 by Iain 'Cutty' Carlin

My relationship with InfoPath is love hate. On the one hand it’s so easy to create web forms on the other some of the simplest tasks are incredibly difficult.

Take today’s task – putting a simple URL on a form to open a Nintex workflow page for the form. InfoPath lets you put a URL on a form, but you can only have a static URL or populate it from a data source. The data source must have the full URL.

Easy, make the full URL a calculated field…except that calculated fields can’t user ID as one of the fields. In the end I put a button on the form.…

+

InfoPath – “Schema validation found non-datatype errors.”

Posted on September 9, 2010February 19, 2015 by Iain 'Cutty' Carlin

I have a multi-view form that loads different views depending on the status and user. I can’t test it using preview unless some data is loaded.

I have to upload the new form and try it out on live data. I made a change, uploaded then got the error: “Schema validation found non-datatype errors.”

In mucking about with my form, I changed the order of some fields in the Submit data source. InfoPath doesn’t like this and gives you the cryptic message above.…

+

Recent Posts

  • Lawson – A life in words and music
  • Instrument Making Course
  • Jigging, plating and sanding
  • A building block….
  • Fridays are lutherie days!

Categories

  • Chryslers (1)
  • Cutty's Blog (8)
  • Lutherie (38)
  • You Learn Something New Every Day (40)
©2023 Cutty | Powered by WordPress & Superb Themes