<?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>Data Connections</title><link>https://www.infopathdev.com:443/forums/44.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>GetUserProfileByName</title><link>https://www.infopathdev.com:443/forums/thread/100398.aspx</link><pubDate>Thu, 04 Dec 2014 04:27:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:100398</guid><dc:creator>spanielle85</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/100398.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=100398</wfw:commentRss><description>Hi,

I have a form querying the getuserprofilebyname in our development version of sharepoint 2010. This is for a people picker field to get the users number, email &amp;amp; manager name. 

I have this in the query as well - substring(AccountId, 8, 50)

I have test this form in my group of colleagues with 5 digit account id i.e (dustt). The query works fine. 

I test the form on a 6 digit id for my friend Long, the people picker field fails &amp;quot;An error occurred while trying to connect to a Web service&amp;quot; and pulls this error out. He has an active account in AD?

&amp;quot;The remote server returned an error: (500) Internal Server Error.  A user with the account name ee\lotran could not be found. ---&amp;gt; An error was encountered while retrieving the user profile.  UserCannotBeFoundAn error was encountered while retrieving the user profile. The remote server returned an error: (500) Internal Server &amp;quot;

Any ideas? Because I&amp;#39;m a bit clueless why the account id works on 5 characters instead of 6. 

I have added photos to help with viewing the problem.</description></item></channel></rss>