infopath 2010 problem with using web soap data connection

gogi100 51 Reputation points
2020-10-27T07:11:54.087+00:00

i have a sharepoint 2010 list, i made infopath form that contains data connection for userprofile service (getuserprofilebyname) . i need the account name od current user. i created in load form rules: query data on getuserprofilebyname and set field current user (text field) on Value[Name = "AccountName"]. also, i tryed that convert data connection in the udcx file with authentication over the secure store service but when i start form in every situation, i recevie error message every time

An error occurred while querying the data source.
The item has been added to the Windows event log on the server.
Record ID: 7893
Correlation ID: f6a73410-daea-4293-965f-4e260a8f455b

i uls log i recevie:
The following data connection (domain\user) has timed out(User: Template, Form Name: , IP: http://site/Lists/test/AllItems.aspx, Request: urn:schemas-microsoft-com:office:infopath:list:-AutoGen-2020-10-26T10:43:34:482Z, Form ID: ).

i user next link for resolving of this problem

https://sharepointshah.blogspot.com/2013/01/
https://blog.bugrapostaci.com/tag/infopath/

but nothing. can you give me some instruction

SharePoint Server
SharePoint Server
A family of Microsoft on-premises document management and storage systems.
2,214 questions
SharePoint Server Development
SharePoint Server Development
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Development: The process of researching, productizing, and refining new or existing technologies.
1,571 questions
0 comments No comments
{count} votes

4 answers

Sort by: Most helpful
  1. Amos Wu-MSFT 4,051 Reputation points
    2020-10-28T06:39:24.653+00:00

    As a workaround,you could use js code to get current user name and set it into the input element.
    Code to get the current username:35626-code.txt


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  2. gogi100 51 Reputation points
    2020-10-28T07:34:42.18+00:00

    the configuration of my infopathform service is like on picture

    35691-untitled.jpg

    0 comments No comments

  3. gogi100 51 Reputation points
    2020-10-29T07:18:02.013+00:00

    i tryed with udcx file but nothing

    35868-getuserprofilebyname1udcx.txt

    0 comments No comments

  4. gogi100 51 Reputation points
    2020-10-29T07:40:54.637+00:00

    in fiddler when i open this form i receive in HexView: 401 unauthorized server; in Auth: i see domain name of my application server
    my farm has 1 web server and 1 application server. the userprofile service is on application server.

    0 comments No comments