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

Similar Messages

  • "An error occured querying a data source" - Web Service connecting to GetUserCollectionFromGroupSupport

    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.

  • Error occurred querying a data source in office 365.

    I have created a simple infopath form and in one of my dropdown box  i am receiving the REST services. 
    when i run the infopath form 2013 in preview it was running good but when i upload it on to office 365 cloud it's showing me error. i had converted the services into UDL and save it on Data connection Library and it's approved.
    Warning
    Click OK to resume filling out the form. You may want to check your form data for errors.
    The entry has been added to the Windows event log of the server.
    log ID:5566
    Correlation ID:feb08a9c-9d47-30f5-5d89-60340242d6d1.

    Hi,
    According to your post, my understanding is that you got error when querying a data source in office 365.
    Per my knowleadge, we cannot connect to SharePoint Web Services from InfoPath Forms within SharePoint Online.
    Loopback protection is enabled on the SharePoint Online environment and will block calls to SOAP and REST from InfoPath Form Services.
    For more information, you can refer to:
    Error message when you connect an InfoPath form to a SharePoint Online web service: "An error occurred while connecting to a Web Service"
    As a workaround, to look up data for some dropdowns from several external REST Web Services, we need to have a Data Connection library in your Site Collection in which to store the UDCX files.
    The steps seem to be:
    Create a Data Connection Library in your Site Collection
    In the InfoPath ribbon, go to Data, then Data Connections. Your existing data connections should be listed.
    Choose the data connection which is hosted on a different domain.
    Clink the
    Convert to  Connection File… button
    In the location selector, specify the path to the Data Connection Library you created above.
    Leave the
    Relative to  site collection (recommended) radio button selected.
    Click OK
    Here is a great blog for your reference:
    InfoPath 2013 Forms on Office365 with External REST DataSources
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • 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

  • An error occurred accessing a data source.

    Hi,
    I have seen many posts talking about this error but still i am facing the same issue. The process i have followed is:
    1) created infopath form with receive data connection to SQL DB with plain username/pwd
    2) placed the repaeating table of receive dataconnection, form has full trust
    3) converted the dataconnection to udcx and stored it in data connection library of site collection
    4) published the form for admin approval, and as i am the admin i have uploaded it and activated it
    5) approved the dataconnection
    6) i have modified the infoath settings to use SQL authen, data connection files , cross domain
    But still i am getting this error:
    An error occurred accessing a data source.
    An entry has been added to the Windows event log of the server.
    Log ID:6932
    Regards,
    Amarnath.
    Regards, Amar.

    hi,
    I have found below log:
    DataAdapterException, Exception Message: The database returns an error. Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints.)
    but i am receiving data only here is my query:
    SELECT [Service Request],[Task Order],COUNT(*) as TotalTestCases,SUM(CASE WHEN [Status] = 'Completed' THEN 1 ELSE 0 END) AS Completed,
          SUM(CASE WHEN [Status] = 'Blocked' THEN 1 ELSE 0 END) AS Blocked,SUM(CASE WHEN [Status] not in('Completed','Blocked') THEN 1 ELSE 0 END) AS InProgress FROM
          DashBoardView where SRStatus = 'Active' group by [Service Request],[Task Order] 
    is my calculated columns is giving error? but when i run my wuery its giving correct output
    Regards, Amar.

  • Error occured for the data source 0uc_isu_27

    Error when updating Idocs in Source System
    Diagnosis
    Errors have been reported in Source System during IDoc update:
    Incomplete control parameter for commmunication wi
    Hi everybody,
    At the time of loading data in to the BW side for the datasource i got an error message.Actually in the source system this data source is extracting the data records. But in the BW side it is giving error. Please help me on this issue. Here i am mentioned the error message actually i got...
    System response
    There are IDocs with incorrect status.
    Procedure
    Check the IDocs in Source System . You can get here using the BW Monitor.
    Removing errors:
    How you remove the errors depends on the error message you receive.

    Hi Dinesh,
    I observed at R/3 side it is showing the error
    Error message text:
    Incomplete control parameter for communication with the BW system
    status text:
    Application document not posted
    Coming to BW side it is giving at RSRQST:
    IDOC sent to R/3 system or external program
    Status text:
    IDOC sent to R/3 system or external program
    Thanks
    Satya

  • "Error occurred in the data selection" on init delta load ODS- InfoCube

    Hi, gurus and experts!
    I'm trying to do Init delta load from 0FIAR_O03 ODS into 0FIAR_C03 InfoCube in PRD env. by InfoPackage "Initialize with delta transfer (with data transfer)". Immediately after the load was started I got error
    "Error occurred in the data selection"
    with details
    "Job terminated in source system --> Request set to red".
    Where are no any short dumps. There are 1 activated init load in ODS - nearly 6 500 000 records.
    Any ideas about error? And the way I can load data?

    Hi Gediminas Berzanskis,
    I faced the similar error when I tried to load data from an ODS which contained huge amount of data to a Cube. Even in your case the volume of data is more (around 6.5 million records). The error could be due to the table space issue, please contact your Basis team to check if enough table space exist for both the data targets. 
    Meanwhile you may also check the RFC connection of the Myself source system.
    You can replicate the DSO datasource once and then reactivate the transfer rules using the program RS_TRANSTRU_ACTIVATE_ALL.
    Try load with a small amount of data with a Full load option and then with a delta option..
    Hope this Helps,
    Prajeevan (XLNC)

  • Errors in the high-level relational engine. A connection could not be made to the data source with the DataSourceID of '

    When I deploy the cube which is sitting on my PC (local) the following 4 errors come up:
    Error 1 The datasource , 'AdventureWorksDW', contains an ImpersonationMode that that is not supported for processing operations.  0 0 
    Error 2 Errors in the high-level relational engine. A connection could not be made to the data source with the DataSourceID of 'Adventure Works DW', Name of 'AdventureWorksDW'.  0 0 
    Error 3 Errors in the OLAP storage engine: An error occurred while the dimension, with the ID of 'Customer', Name of 'Customer' was being processed.  0 0 
    Error 4 Errors in the OLAP storage engine: An error occurred while the 'Customer Alternate Key' attribute of the 'Customer' dimension from the 'Analysis Services Tutorial' database was being processed.  0 0 

    Sorry hit the wrong button there. That is not entire solution and setting it to default would work when using a single box and not in a distributed application solution. If you are creating the analysis database manually or using the wizard then you can
    set the impersonation to your heart content as long as the right permission has been set on the analysis server.
    In my case I was using MS Project Server 2010 to create the database in the OLAP configuration section. The situation is that the underlying build script has been configured to use the default setting which is the SQL Service account and this account does
    not have permission in Project Server I believe.
    Changing the account to match the Project service account allowed for a successful build \ creation of the database. My verdict is that this is a bug in Project Server because it needs to include the option to choose impersonation when creating the Database
    this way it will not use the default which led to my error in the first place. I do not think there is a one fix for all in relations to this problem it is an environment by environment issue and should be resolved as such. But the idea around fixing it is
    if you are using the SQL Analysis server service account as the account creating the database and cubes then default or service account is fine. If you are using a custom account then set that custom account in the impersonation details after you have granted
    it SQL analysis administrator role. You can remove that role after the DB is created and harden it by creating a role with administrative permissions.
    Hope this helps.

  • Shared Data Source with prompted credentials - errors out.

    Using Data Tools (VS 2010) to build report.
    Have built a simple report while trying to diagnose this issue.  This report is created in a project that was originally built in BIDS2008 and migrated to Data Tools 2010.  This project contains an original shared dataset that does NOT
    error out.
    Report contains
         1) shared data source with properties set to prompted credentials.
         2) shared dataset using data source above
         3) 2 parameters (month and year)
         4) Report uses shared dataset
         5) 2 text boxes in the report body to display the parameters values.
    When I try to preview this report I get the error:
         The execution failed for the shared data set "xxx"
         Cannot create a connection to data source 'Data source for shared dataset'
         Security processing failed with reason "3" ("password missing")
    Now, if I changed that same shared dataset to use a static login and password; the report renders fine.
    What is going on???

    Hi RoseNeedsAVacation,
    When you use shared data source with "Prompt for credential" option, please use SQL Server login credential to u view the report in BIDS or SSDT report designer environment.
    Note: The shared data source will automatic switch to SQL Server authentication mode if we use "Prompt for credential" option.
    After you deploy your report and shared data source to report server, please remember to configure your shared data source to use "Credentials supplied by the user running the report" option. Furthermore, select "Use
    as Windows credentials when connecting to the data source" checkbox if the credentials that the user provides are Windows Authentication credentials. Do not select this check box if you are using database authentication (for example, SQL
    Server Authentication).
    For more information, please refer to the article below:
    New Data Source Page (Report Manager):
    http://technet.microsoft.com/en-us/library/ms180077(v=sql.100).aspx
    Regards,
    Elvis Long
    TechNet Community Support

  • Error occured in the data selection while extract data from Source system

    Hello Friends
    i am facing Problem while extracting data to Biw System from SAP R/3 system
    The error mesage is 'Error occured in the data selection '
    i.e. Monitoring - Details tab - Extraction - With error

    Hi
    The delta wil take the Last init selection for loading data in to the BW...
    Did u check the IP at the Update tab is it the correct delta only.. or its a full..
    better to go to the RSA3 and check the extractor in the Delta mode .. if u give ur delta mode it automatically takes the selction options.. so please try in RSA3..
    regards
    CK
    PS: CHECK THE INIT SELECTIONS TOO  or do an init with outdatatransfer and perform the delta...
    Message was edited by:
            BW Star

  • When syncing i phone with i tunes i get...."iTunes could not sync contacts to the iPhone because an error occurred while merging data"....HELP

    when syncing i phone with i tunes i get...."iTunes could not sync contacts to the iPhone because an error occurred while merging data"....HELP

    hello
    see here the procedure that worked for me:
    https://discussions.apple.com/message/16880485#16880485
    good luck

  • Generic Data source with Infoset Query

    Hi All,
    Please provide me the links or PPT's or Information or PDF's for the creation of the Generic Data source with Infoset Query or
    Please explain in clear steps how to create Generic Data source with Infoset Query.
    Thanks & Regards,
    Ravi

    Oopps...being a BI guy, always think of BW
    I have never created, though I will suggest to follow this:
    A query can be created to extract information from master records i.e Infotypes. For example, by creating a query , the data relating to an employee contained in various Infotypes can be extracted.
    Proceedure :
    Decide on the various Infotypes we want to make the query. Decide on the area where we want to query i.e Global area or Standard area. Standard area is client specific and globel area will include all clients.
    Menu : HR u2013 PM u2013 Admn - Information System - Adhoc Query
    Select area standard and select the user group already created
    Creation of new query :
    TC SQ03 - Select Environment u2013 Select Standard Area - Enter -- If new user group is to be created, enter name of the user group, click on create and enter necessary information and exit after saving
    TC SQ02 - Enter name of the Infoset u2013 Create u2013 enter name of Infoset - Data source -- > Table join by basis table u2013 give name of table e.g pa0000 - Enter - Click on insert table if we want to include more tables u2013 give name of table one by one and after finishing, place cursor on the joining lines and right click to delete unwanted relationships - check - and go back - field groups - include all table fields - click on generate button - go out
    TC SQ03 - Select user group - eg. Payroll
    Infoset - Enter name of newly created Infoset
    Assign users and Infosets - Assign infosets - put tick on payroll - save and go back
    TC PAAH - Expand the nodes and put tick on relevant fields depending upon necessity
    Save the query by giving the same name as infoset for easyness..
    Thanks...
    Shambhu

  • SQL Service Broker 2012: the connection was closed by the remote end, or an error occurred while receiving data: '64(The specified network name is no longer available.)'

    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.

  • Error occurred in the data selection,If i do Repeat, then it is working fin

    Hi Freinds,
    Here is the error message,
    Error message from the source system
    Diagnosis
    An error occurred in the source system.
    System Response
    Caller 09 contains an error message.
    Further analysis:
    The error occurred in Extractor .
    Refer to the error message.
    Procedure
    How you remove the error depends on the error message.
    Note
    If the source system is a Client Workstation, then it is possible that the file that you wanted to load was being edited at the time of the data request. Make sure that the file is in the specified directory, that it is not being processed at the moment, and restart the request.
    Details Tab:
    Extraction (messages): Errors occurred
    Error occurred in the data selection ....
    If i do Repeat Delta, then it is working fine.
    As it is a daily load, manually repeating the load from the past 10 days.
    Have tried using program RS_TRANSTRU_ACTIVATE_ALL.
    Any inputs pls.....

    Hi Friends,
    Thanks for your valuable inputs, Problem is solved.
    The Reason is that, there is a time difference in the r/3 system and bi system.
    The tolerable time differene shud be only 60 seconds.
    Basis guys  took down time at the OS level and hav made the timers sync.....
    The problem is on the source system GNP time differences
    persists, which can cause the problem with delta upload .
    Universal Time Coordinated UTC....: 1291187626
    Date and time of database.........: 01.12.2010 12:46:59
    Date and Time of R/3-Kernel.......: 01.12.2010 12:43:46
    Date and Time of ABAP-Processor...: 01.12.2010 12:46:58
    ABAP Time zone Setup ..............: 19800
    Date and Time / local time ........: 01.12.2010 12:43:46
    This leads to an exception of the delta processing, because this
    tolerates a deviation of 60 seconds only (When the repeat is processed,
    the "local time" in the ABAP is higher than the qrfc counter at the time when the delta was processed -> So a repeat works fine).
    Please synchronize the timers like described in attached note 101726 and 741734 to eliminate the time difference .
    With Regards
    Badri Thiriveedhi.

  • Error in data loads-Error occured in the data seletion

    Hi,
    We have to do an init load for Period 10 from data source 0EC_PCA_3.
    When the period changes we usually copy the previous infopack and change the fiscal yesr period and do an init load.
    This time we have to change the fiscal period to 010, we created a new info pack but the fiscal year period we forgot to change and was 009 and scheduled a init load.
    The load failed with error mesg  IN EXTRACTION PART:
    1) syntax error in RSCDELTA
    2) Error occured in the data selection -RSM 340
    REQUEST part in monitor screen is green.
    TRANSFER part in monitor screen is green
    EXTRACTION shows:
    Data request received ---green
    Data selection scheduled -
    green
    Error occurred in the data selection -
    RED
    Processing (data packet): No data ---RED
    We deleted the red request in the ods , deleted the init load in scheduled -init for source system --- chnaged the fiscal yesr period to 010 and triggered a new load but again it gives the same error mesg.
    How to rectify this and do loads to the target successfully.
    Please suggest

    Please check the job log in the source system. It will give you the exact reason why extraction is failing. You need to act accordingly.
    Thanks..
    Shambhu

Maybe you are looking for

  • Solaris 8 wrong patches?

    Hi, there are 2 patches that don't install on my system : 118097-05 SunOS 5.8: bug fixes for cdrw 1.1 115951-03 Netra ct OBP update for SUNW,UltraSPARC-IIi-Netract For sure it's because the concerning packages are not installed. But why am I offered

  • Need SQL for below scenerio .

    Hi Experts, Consider an Order Table with the following table structure with some Sample Data: ORDER_DAY ORDER_ID PRODUCT_ID QUANTITY PRICE 01-JUL-11 O1 P1 5 5 01-JUL-11 O2 P2 2 10 01-JUL-11 O3 P3 10 25 01-JUL-11 O4 P1 20 5 02-JUL-11 O5 P3 5 25 02-JUL

  • How to not display certain row

    Hi all, I'm creating a report using XML Publisher in Excel format. I have a group, but I want the report to exclude rows that meet certain criteria. I've been trying attribute@incontext. help anybody? thanks

  • Photocast no longer works

    This is very depressing, Photocasting has stopped working. Whenever I try to add pictures iPhoto crashes. The only way to make it work is un publish, make a new album, drag the pictures in the new album and then republish.

  • IPhone 5 will not recognise my finger print

    My iPhone 5 will not recognise my finger print ?