You might experience the following error while using user profile service in infopath
The following query failed: GetUserProfileByName (User: domainname\admin, Form Name: Template, IP: , Connection Target: , Request: http://Servername/INDEX.ASPX, Form ID: urn:schemas-microsoft-com:office:infopath:list:-AutoGen-2013-04-08T06:50:13:599Z Type: DataAdapterException, Exception Message: The remote server returned an error: (500) Internal Server Error.
The User Profile Manager object could not be loaded. —> No User Profile Application available to service the request. Contact your farm administrator.
The remote server returned an error: (500) Internal Server Error.)
Central Administration > Application Management > Manage Web applications, Select your web application and then select service connections , check the user profile service application proxy