<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="https://www.w3.org/2005/Atom" xmlns:sy="https://purl.org/rss/1.0/modules/syndication/" xmlns:dc="https://purl.org/dc/elements/1.1/" xmlns:content="https://purl.org/rss/1.0/modules/content/" xmlns:wfw="https://wellformedweb.org/CommentAPI/" xmlns:slash="https://purl.org/rss/1.0/modules/slash/"
  version="2.0">
  <channel>
    <title>Madhan's Blog</title>
    <atom:link
      href="https://docs.microsoft.com/archive/blogs/madhan/feed.xml"
      rel="self"
      type="application/rss+xml" />
    <link>https://docs.microsoft.com/archive/blogs/madhan/feed.xml</link>
    <description />
    <lastBuildDate>Tue, 16 Apr 2019 06:11:55 GMT</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <item>
      <title>Hyperlinks will not run code in InfoPath</title>
      <link>https://docs.microsoft.com/archive/blogs/madhan/hyperlinks-will-not-run-code-in-infopath</link>
      <pubDate>Wed, 23 Sep 2015 07:02:00 GMT</pubDate>
      <dc:creator><![CDATA[Madhan Kumar D]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/madhan/2015/09/23/hyperlinks-will-not-run-code-in-infopath/</guid>
      <description><![CDATA[I have seen people coming up with requirements to run VB or C# code from InfoPath using hyperlinks....]]></description>
      <content:encoded><![CDATA[<p>I have seen people coming up with requirements to run VB or C# code from InfoPath using hyperlinks. This could be achieved only using code editor and event handlers. When we insert the path of the code in the addresses, it goes through the default browser and downloads the code instead.</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/05/24/blog1.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-05-24/blog1.png"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/05/24/blog1.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-05-24/blog1.png" border="0" alt=" " /></a></p>
<p>&quot;The hyperlink control enables users to insert or edit a hyperlink on the form. Users editing and viewing the form can click the hyperlink which automatically opens the Web browser to the location that the link points to. This is useful when you are required to input a hyperlink as part of the form.&quot;</p>
<p><span style="text-decoration:underline;"><strong>Workaround:</strong></span></p>
<ul>
<li>Insert a button in InfoPath form and go to developer tab -&gt; click code editor.</li>
<li>Choose the programming language based on your requirements (I have used VB).</li>
<li>Make sure that the InfoPath form is in full trust. Otherwise you will get an error message as mentioned in the below article.</li>
</ul>
<p>https://blogs.technet.com/b/madhan/archive/2015/09/16/common-errors-messages-in-infopath.aspx</p>
<ul>
<li>Add the reference System.Diagnostics and use the namespace in the header &quot;Imports System.Diagnostics&quot;.</li>
<li>The below code will run the VB script.</li>
</ul>
<p>Public Sub CTRL1_5_Clicked(ByVal sender As Object, ByVal e As ClickedEventArgs)</p>
<p>Process.Start(&quot;C:\Windows\SysWOW64\wscript.exe&quot;, &quot;C:\test.vbs&quot;)</p>
<p><span style="text-decoration:underline;"><strong>Note :</strong></span> Modify the path of the VB file. CTRL_5 is the name of the clicked button event handler.</p>
<ul>
<li>The above code will call the test.vbs which will get executed once the button is clicked.</li>
</ul>
<p>** <span style="color:#ff0000;">Please note that this code is not production ready. It has to be tested in the development/test environment.</span></p>
<p><span style="color:#000000;">Thanks to my colleague <a href="https://social.technet.microsoft.com/Profile/ajay%20bandooni"><span style="color:#000000;">Ajay</span></a> for his contribution.</span></p>]]></content:encoded>
    </item>
    <item>
      <title>Common errors messages in InfoPath</title>
      <link>https://docs.microsoft.com/archive/blogs/madhan/common-errors-messages-in-infopath</link>
      <pubDate>Wed, 16 Sep 2015 14:11:00 GMT</pubDate>
      <dc:creator><![CDATA[Madhan Kumar D]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/madhan/2015/09/16/common-errors-messages-in-infopath/</guid>
      <description><![CDATA[While working with InfoPath we do see lot of error messages while publishing it to the Sharepoint...]]></description>
      <content:encoded><![CDATA[<p>While working with InfoPath we do see lot of error messages while publishing it to the Sharepoint forms library and opening the published Infopath form in browser. I have posted some common and rare error messages in this article.</p>
<p><span style="text-decoration:underline;"><strong>Error message:</strong></span></p>
<p>&quot;Updating the content type failed&quot;</p>
<p>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/05/24/blog3.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-05-24/blog3.png"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/05/24/blog3.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-05-24/blog3.png" border="0" alt=" " /></a>&nbsp;</p>
<p><span style="text-decoration:underline;"><strong>Resolution:</strong></span></p>
<p><a href="https://blogs.msdn.com/b/microsoft_infopath_bloggers/archive/2015/05/18/quot-updating-the-content-type-failed-quot-while-publishing-the-infopath-form.aspx">https://blogs.msdn.com/b/microsoft_infopath_bloggers/archive/2015/05/18/quot-updating-the-content-type-failed-quot-while-publishing-the-infopath-form.aspx</a></p>
<p><span style="text-decoration:underline;"><strong>Error message:</strong></span></p>
<p>&quot;The following external components are required to edit your form code. Please install them and try again.&quot;</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/05/24/3007.blog31.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-05-24/3007.blog31.png"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/05/24/3007.blog31.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-05-24/3007.blog31.png" border="0" alt=" " /></a></p>
<p><span style="text-decoration:underline;"><strong>Resolution:</strong></span></p>
<p>InfoPath code editor is not supported in Visual Studio 2013 and other higher version.</p>
<p><span style="text-decoration:underline;"><strong>Error message:</strong></span></p>
<p>&quot;InfoPath cannot modify the form library template because the file does not exist. copy the template to the form library or create a new form library.&quot;</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/05/24/blog32.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-05-24/blog32.png"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/05/24/blog32.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-05-24/blog32.png" border="0" alt=" " /></a></p>
<p><span style="text-decoration:underline;">&nbsp;<strong>Resolution:</strong></span></p>
<p>We need the forms library to publish the InfoPath form in other templates such as product catalog. The only solution is to publish the form as admin approved template.</p>
<p><a href="https://technet.microsoft.com/en-in/library/cc262921(v=office.14).aspx">https://technet.microsoft.com/en-in/library/cc262921(v=office.14).aspx</a></p>
<p><strong><span style="text-decoration:underline;">Error message:</span></strong></p>
<p>While opening the browser based InfoPath form in IE 11, you might get the below error message.</p>
<p>&quot;Object doesn&#39;t support property or method &#39;addEventListener&#39; &quot;</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/05/24/Untitled.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-05-24/Untitled.png"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/05/24/Untitled.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-05-24/Untitled.png" border="0" alt=" " /></a></p>
<p><span style="text-decoration:underline;"><strong>Resolution:</strong></span></p>
<p>Sharepoint is doing a browser detection using the X-UA-Compatible meta tag set to IE 8 which forces the page to be loaded in IE 8 mode on IE 11 browser. &nbsp;As addEventListener method (https://msdn.microsoft.com/en-us/library/ff975245(v=vs.85).aspx) is supported only in IE 9 and above (prior to IE 9, attachEvent was used instead &ndash; https://msdn.microsoft.com/library/ms536343(v=vs.85).aspx), the above error is thrown when the page is loaded in IE 8 mode as IE 8 does not support this addEventListener method.</p>
<p>The workaround is to add the Sharepoint site in <strong>IE compatibility view</strong>.</p>
<p><span style="text-decoration:underline;"><strong>Error Message:</strong></span></p>
<p>You will get the below error message while using event handlers and code behind InfoPath form.</p>
<p>System.Security.SecurityException<br />Request failed.<br /> at fulltrust.FormCode.CTRL1_5_Clicked(Object sender, ClickedEventArgs e)<br /> at Microsoft.Office.InfoPath.Internal.ButtonEventHost.OnButtonClick(DocActionEvent pEvent)<br /> at Microsoft.Office.Interop.InfoPath.SemiTrust._ButtonEventSink_SinkHelper.OnClick(DocActionEvent pEvent)</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/05/24/ip.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-05-24/ip.png"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/05/24/ip.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-05-24/ip.png" border="0" alt=" " /></a></p>
<p><span style="text-decoration:underline;"><strong>Resolution:</strong></span></p>
<p>1. Click Advanced Form Options -&gt; Security and Full Trust -&gt; Uncheck &quot;Automatically determine security level&quot; -&gt; Choose Full trust.</p>
<p>2. Also Click Sign this form template and then select certificate.</p>
<p><span style="text-decoration:underline;"><strong>Error Message:</strong></span></p>
<p>&quot;The SOAP message cannot be parsed.&quot;</p>
<p>This error message generally occurs while publishing the InfoPath form to the SharePoint server. When there are more data connections and lot of customization done on the form, then it takes lot of time for the SOAP message to be parsed. The list.asmx and Formsservice.asmx will take more time.</p>
<p><span style="text-decoration:underline;"><strong><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/05/24/blog.jpg" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-05-24/blog.jpg"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/05/24/blog.jpg" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-05-24/blog.jpg" border="0" alt=" " width="410" height="254" /></a><br /></strong></span></p>
<p><span style="text-decoration:underline;"><strong>Resolution:</strong></span></p>
<p>Increase the timeout in the web.config of the web application.</p>
<p>&lt;httpRuntime maxRequestLength=&quot;51200&quot; executionTimeout=&quot;600&quot; /&gt;</p>
<p>For timeout values, refer : <a href="/controlpanel/blogs/posteditor.aspx/">https://msdn.microsoft.com/en-in/library/e1f13641(v=vs.85).aspx</a></p>
<p>I will keep updating this article when ever i find some interesting and common errors. Happy Blogging!</p>]]></content:encoded>
    </item>
    <item>
      <title>Shared with dialog doesn't load completely for Custom lists in Sharepoint</title>
      <link>https://docs.microsoft.com/archive/blogs/madhan/shared-with-dialog-doesnt-load-completely-for-custom-lists-in-sharepoint</link>
      <pubDate>Wed, 16 Sep 2015 14:00:02 GMT</pubDate>
      <dc:creator><![CDATA[Madhan Kumar D]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/madhan/2015/09/16/shared-with-dialog-doesnt-load-completely-for-custom-lists-in-sharepoint/</guid>
      <description><![CDATA[When we click &quot;Shared with&quot; dialog to share a custom list to users, it doesn&#39;t load...]]></description>
      <content:encoded><![CDATA[<p>When we click &quot;Shared with&quot; dialog to share a custom list to users, it doesn&#39;t load completely. We could only see &quot;EMAIL EVERYONE&quot; and the other options such as &quot;ADVANCED LINK&quot; doesn&#39;t show up.</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/05/24/blog4.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-05-24/blog4.png"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/05/24/blog4.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-05-24/blog4.png" border="0" alt=" " /></a></p>
<p>This issue happens only for the custom lists in Sharepoint and not for document library. Also, this happens after the installation of DEC 14 CU and later.</p>
<p>This issue is fixed in April 15 CU.</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/05/24/5672.blog41.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-05-24/5672.blog41.png"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/05/24/5672.blog41.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-05-24/5672.blog41.png" border="0" alt=" " /></a></p>
<p>https://support.microsoft.com/en-us/kb/2965228.</p>
<p>Click <a href="https://www.microsoft.com/en-us/download/details.aspx?id=46621">here</a> to download April 15 CU</p>
<p>Thanks Praveen for your help!</p>]]></content:encoded>
    </item>
    <item>
      <title>The publish operation could not be completed. It cannot be determined if the form template was successfully published... while publishing InfoPath form to Sharepoint</title>
      <link>https://docs.microsoft.com/archive/blogs/madhan/the-publish-operation-could-not-be-completed-it-cannot-be-determined-if-the-form-template-was-successfully-published-while-publishing-infopath-form-to-sharepoint</link>
      <pubDate>Wed, 16 Sep 2015 13:58:58 GMT</pubDate>
      <dc:creator><![CDATA[Madhan Kumar D]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/madhan/2015/09/16/the-publish-operation-could-not-be-completed-it-cannot-be-determined-if-the-form-template-was-successfully-published-while-publishing-infopath-form-to-sharepoint/</guid>
      <description><![CDATA[When you are trying to publish Infopath form to Sharepoint forms library, you might get the below...]]></description>
      <content:encoded><![CDATA[<p>When you are trying to publish Infopath form to Sharepoint forms library, you might get the below error messages.</p>
<p><strong><em>&quot;The publish operation could not be completed. It cannot be determined if the form template was successfully published. Try publishing the template again, or change the list settings to use the default SharePoint form.&quot;</em></strong><br /> <br /><strong><em>&quot;InfoPath cannot connect to the server. The server may be offline, your computer might not be connected to the network, or InfoPath Forms Services 2010 might not be enabled on the server. To fix this problem, start by checking your network connection, and then try again.&quot;</em></strong></p>
<p>The above error message is a very generic error message. It might also occur due to execution time out and other reasons.To understand the issue better we captured the ULS logs and found the below error messages.</p>
<p>06/12/2015 09:40:07.50 w3wp.exe (0x3528) 0x2D4C SharePoint Foundation General ai1wu Medium System.IO.FileNotFoundException: The system cannot find the file specified. (Exception from HRESULT: 0x80070002), StackTrace: at Microsoft.SharePoint.SPWeb.GetList(String strUrl) at Microsoft.Office.InfoPath.Server.Util.InstalledSolutions.VerifyListPresence(SPSite site, Boolean&amp; foundFormTemplateLibrary, Boolean&amp; foundConvertedLibrary) at Microsoft.Office.InfoPath.Server.Util.InstalledSolutions.<span style="background-color:#ffff00;">&lt;IsSupportFeaturePresent&gt;b__15(SPSite revertedSite)</span> at Microsoft.Office.InfoPath.Server.Util.InstalledSolutions.&lt;&gt;c__DisplayClass13.&lt;IsSupportFeatureActiveNoCache&gt;b__12(SPSite revertedSite) at Microsoft.Office.InfoPath.Server.Administration.NonAdminSolution.AccessSiteUnderSystemAccount(SPSite site, VisitSite siteHandler) at Microsoft.Office.InfoPath.Server.Util.InstalledSolutions.IsSupportFeatureActiveNoCache(SPSite site, Guid featureId, Action`1 actionIfFound) at Microsoft.Office.InfoPath.Server.Util.InstalledSolutions.IsSupportFeaturePresent(SPSite site, Guid featureId) at Microsoft.Office.InfoPath.Server.SolutionLifetime.DesignCheckerVerificationContext.OnAfterSolutionInformationParse(SolutionInformation information) at Microsoft.Office.InfoPath.Server.Converter.ConversionAppDomain.TryRunConversion(ConversionContext context, SolutionCabinet solutionCabinet, SolutionIdentity solutionId, Byte[] solutionData, WspSolutionInfo wspSolution) at Microsoft.Office.InfoPath.Server.Converter.ConversionAppDomain.RunConversion(ConversionContext context, SolutionCabinet solutionCabinet, SolutionIdentity solutionId) at Microsoft.Office.InfoPath.Server.Util.InstalledSolutions.&lt;&gt;c__DisplayClass7.&lt;VerifyUnpackedSolution&gt;b__6() at Microsoft.Office.Server.Diagnostics.FirstChanceHandler.ExceptionFilter(Boolean fRethrowException, TryBlock tryBlock, FilterBlock filter, CatchBlock catchBlock, FinallyBlock finallyBlock) at Microsoft.Office.InfoPath.Server.Util.InstalledSolutions.VerifyUnpackedSolution(SolutionCabinet solutionCabinet, String originalFileName, ConversionContext context, ConverterLog&amp; outputConverterLog, Byte[]&amp; outputConvertedData) at Microsoft.Office.InfoPath.Server.Util.InstalledSolutions.VerifySolution(String absoluteLocalPath, ConversionContext context, ConverterLog&amp; converterLog, Byte[]&amp; convertedData) at Microsoft.Office.InfoPath.Server.FormsServicesWebService.DesignCheckFormTemplate(Int32 lcid, String base64FormTemplate, String applicationId) at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at System.Web.Services.Protocols.LogicalMethodInfo.Invoke(Object target, Object[] values) at System.Web.Services.Protocols.WebServiceHandler.Invoke() at System.Web.Services.Protocols.WebServiceHandler.CoreProcessRequest() at System.Web.Services.Protocols.SyncSessionlessHandler.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&amp; completedSynchronously) at System.Web.HttpApplication.PipelineStepManager.ResumeSteps(Exception error) at System.Web.HttpApplication.BeginProcessRequestNotification(HttpContext context, AsyncCallback cb) at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags) at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags) at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus&amp; notificationStatus) at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus&amp; notificationStatus) at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags) at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags) 16ad0f9d-0e35-d08a-3e99-936b9eee525f</p>
<p>06/12/2015 09:40:07.62 w3wp.exe (0x3528) 0x2D4C InfoPath Forms Services Runtime m1y5 Exception LoadDocumentAndPlayEventLog failed with unhandled exception Microsoft.Office.InfoPath.Server.Util.InfoPathLocalizedException: <span style="background-color:#ffff00;">Activation could not be completed because the InfoPath Forms Services support feature is not present.</span> at Microsoft.Office.InfoPath.Server.Util.InstalledSolutions.&lt;IsSupportFeaturePresent&gt;b__15(SPSite revertedSite) at Microsoft.Office.InfoPath.Server.Util.InstalledSolutions.&lt;&gt;c__DisplayClass13.&lt;IsSupportFeatureActiveNoCache&gt;b__12(SPSite revertedSite) at Microsoft.Office.InfoPath.Server.Administration.NonAdminSolution.AccessSiteUnderSystemAccount(SPSite site, VisitSite siteHandler) at Microsoft.Office.InfoPath.Server.Util.InstalledSolutions.IsSupportFeatureActiveNoCache(SPSite site, Guid <span style="background-color:#ffff00;">featureId, Action`1 actio</span><span style="background-color:#ffff00;">nIfFound</span>) at Microsoft.Office.InfoPath.Server.Util.InstalledSolutions.IsSupportFeaturePresent(SPSite site, Guid featureId) at Microsoft.Office.InfoPath.Server.SolutionLifetime.DesignCheckerVerificationContext.OnAfterSolutionInformationParse(SolutionInformation information) at Microsoft.Office.InfoPath.Server.Converter.ConversionAppDomain.TryRunConversion(ConversionContext context, SolutionCabinet solutionCabinet, SolutionIdentity solutionId, Byte[] solutionData, WspSolutionInfo wspSolution) at Microsoft.Office.InfoPath.Server.Converter.ConversionAppDomain.RunConversion(ConversionContext context, SolutionCabinet solutionCabinet, SolutionIdentity solutionId) at Microsoft.Office.InfoPath.Server.Util.InstalledSolutions.&lt;&gt;c__DisplayClass7.&lt;VerifyUnpackedSolution&gt;b__6() at Microsoft.Office.Server.Diagnostics.FirstChanceHandler.ExceptionFilter(Boolean fRethrowException, TryBlock tryBlock, FilterBlock filter, CatchBlock catchBlock, FinallyBlock finallyBlock) StackTrace: at Microsoft.Office.Server.Native.dll: (sig=678c0f87-966f-4d99-9c94-b49e788d2672|2|microsoft.office.server.native.pdb, offset=131CE) at Microsoft.Office.Server.Native.dll: (offset=21BE5) 16ad0f9d-0e35-d08a-3e99-936b9eee525f</p>
<ul>
<li>From the above stack trace, we see that the feature is not activated.<span style="background-color:#ffff00;"></span></li>
<li>We ran the below commands to get the status and the scope of the IPFSSiteFeatures. (Infopath Form Services Feature).</li>
</ul>
<p>$a = get-spfeature &quot;IPFSSiteFeatures&quot;</p>
<p>$a.status</p>
<p>online</p>
<p>$a.scope</p>
<p>site</p>
<ul>
<li>The IPFSSiteFeatures is activated already. When we ran the below command, we got the error messsage &quot;Feature &#39;a0e5a010-1329-49d4-9e09-f280cdbed37d&#39; is not activated at this scope&quot;</li>
</ul>
<p><strong><em>Stsadm.exe -o deactivefeature -filename IPFSWebFeatures\feature.xml -url &quot;&quot;</em></strong></p>
<ul>
<li>We activated the IPFSWebFeatures using the below command and we are able to publish the InfoPath form successfully.</li>
</ul>
<p><strong><em>Stsadm.exe -o activatefeature -filename IPFSWebFeatures\feature.xml -url &quot;&quot;</em></strong></p>]]></content:encoded>
    </item>
    <item>
      <title>Unable to publish an InfoPath form to Sharepoint when there is no root site collection</title>
      <link>https://docs.microsoft.com/archive/blogs/madhan/unable-to-publish-an-infopath-form-to-sharepoint-when-there-is-no-root-site-collection</link>
      <pubDate>Wed, 16 Sep 2015 13:58:34 GMT</pubDate>
      <dc:creator><![CDATA[Madhan Kumar D]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/madhan/2015/09/16/unable-to-publish-an-infopath-form-to-sharepoint-when-there-is-no-root-site-collection/</guid>
      <description><![CDATA[I recently came across an interesting issue while publishing an InfoPath form. When we are trying to...]]></description>
      <content:encoded><![CDATA[<p>I recently came across an interesting issue while publishing an InfoPath form. When we are trying to publish an Infopath form to the Sharepoint site collection, we got the below trimmed pop error message (trimmed completely).</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/05/24/4747.blog1.jpg" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-05-24/4747.blog1.jpg"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/05/24/4747.blog1.jpg" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-05-24/4747.blog1.jpg" border="0" alt=" " /></a></p>
<ul>
<li>When I tried to publish it to other site collections in different web applications, I was able to publish successfully. The only difference between the working and the non-working scenario is that the web application in the non-working scenario didn&#39;t have the root site collection &quot;/&quot;.</li>
</ul>
<p>In the fiddler trace, &nbsp;we are seeing 401 when the request is going to webs.asmx and the request is going through the root site.</p>
<p>POST https://&lt;site collection name&gt;/_vti_bin/webs.asmx HTTP/1.1<br />Content-Type: text/xml; charset=utf-8<br />SOAPAction: https://schemas.microsoft.com/sharepoint/soap/WebUrlFromPageUrl<br />X-Office-Version: 14.0.5128</p>
<p><span style="text-decoration:underline;"><strong>Cause:</strong></span></p>
<ul>
<li>When we publish the InfoPath template the template gets copied to the forms folder in the Sharepoint library and this goes as a WebDAV request.</li>
</ul>
<p>SOAPAction: https://schemas.microsoft.com/sharepoint/soap/GetListContentTypes</p>
<p>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;&lt;soap:Envelope xmlns:soap=&quot;https://schemas.xmlsoap.org/soap/envelope/&quot; xmlns:xsi=&quot;https://www.w3.org/2001/XMLSchema-instance&quot; xmlns:xsd=&quot;https://www.w3.org/2001/XMLSchema&quot;&gt;&lt;soap:Body&gt;&lt;GetListContentTypesResponse xmlns=&quot;https://schemas.microsoft.com/sharepoint/soap/&quot;&gt;&lt;GetListContentTypesResult&gt;&lt;ContentTypes ContentTypeOrder=&quot;0x01010100DC185DBC959A0C48AEC172B44A668F10&quot;&gt;&lt;ContentType Name=&quot;Form&quot; ID=&quot;0x01010100DC185DBC959A0C48AEC172B44A668F10&quot; Description=&quot;Fill out this form.&quot; Scope=&quot;https://sp2013-13r/sites/123/asdf&quot; Version=&quot;28&quot;&gt;&lt;XmlDocuments&gt;&lt;XmlDocument NamespaceURI=&quot;https://schemas.microsoft.com/sharepoint/v3/contenttype/forms&quot;&gt;&lt;FormTemplates xmlns=&quot;https://schemas.microsoft.com/sharepoint/v3/contenttype/forms&quot;&gt;&lt;Display&gt;DocumentLibraryForm&lt;/Display&gt;&lt;Edit&gt;DocumentLibraryForm&lt;/Edit&gt;&lt;New&gt;DocumentLibraryForm&lt;/New&gt;&lt;/FormTemplates&gt;&lt;/XmlDocument&gt;&lt;/XmlDocuments&gt;&lt;/ContentType&gt;&lt;ContentType Name=&quot;Folder&quot; ID=&quot;0x012000CFF8159696099D4184D50EB2D7CC69C9&quot; <span style="background-color:#ffff00;">Description=&quot;Create a new folder.&quot; </span>Scope=&quot;https://&lt;site collection name&gt;&quot; Version=&quot;0&quot;&gt;&lt;XmlDocuments&gt;&lt;XmlDocument NamespaceURI=&quot;https://schemas.microsoft.com/sharepoint/v3/contenttype/forms&quot;&gt;&lt;FormTemplates xmlns=&quot;https://schemas.microsoft.com/sharepoint/v3/contenttype/forms&quot;&gt;&lt;Display&gt;ListForm&lt;/Display&gt;&lt;Edit&gt;ListForm&lt;/Edit&gt;&lt;New&gt;ListForm&lt;/New&gt;&lt;/FormTemplates&gt;&lt;/XmlDocument&gt;&lt;/XmlDocuments&gt;&lt;/ContentType&gt;&lt;/ContentTypes&gt;&lt;/GetListContentTypesResult&gt;&lt;/GetListContentTypesResponse&gt;&lt;/soap:Body&gt;&lt;/soap:Envelope&gt;</p>
<ul>
<li>This is the below response when we have root site collection.</li>
</ul>
<p>OPTIONS https://&lt;site collectoin name&gt;/ HTTP/1.1<br />User-Agent: <span style="background-color:#ffff00;">Microsoft Office Protocol Discovery</span><br />Host: &lt;host name&gt;</p>
<p>HTTP/1.1 200 OK<br />Cache-Control: private,max-age=0<br />Allow: GET, POST, OPTIONS, HEAD, MKCOL, PUT, PROPFIND, PROPPATCH, DELETE, MOVE, COPY, GETLIB, LOCK, UNLOCK<br />Content-Length: 0<br />Expires: Thu, 20 Aug 2015 22:26:24 GMT<br />Accept-Ranges: none<br />Server: Microsoft-IIS/8.5<br />X-SharePointHealthScore: 3<br />MS-Author-Via: MS-FP/4.0,DAV<br />X-MSDAVEXT: 1</p>
<ul>
<li>But when we remove the root site collection, we are getting a 401.</li>
<li>When you are using WebDAV request, you need root site collection.</li>
</ul>
<p><span style="text-decoration:underline;"><strong>Resolution:</strong></span></p>
<p>We need a root site collection in the web application when we publish the InfoPath form.</p>
<p>Fore more information about root site collection and WebDAV request, refer the below KB article.</p>
<p>https://support.microsoft.com/en-us/kb/2625462</p>
<p>Thanks&nbsp;<a href="/b/rajbugga/">Rajeev</a> for helping me to figure out the Root Cause!</p>
<p></p>]]></content:encoded>
    </item>
  </channel>
</rss>