Using InfoPath and the Web service GetUserProfileByName-An error occurred accessing a data source
Hi, Everyone,
I want to realize the function that when user fills out the infopath form the form can automatically get current users' name and I've searched that I can use the Web service GetUserProfileByName method. When I preview the form it is all right, however, when
I fill the form online, it occurs this error as folllowing. Anyone knows why and how to solve this problem?
Thanks forward!
Warning
An error occurred querying a data source.
Click OK to resume filling out the form. You may want to check your form data for errors.
Hide error details
An error occurred while trying to connect to a Web service.
An entry has been added to the Windows event log of the server.
Log ID:5566
Correlation ID:9c23d39c-18fa-1025-c7ec-600a1582a54a
Hi,
According to your post, my understanding is that you get error when using the Web service GetUserProfileByName in InfoPath.
Have the InfoPath form template call web service in code? If yes, please see following KB and check if it is the cause.
http://support.microsoft.com/kb/981684
You can also
follow the steps in the article to resolve this error in InfoPath. Please refer to:
Auto Populate User Information in InfoPath with Claims Based Authentication in SharePoint – Part 2 of 3
In addition, you need to disable the Loopback check.
Here is a similar thread for your reference:
https://social.technet.microsoft.com/Forums/en-US/d6d20308-a5d0-45fa-881d-0626c68c4e73/infopath-an-entry-has-been-added-to-the-windows-event-log-of-the-server-logid-5566?forum=sharepointcustomizationprevious
Best Regards,
Linda Li
Linda Li
TechNet Community Support
Similar Messages
-
Oracle script that was used to confirm the web services working????
I am having major problems with the top 2 web servers and top 3 app servers, which would be the cluster facing our external customers. This is how our our web services are deployed. I used an oracle script that was used to confirm the web services worked when I installed this working with the oracle consultant taken from metalink. I simply edited it for our web services.
Can’t deploy web services. Using a script. 2 work on 2 of the machines. Doesn't always work on third machines. Third web service doesn't work on any of the machines.
Please help, Thank youPlease can you provide more information, its really not much to work with when u just my web server is not working. any log files ...error messages ?
-
I have an infopath form that is getting the error when opening an existing form or creating a new form:-
Warning
An error occurred querying a data source.
Click OK to resume filling out the form. You may want to check your form data for errors.
Hide error details
An error occurred while trying to connect to a Web service.
Correlation ID:7ab6be2c-60e1-4025-be1e-1a2fbe00acd3
So I know its a permission issue because full control users have no problem. I have found a suggestion here suggesting making sure the group has "Who can View Membership to the Group" but that didn't work for me - and
my test user is only a member of one group -
http://sharepoint.stackexchange.com/questions/109488/usergroup-asmx-returns-unauthorized-for-some-groups
How can I get around this without provding users Full Control?So I fixed this with exactly what I mentioned above by adding "everyone" "Who can View Membership to the Group" permission. My error initially was that I was looking at the incorrect security group.
-
Anyone can help with the below issue please? Much appreciated.
We have about 2k+ messages in sys.transmission_queue
Telnet to the ports 4022 is working fine.
Network connectivity has been ruled out.
The firewalls are OFF.
We also explicitly provided the permissions to the service account on Server A and Server B to the Service broker end points.
GRANT
CONNECT ON
ENDPOINT <broker> <domain\serviceaccount>
Currently for troubleshooting purposes, the DR node is also out of the Availability Group, which means that we right now have only one replica the server is now a traditional cluster.
Important thing to note is when a SQL Server service is restarted, all the messages in the sys.transmission queue is cleared immediately. After about 30-40 minutes, the errors are continued to be seen with the below
The
connection was
closed by the
remote end,
or an
error occurred while
receiving data:
'64(The specified network name is no longer available.)'We were able to narrow down the issue to an irrelevant IP coming into play during the data transfer. We tried ssbdiagnose runtime and found this error:
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Windows\system32>SSBDIAGNOSE -E RUNTIME -ID 54F03D35-1A94-48D2-8144-5A9D24B24520 Connect to -S <SourceServer> -d <SourceDB> Connect To -S <DestinationServer> -d <DestinationDB>
Microsoft SQL Server 11.0.2100.60
Service Broker Diagnostic Utility
An internal exception occurred: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.
P 29830 Could not find the connection to the SQL Server that
corresponds to the routing address tcp://XX.XXX.XXX.199:4022. Ensure the tool is connected to this server to allow investigation of runtime events
The IP that corresponds to routing address is no where configured within the SSB. We are yet unsure why this IP is being referred despite not being configured anywhere. We identified that this IP belongs to one of nodes other SQL Server cluster, which has
no direct relation to the source server. We failed over that irrelevant SQL Server cluster and made another node active and to our surprise, the data from sys.transmission_queue started flowing. Even today we are able to reproduce the issue, if we bring
back this node [XX.XXX.XXX.199] as active. Since, its a high business activity period, we are not investigating further until we get an approved downtime to find the root cause of it.
When we get a approved downtime, we will bring the node [XX.XXX.XXX.199] as active and we will be running Network Monitor, Process Monitor and the SSB Diagnose all in parallel to capture the process/program that is accessing the irrelevant IP.
Once, we are able to nail down the root cause, I will share more information. -
When I try to start Lightroom CC i get the following error and the splash screen freezes An error occurred when attempting to change modules.
Just had the same issue... went through the steps here: https://helpx.adobe.com/lightroom/kb/error-changing-modules-lightroom.html
For me it was Solution 5. I had to change permissions and add me as a user (only had system access to the folders). -
An error occurred querying a data source - with REST services
Hi,
I have a SharePoint 2013 form library library with an info-path form. I need to get the logged in user's 'Display Name' on my form load automatically.
I used REST service to fetch the current user details. In the preview mode of the form, its showing the right name. But when I publish this form to library I am getting the following error.
REST Service --> http://site url/_api/SP.UserProfiles.PeopleManager/GetMyProperties
Please help me to resolve this issue.
Thanks in advance for your time and reply :)Hi,
According to your post, my understanding is that an error occurred querying a data source with REST services.
It is defiantly permission issue with GetUserProfileByName service
and could be many reasons of this problem. You first try with UDCX file and make sure that UPS is running.
Here are some similar threads for your reference:
http://social.technet.microsoft.com/Forums/en-US/b8c668ea-7511-4657-a1a8-08fb4a6bd53d/info-path-an-error-occurred-querying-a-data-source?forum=sharepointcustomizationprevious
http://social.technet.microsoft.com/Forums/en-US/46866ac2-da09-4340-a86a-af72cbb2c8d7/info-path-an-error-occurred-querying-a-data-source-?forum=sharepointcustomization
http://blogs.msdn.com/b/russmax/archive/2012/08/17/want-to-call-sharepoint-2010-web-services-within-browser-based-infopath-2010-forms.aspx
Best Regards,
Linda Li
Linda Li
TechNet Community Support -
Querying Exchange 2013 Mail server for email items using c# and Exchange Web Services
I am trying to upgrade an existing application that reads Exchange 2003 using WebDAV. The mail server is to be upgraded to Exchange 2013, so I am checking how I can use EWS.
I have a problem in that although I know the inbox has unread items with attachments, the query I am running against the
FindItems object is returning empty (results.totalCount=0)
Here is my code snippet:
private static void GetAttachments(ExchangeService service)
// Return a single item.
ItemView view = new ItemView(100);
ServicePointManager.ServerCertificateValidationCallback = CertificateValidationCallBack;
ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2010_SP2);// .Exchange2007_SP1);
service.UseDefaultCredentials = true;
service.AutodiscoverUrl("[email protected]", RedirectionUrlValidationCallback);
ItemView view = new ItemView(1);
string querystring = "HasAttachments:true Subject:'ATTACHMENT TEST' Kind:email";
// Find the first email message in the Inbox that has attachments.
// This results in a FindItem operation call to EWS.
FindItemsResults<Item> results = service.FindItems(WellKnownFolderName.Inbox, querystring, view);
//FindItemsResults<Item> results = service.FindItems(WellKnownFolderName.Inbox, new ItemView(50));
if (results.TotalCount > 0)
// looping through all the emails
for (Int16 iDx = 0; iDx < results.TotalCount-1; iDx++)
EmailMessage email = results.Items[iDx] as EmailMessage;
if (email.IsRead == false) {
// Request all the attachments on the email message. This results in a GetItem operation call to EWS.
email.Load(new PropertySet(EmailMessageSchema.Attachments));
foreach (Attachment attachment in email.Attachments)
if (attachment is FileAttachment)
FileAttachment fileAttachment = attachment as FileAttachment;
What I am supposed to be doing is reading all the unread emails in the target inbox (only one Exchange server) and taking the attachments on disk so I can then add them as attachments as new cases on SalesForce.
Where am I going wrong?
Also, this line:
ItemView view = new ItemView(100);
was:
ItemView view = new ItemView(1);
Surely that will only look for one email item, right?thanks, do you know why I would be getting an error message like 'The specified object was not found in the store'
here is my code:
ServicePointManager.ServerCertificateValidationCallback = CertificateValidationCallBack;
ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2010_SP2);// .Exchange2007_SP1);
service.Url = new Uri("https://sgexc.bocuk.local/EWS/Exchange.asmx");
//creates an object that will represent the desired mailbox
Mailbox mb = new Mailbox(@"[email protected]");
//creates a folder object that will point to inbox folder
FolderId fid = new FolderId(WellKnownFolderName.Inbox, mb);
//this will bind the mailbox you're looking for using your service instance
Folder inbox = Folder.Bind(service, fid);
FindItemsResults<Item> findResults = service.FindItems(new FolderId(WellKnownFolderName.Inbox, new Mailbox("[email protected]")),new ItemView(10));
it's happening on this line:
Folder inbox = Folder.Bind(service, fid);
and if I try to use AutoDiscoverURL then I just see my own inbox. -
Invoke Web Service - An unknown error occurred
We recently moved our Runbooks to Windows Server 2012 R2. The Invoke Web Services activity has not been executed previously on this installation and thus no cache files.
Entering any SOAP WSDL into the WSDL Properties fields then clicking Method throws an error An Unknown Error Occurred.
Do not see any additional information in Logs or Event Viewer.
All WSDLs are known to be good and are consumed by other applications, including PowerShell.
Thoughts?
Edit: Tested on another installation and it works. I do not have the option to reinstall the server that is facing this issue.
Moved OnResolved the issue. Team forgot to install R2. The working environment has R2, after upgrading the issue is resolved.
It would appear that Invoke Web Services in Orchestrator 2012 is useless.
Moved On -
Problem using ant and weblogic web services (jwsc)
I have made a small HelloWorld implementation as given in http://download.oracle.com/docs/cd/E12840_01/wls/docs103/webserv/use_cases.html#wp228687. but when I run ant I get this error
Buildfile: build.xml
build-service:
[jwsc] JWS: processing module /examples/webservices/hello_world/HelloWorldImpl
[jwsc] Parsing source files
[jwsc] Parsing source files
[AntUtil.deleteDir] Deleting directory /tmp/_gwf3vm
BUILD FAILED
/home/testprojects/src/build.xml:10: java.lang.RuntimeException: Unknown javadoc problem: result=1, root=null:
JAM: error - Cannot find doclet class com.bea.util.jam.internal.javadoc.JavadocRunner_150
1 error
Any help?I also faced the same problem what I did is
moved all the files from weblogic ant directory into another folder
and ant*.* from c:\bea\weblogic81\server\bin to a temp location
copied all the jar files from apache-ant-1.6.3\lib to beahome\lib\ant folder
copied all the ant*.* files from apache-ant-1.6.3\bin to c:\bea\weblogic81\server\bin directory
now I ran the ant -version I am getting the latest version
try this -
Issue using Flash IDE with Mac OS and Windows Web Service using NTLM authentication?
I have an existing application that I developed on a Windows machine using CS5. It uses a local intranet web service written in .NET using NTLM authentication. The web service does multiple things such as read data from an SQL database, provide the user's username, and test for write/read access to a local company fileshare. When my company upgraded, I went to a Mac with Flash CC which is great. However, Mac's don't handle HTTP Authorization Challenge Blocks like Windows machines. In Safari, Chrome, etc. it will pop up a little username and password box and proceed on without issue. The issue is in Flash development. When running the exact same application in Flash testing all script access fails with HTTP Status 401 errors. I have searched the AS3 documentation, but the only thing built in to handle http challenge requests is in AIR not Flash. The server admin's and I have tried all method's of cross domain policy files and access changes with no luck at all. Does anyone have a solution to this issue?
Did you check Apple Support Boot Camp article?
iMac displays a black screen during installation of Windows 7
http://www.apple.com/support/bootcamp/
Installation Guide
Instructions for all features and settings.
Boot Camp FAQGet answers to commonly asked Boot Camp questions.
Windows 7 FAQAnswers to commonly asked Windows 7 questions. -
Infopath 2013/REST Web Service - XML Data format
I've created an Infopath 2013 form and connected it to an existing REST Web Service. The form connects successfully, but I can't get to the nodes that contain the actual data. The REST results look like this:
<wddxPacket version='1.0'>
<header/>
<data>
<struct>
<var name='MIDDLENAME'><string>S</string></var>
<var name='FIRSTNAME'><string>John</string></var>
<var name='UID'><string>jdoe</string></var>
<var name='EMAIL'><string>[email protected]</string></var>
<var name='DEPARTMENT'><string>IT ADMINISTRATION</string></var>
<var name='TITLE'><string>Director</string></var>
<var name='LASTNAME'><string>Doe</string></var>
</struct>
</data>
</wddxPacket>
When I connect to the web service in InfoPath, here is what I see:
Notice that when we expand the tree, it only shows the "struct" node. How do I get down to the actual data fields?
Thanks in advance.
cflbasserHi cflbasser ,
According to your description, my understanding is that you want to query data using rest web service in InfoPath 2013.
For achieving your demand, please refer to the blog:
http://johnliu.net/blog/2012/4/26/infopath-2010-query-using-the-rest-interface.html
http://sharepointlessons.blogspot.com/2013/09/infopath-and-sharepoint-web-services.html
Best Regards,
Eric
Eric Tao
TechNet Community Support -
Error during invoking the web service
hi,
i am using axis 1.2.1 & tomcat-5.0.28
when i am trying to invoke the web service i am getting the error.
i am passing all the parameters..then also it is giving the error.i have used the wsdl file to generate the stubs (using wsdl2java tool).the web service is in remote system.
anybody knows Please let me know the soln.
thanks in advance
the error:
Exception in thread "main" AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Client
faultSubcode:
faultString: JAXRPCTIE01: caught exception while handling request: deserialization error: java.lang.NumberFormatException: For input string: ""
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:JAXRPCTIE01: caught exception while handling request: deserialization error: java.lang.NumberFormatException: For input string: ""1. Does your network have a proxy ? - if so, configure the proxy details in the SOAP adapter.
2. Does the WS expect any credentials? - if so configure the same in the adapter.
More: /people/shabarish.vijayakumar/blog/2008/01/08/troubleshooting--rfc-and-soap-scenarios-updated-on-20042009 -
Timestamp Error when calling Encrypt and Signed Web Service
Hello,
I maked one Web Service in the Oracle Service Bus 10gR3 that supports Encryption and Sign, basically inserting (manually) this on WSDL Contract:
This two namespaces:
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"
This Declarations:
<wsp:UsingPolicy Required="true"/>
<input>
<wsp:Policy>
<wsp:PolicyReference URI="policy:Encrypt.xml"/>
</wsp:Policy>
<soap:body use="literal" />
</input>
<wsp:Policy>
<wsp:PolicyReference URI="policy:Sign.xml"/>
</wsp:Policy>
The above declarations was inserted in the correct points inside the WSDL Contract and the Web Service is working correctly.
The Problem is related to Sign.xml declaration, when i insert this declaration:
<wsp:Policy>
<wsp:PolicyReference URI="policy:Sign.xml"/>
</wsp:Policy>
Then, the Web Service shows an error. Following the Request and Resonse (That shows the error):
Request:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ger="http://www.abc.com.br/Service">
<soapenv:Header/>
<soapenv:Body>
<ger:gerarHashSenha>
<arg0>123456</arg0>
</ger:gerarHashSenha>
</soapenv:Body>
</soapenv:Envelope>
Response:
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<env:Header/>
<env:Body>
<env:Fault>
<faultcode>env:Server</faultcode>
*<faultstring>Can not retrieve header: {http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd}Timestamp</faultstring>*
</env:Fault>
</env:Body>
</env:Envelope>
Observation: I was invoking the WebService using the soapUI Tool.
I Tryed change the request to bellow code, but doesn't work:
<soapenv:Envelope xmlns:ger="http://www.abc.com.br/Service" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header>
<wsse:Security soapenv:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<wsu:Timestamp wsu:Id="Timestamp-447" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsu:Created>2010-05-27T21:40:55.667Z</wsu:Created>
<wsu:Expires>2010-05-27T21:41:55.667Z</wsu:Expires>
</wsu:Timestamp>
</wsse:Security>
</soapenv:Header>
<soapenv:Body>
<ger:gerarHashSenha>
<arg0>123456</arg0>
</ger:gerarHashSenha>
</soapenv:Body>
</soapenv:Envelope>
Thanks.
Victor Jabur.someone has any idea ?
Thanks -
Info path 2010 web service(getuserprofilebyname) not able connect in the browser mode
Hi all,
I have published the info path which will reterieve the current user using the getuserprofilebyname service. The service gets the current user when the form is opened in the info path filler after publishing. It shows the below error when I try to open the
form in browser mode(I have changed the settings in the form -> AdvancedSettigns -> Open in browser). My form is browser enabled form.
There has been an error while processing the form.
Click OK to resume filling out the form. You may want to check your form data for errors.
An error occurred while trying to connect to a Web service.
Correlation id:........
Timestamp Process
TID Area Category
EventID Level Message Correlation
03/10/2014 10:13:46.60 w3wp.exe (*:0x16C4) 0x0B90 InfoPath Forms Services Runtime - Data Connections eq8l Warning The following
query failed: GetUserProfileByName (User: domain\user, Form Name: Final, IP: , Connection Target: , Request:
http://servername/_layouts/FormServer.aspx?XsnLocation=http://ts/001/ODCProcure/Final/Forms/template.xsn&SaveLocation=http://servername/001/ODCProcure/Final&ClientInstalled=false&Source=http://ts/001/ODCProcure/Final/Forms/AllItems.aspx&DefaultItemOpen=1,
Form ID: urn:schemas-microsoft-com:office:infopath:Final:-myXSD-2014-02-06T09-06-05 Type: DataAdapterException, Exception Message: The remote server returned an error: (401) Unauthorized. The remote server returned an error: (401) Unauthorized.) dabf35bf-ce6b-4c95-8694-b2e991b42fb3
Weird thing is that I did not get this error on day1. On day 1 it was working fine. I am able to connect to the web service and get data. On day 2 when i tried open the form I got this error.
We have 4 WFE , So I hope it is not due to loopbackcheck security feature.
I checked in the central admin whether it is claim based web app or not. Its is not claim based web app.
So any one guide me to get ride of this error.
Thanks,
Vaishali.
Vaishali SankarHi Vaishali,
Please ensure the user encountered this issue has enough permission to access (or update) the data source you added to the InfoPath form.
If you suspect the issue is caused by loopbackcheck security feature, then you could try to disable the
DisableLoopbackCheck follow this KB on all SharePoint servers. And check if problem persists after reboot servers:
http://support.microsoft.com/kb/896861 .
In addition, is there load balancer deployed in your environment which might bring double-hop authentication? This might cause the issue happens intermittently. If so, you could manually add entries in host files. For your reference:
http://sharepointconnoisseur.blogspot.in/2011/04/how-to-resolve-401-unauthorized-error.html
Here are the thread with similar issue:
http://social.technet.microsoft.com/Forums/sharepoint/en-US/b55f0e48-971e-4782-a4b8-94cf83f9d9e0/infopath-calls-webservice-unauthorized-udcx-file-with-explicit-credentialssso?forum=sharepointcustomizationprevious
http://social.msdn.microsoft.com/Forums/en-US/81e669c0-60b9-4035-8ac7-67d29633fd2d/unauthorized-401-error-using-form-services?forum=sharepointcustomizationlegacy
Regards,
Rebecca Tu
TechNet Community Support -
Infopath 2013 SOAP Web Service Data Connection - Error: The file is not a valid XML file
Here are the steps to replicate the issue I’m having when adding lists.asmx or any other SharePoint web service in InfoPath 2013. This web service opens fine in the browser from my desktop. My account is a farm administrator and is added to the
web application’s User Policy. I can use these services just fine using Nintex 2013 Workflow.
Open InfoPath Designer 2013.
Select Blank Form and click Design Form button.
Click “Data” tab.
Click “From Web Service” and select “From SOAP Web Service”
Enter https://mysiteurl.com/_vti_bin/lists.asmx?WSDL for the web service definition.
Click Next.
Windows Security window pops up.
Enter a credential. I tried both my account and the farm account. My account is a farm admin and is added to the web application’s User Policy with Full Control.
Click OK. It prompts for credential multiple times.
I get below this error messages:
Sorry, we couldn't open https://mysiteurl.com/_vti_bin/lists.asmx?WSDL
InfoPath cannot find or cannot access the specified Web Service description.
The file is not a valid XML file.
Not enough storage is available to process this command.
We have a project that is in need of these services using InfoPath so any help is greatly appreciated.Hi Brian_TX,
For your issue, try to the following methods:
Change your service binding in web.config to:binding="basicHttpBinding". It seems in VS it defaults to wsHttpBinding.
Replace all instances of "parameters" from the web service wsdl with the name "parameter"
There are some similar articles about the issue, you can have a look at them:
http://www.infopathdev.com/forums/t/23239.aspx
https://social.msdn.microsoft.com/Forums/office/en-US/621929c3-0335-40af-8332-5a0b430901ab/problems-with-infopath-web-service-connection?forum=sharepointcustomizationprevious
https://social.msdn.microsoft.com/Forums/en-US/5fa5eca8-f8d7-4a2e-81ba-a3b4bdcfe5af/infopath-cannot-find-or-cannot-access-the-specified-web-service-description?forum=sharepointcustomizationlegacy
Best Regards
Lisa Chen
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Maybe you are looking for
-
I've just got a new iphone and although I've managed to download some apps, now it's not letting me download anymore. Keeps asking me for my apple ID, I keep putting it in but it's still not working. How do I fix this?
-
This happened all of a sudden. Before I came home, my iPod Touch 4g was working fine. Its when I got home, the screen turned white. Its running on IOS 6.1.3 . Well, the bottom half of the screen. I have no idea what or how it happened.I tried using t
-
Dbms_output.put_line not displaying anything
I am running the below code (ssn_run.sql) using sqlplus 10.2.0.1.0 on my windows XP professional client PC. The database is a Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit running on Solaris I cracked my head for about one hour bu
-
How to ctreate report in dev environment
Hi all, Can I create report on the dev evironment only by having VPN acessto that machine . If yes then when I logged in to the financial reporting stdio client of the Dev environment m/c it gave me the following error. You are not authorized to use
-
Hi, I have two LOVs within the same region on a page 1) selects all companys User picks a company and it displays in the :company field. 2) selects all fiscal data for the specific company(:company) that was selected by the user in LOV 1. Problem is