Welcome to my blog on all things SharePoint. I have a range of articles that will interest you if you've made it as far as visiting my blog. I was awarded as an SharePoint MVP by Microsoft in July 2010. I currently live in New York and am an Enterprise Architect at AvePoint Inc.. I co founded www.NothingButSharePoint.com with Mark Miller in 2010.

MVP AwardJeremy Thake Profile Photo

Whitepapers

NBSP

Check out my articles on NothingButSharePoint.com

Solution Development in SharePoint 2007

This series was inspired by the chatter amongst SharePoint blogs on the best ways to approach customisations in SharePoint using Solutions.

Part 1 - Part 2 - Part 3 - Part 4 - Part 5 - Part 6 - Part 7 - Part 8

Leveraging the SharePoint Platform

This series was inspired by a discussion had with Andrew Coates at a Perth SharePoint User Group meeting. This then turned into a 6 part series on Arno Nell's SharePointMagazine.net web site.

Initial post - Part 1 - Part 2 - Part 3 - Part 4 - Part 5 - Part 6

Webcasts

I have recorded various web casts that I present at User Groups or just on a specific topic by request:
How ASP.NET Developers can leverage SharePoint webcast
SPSource Webcast: Reverse engineer Lists to ListTemplates and much more
SharePoint Development with Unit Testing webcast
Perth SharePoint UG Web Cast on approaches to deploying artefacts (SPSource)
More...


Podcasts

I have been interviewed about Leveraging the SharePoint Platform by the SharePoint Pod Show: listen here .

RSS Feed Feed your read!

Archives

November 2012 (6)
October 2012 (8)
September 2012 (4)
August 2012 (7)
July 2012 (13)
June 2012 (4)
March 2012 (1)
February 2012 (1)
January 2012 (5)
September 2011 (2)
August 2011 (1)
July 2011 (3)
June 2011 (7)
May 2011 (3)
April 2011 (3)
March 2011 (3)
February 2011 (2)
January 2011 (1)
December 2010 (4)
September 2010 (4)
July 2010 (5)
June 2010 (4)
May 2010 (6)
April 2010 (7)
March 2010 (5)
February 2010 (7)
January 2010 (3)
December 2009 (1)
November 2009 (6)
October 2009 (9)
September 2009 (7)
August 2009 (6)
July 2009 (13)
June 2009 (4)
May 2009 (12)
April 2009 (4)
March 2009 (4)
February 2009 (13)
January 2009 (4)
December 2008 (4)
November 2008 (11)
October 2008 (16)
September 2008 (4)
August 2008 (5)
July 2008 (4)
June 2008 (8)
May 2008 (5)
April 2008 (9)
March 2008 (5)
February 2008 (6)
January 2008 (1)
November 2007 (11)
October 2007 (8)
September 2007 (24)
August 2007 (5)
July 2007 (2)
May 2007 (1)
April 2007 (1)
March 2007 (1)
February 2007 (3)
January 2007 (4)
November 2006 (7)
October 2006 (7)
September 2006 (18)
August 2006 (14)
June 2006 (3)
May 2006 (8)
April 2006 (4)
March 2006 (38)
February 2006 (30)
January 2006 (2)
December 2005 (3)
November 2005 (28)
May 2005 (1)
April 2005 (5)
March 2005 (1)
November 2004 (1)
August 2004 (11)
July 2004 (1)
Failed to render control: An error occurred during a call to extension function 'createMonthUrl'. See InnerException for a complete description of the error.

Links

Tag Cloud

Ajax, Apple, DotNetNuke, Enterprise Content Management, Error Resolution, Gadgets, General, Governance, Microsoft .Net Development, Mobile, SharePoint, Sharepoint Business Forms, Sharepoint Business Intelligence, Sharepoint Collaboration, SharePoint Development, Sharepoint Enterprise Content Management, Sharepoint Enterprise Search, Sharepoint Portal, US Migration, Web 2.0, Workflow
Apr 102008

InfoPath Error on Resubmission

I've been using the UDCX files for my Data Connections in my InfoPath form and for the Form Submit Action it came up with an error if I resubmitted the form:

A value in the form may be used to specify the file name. If you know the value in the form that specifies the file name, revise it and try again. Otherwise, contact the author of the form template.

At first I didn't know where to start but then I realised that I hadn't checked the option in the setup when I converted it to a udcx file.

image

if you're not using udcx files you can simply tick the tick box and it'll fix your error.

Basically I found the xml in the udcx file and changed it and for everyone's reference its. The element can be found at:

<udc:FolderName AllowOverwrite="0" />

and just change it to:

<udc:FolderName AllowOverwrite="1" />

 

So a full sample file looks like:

<?xml version="1.0" encoding="UTF-8"?>
<?MicrosoftWindowsSharePointServices ContentTypeID="0x010100B4CBD48E029A4ad8B62CB0E41868F2B0"?>
<udc:DataSource MajorVersion="2" MinorVersion="0" xmlns:udc="http://schemas.microsoft.com/office/infopath/2006/udc">
    <udc:Name>Main submit</udc:Name>
    <udc:Description>Format: UDC V2; Connection Type: SharePointLibrary; Purpose: WriteOnly; Generated by Microsoft Office InfoPath 2007</udc:Description>
    <udc:Type MajorVersion="2" MinorVersion="0" Type="SharePointLibrary">
        <udc:SubType MajorVersion="0" MinorVersion="0" Type=""/>
    </udc:Type>
    <udc:ConnectionInfo Purpose="WriteOnly" AltDataSource="">
        <udc:WsdlUrl/>
        <udc:SelectCommand>
            <udc:ListId/>
            <udc:WebUrl/>
            <udc:ConnectionString/>
            <udc:ServiceUrl UseFormsServiceProxy="false"/>
            <udc:SoapAction/>
            <udc:Query/>
        </udc:SelectCommand>
        <udc:UpdateCommand>
            <udc:ServiceUrl UseFormsServiceProxy="false"/>
            <udc:SoapAction/>
            <udc:Submit/>
            <udc:FileName>Specify a filename or formula</udc:FileName>
            <udc:FolderName AllowOverwrite="1">http://testurl/</udc:FolderName>
        </udc:UpdateCommand>
        <!--udc:Authentication><udc:SSO AppId='' CredentialType='' /></udc:Authentication-->
    </udc:ConnectionInfo>
</udc:DataSource>

Published: 4/10/2008  7:36 PM | 0  Comments | 0  Links to this post

Apr 092008

The Pain of Deploying InfoPath Programmatically

I've been doing a lot of work around Governance of SharePoint within our organisation and have been hitting brick walls with regards to InfoPath. Especially with regards to Environmental differences when using Forms with Data Sources.

I've found lots of articles pushing Data Connection Libraries with .udcx files which is fine to a point but this is the best one. With this being the best explanation of the ins and outs of the actual file. This one starts to explain the environment thing but fails to deliver on the issues outlined below. Plenty more on my Diigo collection.

Where it works

Where this works well is when you have a udcx file that points to a SharePoint list e.g. http://dev/test/dcl/test.udcx would have an element pointing to http://dev/test/lists/ContractList/.

You can deploy this file to the same location on each environment and select that the link in the InfoPath form be relative to a particular server name e.g. having the http://dev/test/dcl/test.udcx and http://staging/test/dcl/test.udcx will work with the same InfoPath form.

You would have to modify each .udcx file to point to it's appropriate SharePoint List e.g. http://staging/test/dcl/test.udcx would have point to http://staging/test/lists/ContractList/. This is far easier than having to open up InfoPath Client to modify this and also can be programmatically written and uploaded to the Data Connection Library as part of a Solution package (post with code coming!).
This is useful so that you don't have to store multiple versions of one form for each environment, or tinker with the form Data Connections when deploying it...especially if you want Server Administrators doing this.

Where it isn't cool

Note this is not relative to where the InfoPath form is being hosted from! So if you have another Web created on your server where you want it to use it's own .udcx files e.g. the udcx files are configured to point at SharePoint Lists within itself such as http://dev/test/subweb/dcl/test.udcx you would need to modify the Data Connection in the InfoPath form itself. So it's not that flexible!
A good scenario for this is if you have a form where you want to reuse it's functionality but have each instance posting to a different SharePoint List without having to have different InfoPath form versions for each instance.

The Central Administration maintained Data Connection files is another place to put these, but again, if you wanted different SharePoint List Connections in each, you'd need separate instances of each and therefore you'd have to modify the InfoPath forms to point to the correct instance!

What would be nice

It would be great if the InfoPath form was intelligent enough to know which SharePoint List fired off a "New Form" action and then post it back to itself and relative to this List look for a Data Connection Library. But we can all dream! This guy has the same dream! Maybe the Data Connections can be set in Code Behind on the InfoPath forms, but again that's more headache and you start thinking why we don't just use ASPX forms to do this stuff!

Published: 4/9/2008  2:32 AM | 0  Comments | 0  Links to this post