<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.officezealot.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Office Server 2007 Ramblings : Bugs</title><link>http://blogs.officezealot.com/bsandeman/archive/tags/Bugs/default.aspx</link><description>Tags: Bugs</description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP2 (Build: 61129.2)</generator><item><title>Customising Search Results via XSLT</title><link>http://blogs.officezealot.com/bsandeman/archive/2008/01/17/20730.aspx</link><pubDate>Thu, 17 Jan 2008 15:47:00 GMT</pubDate><guid isPermaLink="false">a446e06f-2cc4-48dd-a534-c024bd1e2687:20730</guid><dc:creator>bsandeman</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.officezealot.com/bsandeman/comments/20730.aspx</comments><wfw:commentRss>http://blogs.officezealot.com/bsandeman/commentrss.aspx?PostID=20730</wfw:commentRss><wfw:comment>http://blogs.officezealot.com/bsandeman/rsscomments.aspx?PostID=20730</wfw:comment><description>Recently I have been customising MOSS search results pages using XSLT and am quite pleased with the results ;-). However, one requirement from our customer was to break up the document url into it's component parts and provide links to site and library...(&lt;a href="http://blogs.officezealot.com/bsandeman/archive/2008/01/17/20730.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.officezealot.com/aggbug.aspx?PostID=20730" width="1" height="1"&gt;</description><category domain="http://blogs.officezealot.com/bsandeman/archive/tags/MOSS/default.aspx">MOSS</category><category domain="http://blogs.officezealot.com/bsandeman/archive/tags/Bugs/default.aspx">Bugs</category><category domain="http://blogs.officezealot.com/bsandeman/archive/tags/Enterprise+Search/default.aspx">Enterprise Search</category><category domain="http://blogs.officezealot.com/bsandeman/archive/tags/Sharepoint/default.aspx">Sharepoint</category><category domain="http://blogs.officezealot.com/bsandeman/archive/tags/WSS/default.aspx">WSS</category><category domain="http://blogs.officezealot.com/bsandeman/archive/tags/PDF+iFilter/default.aspx">PDF iFilter</category><category domain="http://blogs.officezealot.com/bsandeman/archive/tags/OfficeZealot/default.aspx">OfficeZealot</category></item><item><title>Date modified in Sharepoint lists</title><link>http://blogs.officezealot.com/bsandeman/archive/2007/10/09/20573.aspx</link><pubDate>Tue, 09 Oct 2007 16:46:00 GMT</pubDate><guid isPermaLink="false">a446e06f-2cc4-48dd-a534-c024bd1e2687:20573</guid><dc:creator>bsandeman</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.officezealot.com/bsandeman/comments/20573.aspx</comments><wfw:commentRss>http://blogs.officezealot.com/bsandeman/commentrss.aspx?PostID=20573</wfw:commentRss><wfw:comment>http://blogs.officezealot.com/bsandeman/rsscomments.aspx?PostID=20573</wfw:comment><description>Well the underlying issue of my previous post was the fact that, when creating a calculated custom field referring to the system field "Modified" as part of the calculation in a document library, the value would change to 01/01/1899 when a document was...(&lt;a href="http://blogs.officezealot.com/bsandeman/archive/2007/10/09/20573.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.officezealot.com/aggbug.aspx?PostID=20573" width="1" height="1"&gt;</description><category domain="http://blogs.officezealot.com/bsandeman/archive/tags/MOSS/default.aspx">MOSS</category><category domain="http://blogs.officezealot.com/bsandeman/archive/tags/Bugs/default.aspx">Bugs</category><category domain="http://blogs.officezealot.com/bsandeman/archive/tags/Tips/default.aspx">Tips</category><category domain="http://blogs.officezealot.com/bsandeman/archive/tags/Sharepoint/default.aspx">Sharepoint</category><category domain="http://blogs.officezealot.com/bsandeman/archive/tags/Columns/default.aspx">Columns</category><category domain="http://blogs.officezealot.com/bsandeman/archive/tags/Fields/default.aspx">Fields</category></item><item><title>Just to clarify</title><link>http://blogs.officezealot.com/bsandeman/archive/2007/01/24/20093.aspx</link><pubDate>Wed, 24 Jan 2007 19:12:00 GMT</pubDate><guid isPermaLink="false">a446e06f-2cc4-48dd-a534-c024bd1e2687:20093</guid><dc:creator>bsandeman</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.officezealot.com/bsandeman/comments/20093.aspx</comments><wfw:commentRss>http://blogs.officezealot.com/bsandeman/commentrss.aspx?PostID=20093</wfw:commentRss><wfw:comment>http://blogs.officezealot.com/bsandeman/rsscomments.aspx?PostID=20093</wfw:comment><description>In my previous post I went by gut feel on timings, I have now been able to do some proper testing and timings using a demo form which are as follows.... Times to change view via C# code : 175 Rows - IE : 29 seconds FF : 9 seconds IP Client : 1 second...(&lt;a href="http://blogs.officezealot.com/bsandeman/archive/2007/01/24/20093.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.officezealot.com/aggbug.aspx?PostID=20093" width="1" height="1"&gt;</description><category domain="http://blogs.officezealot.com/bsandeman/archive/tags/InfoPath/default.aspx">InfoPath</category><category domain="http://blogs.officezealot.com/bsandeman/archive/tags/Code/default.aspx">Code</category><category domain="http://blogs.officezealot.com/bsandeman/archive/tags/C_2300_/default.aspx">C#</category><category domain="http://blogs.officezealot.com/bsandeman/archive/tags/Bugs/default.aspx">Bugs</category></item><item><title>Sharepoint ItemDeleting Event</title><link>http://blogs.officezealot.com/bsandeman/archive/2006/12/04/15453.aspx</link><pubDate>Mon, 04 Dec 2006 17:34:00 GMT</pubDate><guid isPermaLink="false">a446e06f-2cc4-48dd-a534-c024bd1e2687:15453</guid><dc:creator>bsandeman</dc:creator><slash:comments>4</slash:comments><comments>http://blogs.officezealot.com/bsandeman/comments/15453.aspx</comments><wfw:commentRss>http://blogs.officezealot.com/bsandeman/commentrss.aspx?PostID=15453</wfw:commentRss><wfw:comment>http://blogs.officezealot.com/bsandeman/rsscomments.aspx?PostID=15453</wfw:comment><description>I have recently started work on handling some of the events that can happen on a form library.  One of these is the ItemDeleting event.  This occurs during the delete process for an item.
As the deletion of an object is part of a business process we had to copy the item to a Deleted library.  This I did using properties.ListItem.File.CopyTo which worked fine until Thursday of last week when my VS solution went belly up and vapourised it's links to my ItemHandler project.  Once I added my project back in this process never worked again.
I have continued to receive the following error in sharepoint logs and the event viewer - &lt;i&gt;"Cannot lock file "12.xml".  Either the file is in use or the Web server is temporarily busy."&lt;/i&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;

The only way I have managed to work around this is to do the following :
&lt;pre class="code"&gt;StreamReader r = new StreamReader(properties.ListItem.File.OpenBinaryStream());&lt;br&gt;String xml= r.ReadToEnd();&lt;br&gt;r.Dispose();&lt;br&gt;&lt;br&gt;xmlDoc = new XmlDocument();&lt;br&gt;xmlDoc.LoadXml(xml);&lt;br&gt;namespaceManager = new XmlNamespaceManager(xmlDoc.NameTable);&lt;br&gt;namespaceManager.AddNamespace("ns1", appParams.get("xml_namespace"));&lt;br&gt;&lt;br&gt;SPWeb web = properties.ListItem.Web;&lt;br&gt;SPFolder folder = web.GetFolder("/treasury/DeletedInvoices/");&lt;br&gt;SPFileCollection fileColl = folder.Files;&lt;br&gt;SPFile file = fileColl.Add(properties.ListItem.Name, &lt;br&gt;                   Encoding.ASCII.GetBytes(xmlDoc.OuterXml));&lt;br&gt;&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
This shows all my code which is actually split up nicely into functions, but hopefully this gives you the idea.&lt;img src="http://blogs.officezealot.com/aggbug.aspx?PostID=15453" width="1" height="1"&gt;</description><category domain="http://blogs.officezealot.com/bsandeman/archive/tags/MOSS/default.aspx">MOSS</category><category domain="http://blogs.officezealot.com/bsandeman/archive/tags/Code/default.aspx">Code</category><category domain="http://blogs.officezealot.com/bsandeman/archive/tags/C_2300_/default.aspx">C#</category><category domain="http://blogs.officezealot.com/bsandeman/archive/tags/Bugs/default.aspx">Bugs</category><category domain="http://blogs.officezealot.com/bsandeman/archive/tags/Event+Handling/default.aspx">Event Handling</category></item><item><title>InfoPath 2007 RTM</title><link>http://blogs.officezealot.com/bsandeman/archive/2006/12/04/15452.aspx</link><pubDate>Mon, 04 Dec 2006 17:11:00 GMT</pubDate><guid isPermaLink="false">a446e06f-2cc4-48dd-a534-c024bd1e2687:15452</guid><dc:creator>bsandeman</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.officezealot.com/bsandeman/comments/15452.aspx</comments><wfw:commentRss>http://blogs.officezealot.com/bsandeman/commentrss.aspx?PostID=15452</wfw:commentRss><wfw:comment>http://blogs.officezealot.com/bsandeman/rsscomments.aspx?PostID=15452</wfw:comment><description>Well it would seem that there is a little issue of compatibility between forms created under beta2 TR and the RTM release.  This is fixable but requires a little bit of effort for the forms where this problem occurs, by no means will it be all forms....You will also only have the problem if you are creating a browser compatible form.&lt;br&gt;
Now if you receive the error "The view contains nested formatting which is not supported on InfoPath Forms Services. Examples of such formatting include heavily nested tables and heavily formatted text." from either design checker or when you try to upload your form to Sharepoint then this means that you have the problem that I ran into.&lt;br&gt;
Now the reason for this error seems to be that within the beta2 TR(possibly also in earlier incantations) there was a bug which meant that the XSL produced for 1 or more views in a form gets damaged so that you end up with horrendously nested html tags; in my case truckloads of &amp;lt;font&amp;gt; tags.  This has been fixed in the RTM release and it would seem that Sharepoint now considers deeply nested tags to be a bad thing, as well it should. :-)&lt;p&gt;&amp;nbsp;&lt;/p&gt;

There is only one way to fix this and that is to do the following:&lt;br&gt;
&lt;i&gt;(use the RTM version for all of this; as that's what I did)&lt;/i&gt;&lt;br&gt;
1. Save your InfoPath form as source files&lt;br&gt;
2. Close your InfoPath form and browse to where you saved the source files&lt;br&gt;
3. Open the xsl file that corresponds to the view with the problem &lt;i&gt;(you will only know the correct view if you use the design checker first to locate the problematic view, be aware you may have more than 1 view with the problem, I had 2)&lt;/i&gt;&lt;br&gt;
4. Scroll through the xsl and look for some horrendously nested (indented) tags.  Now be careful, as you do not want to delete any tags that are within the nested tags, but you want to delete the nested tags. &lt;br&gt;
&lt;i&gt;eg: &amp;lt;font face="arial"&amp;gt;&amp;lt;font face="arial"&amp;gt;&amp;lt;font face="arial"&amp;gt;&amp;lt;input type="button"&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;/font&amp;gt;&lt;br&gt;
in this example I only show 3 nests but expect more like 30 nests; to fix delete everything so that you have left &amp;lt;input type="button"&amp;gt;&lt;/i&gt;&lt;br&gt;
5. Save the xsl file&lt;br&gt;
6. Right click manifest.xsf and choose design, this opens the form for design&lt;br&gt;
7. Either you can continue working with the source files &lt;i&gt;(my preference as I can store these in our source control system better than a binary file as I can report on the changes)&lt;/i&gt; or save it as a new XSN file&lt;br&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
hope this helps those of you that run into a similar situation; thanks to Scott Heim at MS for telling me how to reuse the source files once I had edited them, I was trying to recompile them back into a cab to start with, doh!&lt;img src="http://blogs.officezealot.com/aggbug.aspx?PostID=15452" width="1" height="1"&gt;</description><category domain="http://blogs.officezealot.com/bsandeman/archive/tags/InfoPath/default.aspx">InfoPath</category><category domain="http://blogs.officezealot.com/bsandeman/archive/tags/Bugs/default.aspx">Bugs</category><category domain="http://blogs.officezealot.com/bsandeman/archive/tags/Release/default.aspx">Release</category><category domain="http://blogs.officezealot.com/bsandeman/archive/tags/Tips/default.aspx">Tips</category></item></channel></rss>