Infopath form Getuserprofilebyname service

Hi All,
I am able to fetch username, department & email  correctly in local site using info path (2013) getuserprofilebyname service.
But when I open form using public URL configured with https://, getting 5566 error on form load. Any solution for this.

Here you go..
Similiar issue resolution given below
https://social.technet.microsoft.com/Forums/office/en-US/f1c53565-f32d-4334-acd3-38664f8e1b79/error-5566-infopath-form-to-getuserprofilebyname?forum=sharepointadminprevious
Please remember to click 'Mark as Answer' on the answer if it helps you

Similar Messages

  • How to migrate sharepoint 2010 infopath form to sharepoint online.

    how to migrate SharePoint 2010 infopath form to SharePoint online.

    Hi Partha,
    You use powershell script to migrate infopath forms from SP 2010 to SP Online. But you need to be careful about external connections used in infopath forms(web service connections etc.) because they might required to be changed. So, for data connections,
    use of Data Connection Library is a preferable way or you can write a powershell script to update the data connections also.
    You can find the sample script from the below url:
    https://drive.google.com/file/d/0B_mYrpgMRd3IbHdpZkNBLVNhd1k/view?usp=sharing
    Best Regards,
    Brij K

  • Access denied Error while calling Web Service form Infopath Form 2010.

    Hi Dear All,
    I have been facing an error while calling an GetUserProfileByName() web service method from InfoPath 2010 from.
    i have FBA(Forms Base Authentication )configured . After Infopath form published to site collection when i select an user from people picker control i want to get Email Id of Selected user for that i am calling getUserProfileByName() Web Method, but 
    i am getting Access denied error code 500.
    Any Help would be more than welcome.
    Thanks.

    Hi,
    Greetings. Please check 
    Check the IE settings. Click Internet Options> Security>Custom level. Make sure that the ‘Access data source across domains’ is enabled. Make sure that you have permission to the web service and to the content which the web service tries to modify.
    For more information, please refer to this site:
    "Access is denied." error in Infopath 2007 form + ASMX: http://us.generation-nt.com/answer/access-denied-error-infopath-2007-form-plus-asmx-help-65808252.html
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • Error 5566 - Infopath form to GetUserProfileByName

    I have tried everything I can find to fix this but not having any luck....:(
    I have a multi server farm (2 WFE, 2 APP, 1 Load Balancer)
    Infopath Form: Created an infopath form that calls the userprofileservice.asmx for method GetUserProfileByName (the data connection is called CreateUserProfileByName in Infopath)
    Web Application: Have tried classic and claims with NTLM and Kerberos (nothing works)
    Browser : IE 8
    The form works fine in Infopath itself. However when published to the server I get the dreaded 5566 error. Pretty much have exhausted all suggestions from the web.
    The error message in ULS is - The following query failed: CreateUserProfileByName (User: Domain\MyFirstName.MyLastName, Form Name: Template, IP: , Connection Target: http://spsite/sites/SiteRequest/ConnectionLibrary/file.udcx, Request: http://spsite/sites/SiteRequest/Lists/Requests/AllItems.aspx,
    Form ID: urn:schemas-microsoft-com:office:infopath:list:-AutoGen-2012-08-28T23:06:23:223Z Type: DataAdapterException, Exception Message: The remote server returned an error: (401) Unauthorized. The remote server returned an error: (401) Unauthorized.)
    Tried using a udcx file with a hard coded username and password
    Tried using secure store service
    Tried disabling ASP.Net impersonation
    Tried with NTLM first and then with Kerberos Web App
    Tried both claims and classic authentication ( guess the former does not work with infopath)
    Made sure loopback was disabled on all servers
    Have ensured I can get to the webservice directly in a browser
    Hosts files on the WFEs point to themselves
    Nothing works...:(....any ideas?
    Thanks in advance,
    Jake.

    Hi All,
    Just an update. Finally after some network tracing I realized this was related to the fact that the request was going through the proxy. Strange thing was that even after disabling the proxy in IE, the system was still routing through the proxy. Then I recalled
    a post or two that talked about this in the numerous numerous Internet searches recommendations that I had already attempted. And sure enough that seemed to fix the issue.
     <system.net>
       <defaultProxy>
         <proxy autoDetect="false" />
       </defaultProxy>
    </system.net>
    Needless to say, the edit should be done through a feature. Anyway, hope this helps someone else also.
    Thanks,
    Jake.

  • In Infopath forms, is GetUserProfileByName not an option when anonymous access is enabled on the server?

    Hi,
    How can you populate an Infopath form with values from the SOAP web service GetUserProfileByName operation when anonymous access is (and has to be) enabled on the server?
    Looks like the facility is redundant when this is the case?

    Hope this post helps
    http://blogs.technet.com/b/anneste/archive/2011/11/02/how-to-create-an-infopath-form-to-auto-populate-data-in-sharepoint-2010.aspx
    Bistesh

  • How to move data connections with SOAP web service in different environments in InfoPath Forms 2010

    Hello,
    I've an InfoPath Form where I've around 10 SOAP web service data connections. They are calling a custom web service for a custom business process. The web service URL has a query string parameter which identifies whether it's a Test web service or the Production
    one. The web service URL looks like this:
    http://server/webservice/wsdl?targetURI=testSPRead (for the Test environment)
    http://server/webservice/wsdl?targetURI=ProdSPRead (for the Production environment)
    When I develop the form in Dev environment, I use the Test web service URL and save the data connection as UDCX files in the data connection library. After completing the development, when I deploy this Form in Production, I update the URL in the UDCX
    file in the Production data connection library, but when I run the Form in Production, it throws error 'Error occurred in calling the web service'. After doing more research, when I extracted the XSN file and opened Manifest.xsf file in Notepad, I found the
    references of 'testSPRead' parameter.
    So, in the UDCX file the web service URL is '/targetURI=ProdSPRead' but in the Manifest.xsf file, there is a reference of Test web service parameter which is 'testSPRead' and that's why it's throwing error.
    For testing purpose, I updated the Manifest.xsf file and replaced all the occurrences of 'testSPRead' to 'ProdSPRead' and also updated all the relevant files of the data connections (like XML, XSF etc.) and saved the Manifest.xsf as Form.xsn and deployed
    in Prod and it worked.
    The question is - is this the right way of doing it? There should be a simple method in such cases where web service has conditional parameter to identify the Test and Production web service.
    Does somebody know what is the right way of doing it? I also thought of adding 'double' data connections - one set of Test and another set of Production and call them by identifying the current SharePointServerRootURL, but that's a lot of work. I've 10 web
    service data connections in my Form and in that case I'll be having 20 data connections and setting their parameters in different Rules is too much work.
    Please advise. It's very important for me!
    Thanks in advance.
    Ashish

    Thanks for your response Hemendra!
    I hope Microsoft improves this thing in subsequent patches of InfoPath 2010 or InfoPath 2013 because I don't think this is a very special requirement. This is failing the purpose of having UDCX files for data connections. Why the WSDL's parameter value
    is being written in the Manifest.xsf and other XSF and XML files. InfoPath should always refer the URL and parameters from the UDCX files.
    --Ashish

  • Browser based InfoPath form deployed on a Claims based Web Application calling a Secure Web Service via Data Connection

    hi,
    We have a Browser based InfoPath Form deployed on a Claims based Web Application. We are tyring to call WCF Services that are secure using Certificates via the Data Connections on Infopath Form.
    Earlier we used to get the Data in BCS External List via the WCF Services and the Data Connections used to get the Data from the BCS External List. Due to Performance Issues, we want to remove the BCS External List and straightaway call the secure WCF Services
    via the Data Connections.
    Have anyone implemented this scenario.
    Thanks
    Ram
    Thanks Ram

    Hi Ram,
    As these are browser based InfoPath forms, you have two options 
    1) Deploy as sandboxed forms
    In this case you have to create a secure store application id and then set the credentials for that account.
    You then have to export the data connection to Data connections library and modify the .udcx file to utilize the newly created secure store application id.
    This may sometime give issues related to sandboxed code service. You have to give permissions on the secure store for the user account which the sandboxed code service is running.
    2) Deploy as administrator approved forms
    This would be ideal way of doing things as you have full control over the web request if you write code behind InfoPath forms.
    3) Deploy as a Hybrid solution
    a) Write a full trust proxy solutions (extend SPProxyOperation class and override execute method) and make the web request call inside this and return the response
    b) Invoke above operation from the sandboxed InfoPath form's code behind by SPUtility.RegisteredProxyOperation(four part assembly name, operation args)
    Hope this helps.
    Thanks,
    Srikanth

  • How to create Web services to communicate InfoPath forms to Share Point lists ?

    How to create Web services to communicate InfoPath forms to Share Point lists ?

    Hi,  
     As per your posting and my understanding, you wanted to communicate your infopath with SharePoint list/library. Please refer the below link(s) which may help you to solve your issue.
    http://blogs.msdn.com/b/russmax/archive/2012/08/17/want-to-call-sharepoint-2010-web-services-within-browser-based-infopath-2010-forms.aspx
    http://jaliyaudagedara.blogspot.in/2011/03/submitting-data-to-sharepoint-2010-list.html
    or 
    http://blogs.msdn.com/b/infopath/archive/2007/03/26/submitting-to-a-sharepoint-list.aspx
    If you need more help please let usknow
    Sekar - Our life is short, so help others to grow
    Whenever you see a reply and if you think is helpful, click "Vote As Helpful"! And whenever you
    see a reply being an answer to the question of the thread, click "Mark As Answer

  • State service error when submitting InfoPath form to Library

    I have a problem and looks like Google couldn't help me.. I really hope someone here will be able to.
    I have a Form Library using a custom form. When submitting the form to the library, users are getting this error. I don't get the error with my own user, only difference is I have full access to the farm and content using web app policy.
    ULS logs give me few informations
    SharePoint Server
    State Service
    bm1k
    Medium
    StateSqlSession.GetItemBytesInternal() Locked row in database for key ba18f90ee2e844468b08e90ad96dff2c_05967b71a21948d39b7d4d3ada9b27c9 for 4 seconds
    SharePoint Server
    State Service
    bm0t
    Unexpected
    StateManager.GetState() Locked data (05967b71-a219-48d3-9b7d-4d3ada9b27c9)
    InfoPath Forms Services
    Runtime - State Service
    b5st
    Medium
    MOSS StateService threw an exception: A Microsoft SharePoint Server State Service error occurred while processing your request. For more information, contact your server farm administrator.
    I deleted the State Service and recreated it twice, once with PowerShell and then with the Farm Configuration wizard. Restarted the server. Problem might come from InfoPath Forms Services tho but I don't what else I can do.
    Does anyone have any clue??
    JP Berube | MCTS SharePoint 2010 Configuration and Application Development

    Hi,
    We had the same problem with InfoPath.
    After analysis of servers,it turns out that
    the anonymous user authentication has been enabled on
    the web application server
    via IIS and not via SharePoint
    (unsupported configuration), causing
    side-effects on some queries which
    calls to forms.
    We disabled anonymous access.This desactivation
    causes the functioning of forms again.
    Rachid.

  • Using web service to update rows on InfoPath form

    I managed to get a proof of concept working where I can read data from a web service to populate a table on my InfoPath form. I have found information about how to use a web service to "submit" data from the InfoPath form. But what if I want to
    update an existing record from the read that I displayed on the InfoPath form?
    I have some simple methods in my web service for "read employees", "insert employee", and "update employee". Nothing really fancy. I think I can manage to tell InfoPath to use "insert employee" for the submit command,
    but I'm not entirely sure how it knows exactly what to submit. I have no idea how to tell InfoPath to use the "update employee" method if a user edits a record, nor, what button to push to do that.
    I have a feeling that "submit" is supposed to cover both "insert" and "update" but I can't find anything to confirm that. If that is true, I am not sure how to handle responses from multiple calls if the user tries to update
    or add multiple rows at a time.
    If "submit" does handle both "insert" and "update" then is best practice to make the web method intelligent enough to tell the difference?

    Given that IP has been killed off by Microsoft, and that you are still in the dev process, I might not recommend its use. Consider BCS instead.
    Scott Brickey
    MCTS, MCPD, MCITP
    www.sbrickey.com
    Strategic Data Systems - for all your SharePoint needs
    Looks interesting but it appears to be not an option on our server. The business data connectivity metadata store is offline.

  • InfoPath Forms Services and c2wts

    Hi
    Does/Can InfoPath Form Services use c2wts or not? I seem to find conflicting information.
    Setup:
    Single server with SharePoint 2013 and SQL Server 2012.
    InfoPath form which calls a custom web service that is also on the same machine. The web service only receives the application pool identity. SSRS seems to work fine within SharePoint, so InfoPath seems not to use c2wts. I also assume because it is a single
    machine kerberos does not need to be setup?
    Specifying a SSO in the udcx works around the issue, but it isn't a viable solution.
    Thanks

    See http://technet.microsoft.com/en-us/library/sharepoint-online-service-description.aspx. You need an E3 or E4 license to use IFS.
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • How to enable infopath form service in sharepoint

    Hi,
    I am using Infopath designer 2013.
    When i am opening Sharepoint List, after mentioning its url its giving me following error:
    How can i enable infopath form service.
    please help to solve the issue.
    Thanks in advance!
    Regards
    rajni

    Hello,
    It seems enterprise feature is not activated to your site, not CA. Please go to your site Site Settings/Site Collection Administration/Features and activate the SharePoint Server Enterprise Site Collection features.
    See this thread for your ref:
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/5225cb4a-f981-49b5-ac1c-e3c832bcf79d/this-feature-requires-sharepoint-server-2010-or-greater-with-infopath-forms-services-enabled?forum=sharepointgeneralprevious
    Hope it could help
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • Web service Impersonate in SharePoint InfoPath forms

    Hi All,
    We are using SharePoint 2010 InfoPath forms in one of the sites. We have IIS hosted Web service which is using TIBCO service to fetch the users info in InfoPath forms.
    Now my client wants to migrate to SAP, due to cost involved they want to use one dedicated account to get the user info from SAP instead of Sharepoint site logged in user.
    I implemented Impersonate in IIS web service web. Config file as below.
    <identity impersonate="true" username="Domain\Username" password="Password123" />
    However am getting error when I fetch the users in the form. I checked the log and found below error.
    The following query failed: GetEmployeeList (User: 0#.w|Domain\UserName, Form Name: NESS-TerminationRequest-v14, IP: , Connection Target: , Request:
    https://MySite/sites/forms/HRTest/_layouts/FormServer.aspx?XsnLocation=https://MySite/sites/forms/FormServerTemplates/NESS-TerminationRequest-v14.xsn&SaveLocation=https://MySite/sites/forms/HRTest/TerminationRequestDoc&ClientInstalled=true&Source=https://MySite/sites/forms/HRTest/TerminationRequestDoc/Forms/AllItems.aspx&DefaultItemOpen=1,
    Form ID: urn:schemas-microsoft-com:office:infopath:NESS-TerminationRequest-v14:-myXSD-2008-11-02T22-14-53 Type: DataAdapterException, Exception Message: The remote server returned an error: (500) Internal Server Error. The remote server returned an error:
    (500) Internal Server Error.)
    I have double checked the service with SOAP UI which is working fine for dedicated test user.
    Could you please let me know is any one faced similar issues or any help here please.
    Br,
    Syam

    Hi
    created UDCX connection and passed the credentials in SSO to access the SAP service, however i got below error.
    The following query failed: GetEmployeeList (User: 0#.w|domain\mohans, Form Name: NESS-TerminationRequest-v15, IP: , Connection Target:
    https://MYSite/forms/hr/DataConnections/GetEmployeeList.udcx, Request:
    https://MySite/forms/HRTest/_layouts/FormServer.aspx?XsnLocation=https://MySite/forms/FormServerTemplates/NESS-TerminationRequest-v15.xsn&SaveLocation=https://MySite/forms/HRTest/TerminationRequestDoc&ClientInstalled=true&Source=https://MYSIte/forms/HRTest/TerminationRequestDoc/Forms/AllItems.aspx&DefaultItemOpen=1,
    Form ID: urn:schemas-microsoft-com:office:infopath:NESS-TerminationRequest-v15:-myXSD-2008-11-02T22-14-53 Type: DataAdapterException, Exception Message: Credentials in SSO (Windows=[yes], Username=[yes], Password= [yes]) did not match the specified type "Windows")
    i tried with NTLM,Basic and Windows in COnnection file and also tried various target types in SSO but nothing helped me.
    Any help on this please?
    Br,
    Syam

  • Error when querying REST web services from web-based InfoPath form 2013 environment

    Error when querying REST web services from web-based InfoPath form 2013 environment, we are trying to consume REST web service in InfoPath form ( SharePoint 2013 version) 
    http://spapp/sites/litigation/Intake/_api/web/lists/getbytitle('Email%20Profiles')/items(1)
    it works in preview but does not when it is published. because of claim based authentication i m getting below error
    The form cannot run specified query, the underlying connection was closed. An expected error occurred 
    same works in 2010 environment .. are we missing anything in 2013 servers?? please let me know how we can resolve it.. thank you 
    guru

    everyone face this issue, nothing in event viewer, its easy to reproduce error at ur end also.. 
    just you need to use below web service in infopath and populate some data on form load like id = 1 pull the title and try to set in form any field...the
    list has one item thats all
    guru

  • InfoPath Forms Services Form Upgrade timer job continuously failing

    Hello all,
    We've recently uploaded several InfoPath form templates to our production SharePoint 2010 environment (6 server farm).  One of the forms
    was still stuck in 'upgrading' (even after it said successful after the upload).  So we deleted that form and re -uploaded it successfully. 
    Since then we've been seeing the following timer job failures every minute.  The forms all work but the timer job failures still keep
    coming. 
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    The Execute method of job definition Microsoft.Office.InfoPath.Server.Administration.FormsUpgradeJobDefinition (ID 6904b095-822d-4158-9572-f6b3fe8d4265)
    threw an exception. More information is included below.
    Object reference not set to an instance of an object.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    We saw this
    http://gpkarnik.wordpress.com/  looks hopeful, but we are reluctant to proceed when we read this article
    http://blogs.technet.com/b/nishants/archive/2008/10/10/how-to-delete-orphan-configuration-objects-from-sharepoint-farm.aspx 
    We have done the following:
    Reset timer service on all servers (same job just moves to a different server failing)
    removed the suspect InfoPath form and re uploaded (no change)
    All servers in the farm rebooted (no change)
    Questions:
    Can we just get rid of the failing InfoPath Forms Services Form Upgrade? 
    Will a new one get created the next time we upgrade a form?
    Thank you,
    Jim

    Hi Jim,
    When you upload an administrator-approved InfoPath form template to SharePoint, SharePoint automatically creates a Solution Package for it as well as a Timer Job. When a solution package is deployed in a farm, it will be restored in 14 hives.
    Timer jobs are scheduled for execution, but sometimes it can take a long while before a SharePoint timer job gets executed. The timer job created by SharePoint would have a Title similar to Windows SharePoint Services Solution Deployment for “form-[your_uploaded_form_template_name].wsp”.
    The Schedule Type for this timer job would be One-time.
    If you want to hurry the execution of administrative timer jobs along, you can use the following stsadm command:
    stsadm -o execadmsvcjobs
    More information, please refer to the link:
    http://www.bizsupportonline.net/blog/2008/12/infopath-form-uploaded-sharepoint-remains-stuck-installing-upgrading-status/
    http://johnliu.net/blog/2013/1/8/infopath-form-stuck-on-installing-upgrading-or-deleting.html
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

Maybe you are looking for

  • The software required for comunicating with ipod is not installed correctly

    Hey I have recently had to reinstall windows xp on my laptop as the moder board crushed while the installation was done by a professional, since then everytime i plug my 30gb fifth generation ipod to synch with my Itunes library the following message

  • Burn error 4261

    every time i try to burn a CD with music off of iTunes it only burns one track then comes up with "The attempt to burn a disc failed. An unknown error occured(4261)" what does this mean and how can i get it fixed? i've tried switchin Cd's and changin

  • NI 6110 Example 2 doesn't provide scan interval and samples like it should

    Hello, I'm developing software for NI 6110 with DDK and QNX Momentics 6.4.1. I tried Example 2 (aiex2.cpp) but it didn't stop the Acquisition after 5 Scans, and the Sample Interval isn't 1 ms (Fifo filled after 1us -> Fifo Size is 8192). Does the exa

  • Publishing to a personal domain name

    The Personal Domain button is missing from my Accounts Settings page. How else can I publish to my own domain? -Tino

  • Adobe Download Manager fails when I try to download Photoshop CC! HELP

    I have tried everything, restarting my computer, refreshing the browser, creating new users on my computer, re-installing adobe flash, deleting my cookies, etc!!! Nothing is working!!!! Please help. I have been paying for my Photoshop membership for