<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Form works in InfoPath but Not SharePoint</title><link>https://www.infopathdev.com:443/forums/thread/105585.aspx</link><pubDate>Fri, 19 Feb 2016 17:39:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:105585</guid><dc:creator>smonczka</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/105585.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=105585</wfw:commentRss><description>&lt;p&gt;I created a small test form for pulling in the current users information.&amp;nbsp; &lt;/p&gt;&lt;ul&gt;&lt;li&gt;I created a data connection receiving information from&amp;nbsp;UserProfile web service in SharePoint. &lt;a href="https://portal.company.com/_vti_bin/UserProfileService.asmx?WSDL"&gt;https://portal.company.com/_vti_bin/UserProfileService.asmx?WSDL&lt;/a&gt;&lt;/li&gt;&lt;li&gt;Once the data connection was created I added a field to the form called &lt;strong&gt;EmpName&lt;/strong&gt;&lt;/li&gt;&lt;li&gt;I entered the properties of the field and using the Insert Formula&amp;nbsp;I created the following&amp;nbsp;default value &lt;strong&gt;Value[Name = &amp;quot;PreferredName&amp;quot;]&lt;/strong&gt;&lt;/li&gt;&lt;li&gt;I then tested the form and it pulled in the name of the current user.&lt;/li&gt;&lt;li&gt;I then published the form as a new content type to our Site Collection Forms library and opened it from SharePoint&lt;/li&gt;&lt;li&gt;The form fails to open and I get the following error in the SharePoint Error log...&lt;/li&gt;&lt;ul&gt;&lt;li&gt;&lt;span&gt;&lt;em&gt;&lt;strong&gt;The following query failed: GetMyInfo (User: 0#.w|calnettech\spcrawl, Form Name: TAW.v3.06, IP: , Connection Target: , Request: &lt;a href="https://portal.company.com/codocuments/SiteAssets/TAW"&gt;https://portal.company.com/codocuments/SiteAssets/TAW&lt;/a&gt; Form.aspx, Form ID: urn:schemas-microsoft-com:office:infopath:TAW-v3-06:-dataFormSolution Type: DataAdapterException, Exception Message: The response to the web service request is not a valid XML file. &lt;/strong&gt;&lt;/em&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span&gt;&lt;em&gt;&lt;strong&gt;For security reasons DTD is prohibited in this XML document. To enable DTD processing set the DtdProcessing property on XmlReaderSettings to Parse and pass the settings into XmlReader.Create method.)&lt;/strong&gt;&lt;/em&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;p&gt;&lt;span&gt;&lt;strong&gt;What am I doing wrong and how can I fix it?&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;I am&amp;nbsp;using SharePoint 2013 with Claims Based Authentication and InfoPath 2013.&amp;nbsp; I followed the directions in this short blog on &lt;a href="https://www.youtube.com/watch?v=DTi11I1RuhI" target="_blank"&gt;how us auto populate field in InfoPath.&lt;/a&gt; &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>