SPD 2013 workflow making a REST call to Search returns no records, even though I can take the exact URL and get back records in the browser

I am making the following REST call from a SharePoint Designer workflow:
Site-URL/_api/search/query?querytext='WorkEmail:*zafgen.com'&rowlimit=10&startrow=0&selectproperties='LastName,FirstName,WorkEmail,JobTitle,Path,PictureUrl,PreferredName,Department,AboutMe'&SourceId='b09a7990-05ea-4af9-81ef-edfab16c4e31'
When I make this call from a designer workflow running as the user who started it (The user is a site collection admin) I get the results shown below.  NOTE that I get ZERO records.  If I take the url above and place it in the address bar
of any browser, I get back 10 users.  (Exactly what I asked for.)  Furthermore, if I try to put the call to a REST service in a APP Step, I get a failure return code:
{"error":{"code":"-1, Microsoft.Office.Server.Search.REST.SearchServiceException","message":{"lang":"en-US","value":"An unknown error occurred."}}}
I have no issues making REST calls to SharePoint Lists and Libraries, but a call to search seems to have issues.  Any thoughts?
{"d":{"query":{"__metadata":{"type":"Microsoft.Office.Server.Search.REST.SearchResult"},"ElapsedTime":135,"PrimaryQueryResult":{"__metadata":{"type":"Microsoft.Office.Server.Search.REST.QueryResult"},"CustomResults":{"__metadata":{"type":"Collection(Microsoft.Office.Server.Search.REST.CustomResult)"},"results":[]},"QueryId":"deba5b38-d89e-46d6-9911-a4280beead31","QueryRuleId":"00000000-0000-0000-0000-000000000000","RefinementResults":null,"RelevantResults":{"__metadata":{"type":"Microsoft.Office.Server.Search.REST.RelevantResults"},"GroupTemplateId":null,"ItemTemplateId":null,"Properties":{"results":[{"__metadata":{"type":"SP.KeyValue"},"Key":"GenerationId","Value":"9223372036854775806","ValueType":"Edm.Int64"},{"__metadata":{"type":"SP.KeyValue"},"Key":"indexSystem","Value":"","ValueType":"Edm.String"},{"__metadata":{"type":"SP.KeyValue"},"Key":"ExecutionTimeMs","Value":"63","ValueType":"Edm.Int32"},{"__metadata":{"type":"SP.KeyValue"},"Key":"QueryModification","Value":"WorkEmail:*zafgen.com
ContentClass=urn:content-class:SPSPeople","ValueType":"Edm.String"},{"__metadata":{"type":"SP.KeyValue"},"Key":"RenderTemplateId","Value":"~sitecollection\/_catalogs\/masterpage\/Display
Templates\/Search\/Group_Default.js","ValueType":"Edm.String"},{"__metadata":{"type":"SP.KeyValue"},"Key":"StartRecord","Value":"0","ValueType":"Edm.Int32"},{"__metadata":{"type":"SP.KeyValue"},"Key":"IsFirstBlockInSubstrate","Value":"true","ValueType":"Edm.Boolean"},{"__metadata":{"type":"SP.KeyValue"},"Key":"IsLastBlockInSubstrate","Value":"true","ValueType":"Edm.Boolean"}]},"ResultTitle":null,"ResultTitleUrl":null,"RowCount":0,"Table":{"__metadata":{"type":"SP.SimpleDataTable"},"Rows":{"results":[]}},"TotalRows":0,"TotalRowsIncludingDuplicates":0},"SpecialTermResults":null},"Properties":{"results":[{"__metadata":{"type":"SP.KeyValue"},"Key":"RowLimit","Value":"10","ValueType":"Edm.Int32"},{"__metadata":{"type":"SP.KeyValue"},"Key":"SourceId","Value":"b09a7990-05ea-4af9-81ef-edfab16c4e31","ValueType":"Edm.Guid"},{"__metadata":{"type":"SP.KeyValue"},"Key":"CorrelationId","Value":"6288bf51-64fc-45de-a9ca-d62c36e3ebd1","ValueType":"Edm.Guid"},{"__metadata":{"type":"SP.KeyValue"},"Key":"WasGroupRestricted","Value":"false","ValueType":"Edm.Boolean"},{"__metadata":{"type":"SP.KeyValue"},"Key":"EnableInterleaving","Value":"true","ValueType":"Edm.Boolean"},{"__metadata":{"type":"SP.KeyValue"},"Key":"piPageImpression","Value":"16620813_415_1033","ValueType":"Edm.String"},{"__metadata":{"type":"SP.KeyValue"},"Key":"SerializedQuery","Value":"","ValueType":"Edm.String"}]},"SecondaryQueryResults":{"__metadata":{"type":"Collection(Microsoft.Office.Server.Search.REST.QueryResult)"},"results":[]},"SpellingSuggestion":null,"TriggeredRules":{"__metadata":{"type":"Collection(Edm.Guid)"},"results":[]}}}}
Marcel Meth

Hi,
We are currently looking into this issue and will give you an update as soon as possible.
Thank you for your understanding and support.
Best Regards,
Lisa Chen
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected]

Similar Messages

  • SPD 2013 Workflow - Create list item with people picker in other site collection

    Hi all,
    I read a lot of blogs and forum posts the last couple of days, but I seem to be stuck as to why my workflow is not working as expected - thus, I thought I would ask the experts :-)
    Setup:
    2 lists in 2 different site collections
    http://svr-url/servicedesk/tickets
    http://svr-url/projects/requests
    SharePoint 2013 on Prem
    I try to create a SPD 2013 workflow that creates a new item in list "requests" once a certain trigger is set in list "tickets". One of the fields I need to copy is the requestor = People picker field.
    I did a web service call with a REST call to create a list item. All works well as long as I just stick to Title and other text fields, but filling in the "Requestor" fails with "Bad request".
    I learned I need to use the "RequestorID" field and in a blog I read I need to put in the user id as Int32. So I set the parameters in the dictionary to integer. Still I get "bad request".
    Another issue: as I have lists from 2 site collections, the user id differs for the same user.
    /servicedesk: ID = 9
    /projects: ID = 22
    Additionally, the possibility exists that the user I try to set is not already existent in the /projects user information list.
    How can I deal with that?

    check this
    http://community.office365.com/en-us/f/154/t/127887.aspx

  • What are the ports required for the Audio, Video and A/V conferencing when the following end points are enabled for QoS in Lync 2013 server?

    Hi All,
    What are the ports required for the Audio, Video and A/V conferencing when the following clients are enabled for QoS in Lync 2013 server?
    Client Type
    Port range  and Protocol required for Audio
    Port range and Protocol required for
    Video
    Port range and Protocol required for
    A/Vconferencing
    Windows Desktop   Client
    Windows mobile App
    Iphone
    Ipad
    Andriod phone
    Andriod Tablet
    MAC desktop client
    Please advise. Many Thanks.

    Out of the box, 1024-65535 for all of the client ports.  :) 
    https://technet.microsoft.com/en-us/library/gg398833.aspx
    You'll want to tune your client ports a bit
    https://technet.microsoft.com/en-us/library/jj204760.aspx as seen here, and then the client ports would use those ranges which is easier to set QoS markings.  I'm not sure the mobile clients respect that setting.
    Elan's got the best writeup for Windows clients here:
    http://www.shudnow.net/2013/02/16/enabling-qos-for-lync-server-2013-and-various-clients-part-1/
    However, the marking of the packets is the tricky part.  Windows can do it via Group Policy, but for the other clients you'll need to have the network specifically prioritize ports regardless of DSCP markings.  You have to do it based on ports
    as the traffic could be peer to peer.
    Please remember, if you see a post that helped you please click "Vote As Helpful" and if it answered your question please click "Mark As Answer".
    SWC Unified Communications
    This forum post is based upon my personal experience and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • Hey how are you guys listen i have an iphone 4s the one i use with the H20 CARRIEr and i trying to enable the option call forwarding and when i type tho number i go back and i notice to the call forwarding it turning off as soon i back to the main menu ?

    hey how are you guys listen i have an iphone 4s the one i use with the H20 CARRIEr and i trying to enable the option call forwarding and when i type tho number i go back and i notice to the call forwarding it turning off as soon i back to the main menu ?

    There are a lot of posts in the forums today with people having problems with iMessage.   There was also a published outage yesterday, so it's possible there are still some issues that may be impacting you both.
    I would just wait it out - I'm sure it will be sorted out soon.

  • I have a file on my desk top and in my iPhoto called .DS_Store and I can't trash it it just pops back up all the time. What do I do?

    I have a file on my desk top and in my iPhoto called .DS_Store and I can't trash it it just pops back up all the time. What do I do?

    Download and run the free application TinkerTool (not "TinkerTool System"), select the Finder tab, and uncheck the box labeled Show hidden and system files. Then click Relaunch Finder.

  • I added music to a set of clips but want to stop the music there and have no music in the rest of the movie. How do I do that?

    I added music to a set of clips but want to stop the music there and have no music in the rest of the movie. How do I do that?

    there are two ways applying music to an iM project
    http://help.apple.com/imovie/#mov3b0f955f
    as 'Background' which offers lots of automatisms, but lil' control
    or…
    http://help.apple.com/imovie/#mov3b0fb470
    as 'clip' - which can be handled asany other clip, edited, shortened, copy/paste, faded, located, etc

  • How to call plsql procedure or function and getting back the string?

    Hi Everyone,
    i am using Jdev 11.1.1.5.0.
    i have a requirement to call plsql procedure or function from my backing bean java file and get back the returned value from the procedure or function.
    what piece of simple code i need to write in my backing bean?
    please suggest.
    Thanks.

    As always you write the method to call he pl/sql in the application module, expose this method to the client (so you see it in the datacontroll) then create a operation binding to the method and call this operation from the bean. The result you get by operation.getResult();
    You should never call pl/sql from the bean directly!
    The doc shows how to call the procedure from an application module: http://docs.oracle.com/cd/E21764_01/web.1111/b31974/bcadvgen.htm#sm0297
    Timo

  • Call a webservice and get back a value within an ESB...

    Hi!
    I'd like to call a webservice and get back a value from it within an ESB. But I don't know how.
    I think, I must create a routing service, then a SOAP service, but how can I get back the value from the webservice, which I called in the SOAP service?
    Or it is not possible to realize this within an ESB?
    Thank You very much!
    Viktor

    When you take a look at the Soa Orderbooking example you can see how it works. You create a webservice that accepts certain parameters and these are bundled into an object. This object, in case of the Soa Orderbooking example a 'PurchaseOrder', is described using an Xml Schema. The XML Schema is used to create the ESB with. Using this xsd the ESB knows which object it can expect and this object can be used inside your ESB or inside a bpel process.

  • I have been charged 274.55 from 8-23-2013 - 8-26-2013. These are not my charges. I need to know how to get the charges reversed and put back on my account ASAP. Please confirm!

    I have been charged 274.55 from 8-23-2013 - 8-26-2013. These are not my charges. I need to know how to get the charges reversed and put back on my account ASAP. Please confirm!

    You can contact iTunes Support via this page (we are fellow users here on these forums) : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

  • All my incoming calls are coming up as unknown, even though they are not blocked?

    All my incoming calls are coming up as unknown, even though they are not blocked? Any help much appreciated!

    We didnt    Still happens to some numbers!

  • When people call, they got a busy tone even though i do not use the phone. Whats wrong

    Question: when people call, they got a busy tone even though I do not use the phone. Whats wrong?

    Hey rolffsweden,
    You might have Do Not Disturb turned on - I would check that first:
    To enable/disable, tap Settings > Do Not Disturb. When Do Not Disturb is on, a "moon" icon will appear in the status bar.
    or
    You can enable/disable Do Not Disturb in Control Center.
    from: iOS: Using Do Not Disturb
    http://support.apple.com/kb/HT5463
    Welcome to Apple Support Communities!
    Have a great day,
    Delgadoh

  • Save conflict while trying to save or publish a SPD 2013 workflow (SP 2013 version)

    Hi all, I have a problem while trying to develop a SharePoint 2013 workflow. I'm able to create a new workflow for a list (to save it) and I can confirm that it can run. Unfortunatelly, when I try to modify It (either just after creation or when opening
    it later) I get an error while saving or publishing:
    Errors were found when compiling the workflow. The workflow files were not saved.
    Save conflict
    Your changes conflict with those made concurrently by another user. If you want your changes to be applied, click Back in your Web browser, refresh the page, and resubmit your changes.
    ULS doesn't show anything helpful but the same message with lots of stack trace pointing  to a file save conflict.
    Today, by accident I discovered that the workflow could be saved after it was open in SPD for nigth so I expect there may be some time lockout like when you access a document in a library from another domain (hope it's only 30 minutes).
    I tried to re register the workflow service and even reinstalling and reconfiguring the workflow manager. This problem was present without the service bus and workflow CU, but now I have them installed as well.
    Any suggestions?
    Update:
    I managed to publish the workflow after performing following steps:
    1. Open the workflow and make modifications (save conflict occurs when trying to publish)
    2. Reset IIS
    3. Publish workflow (the workflow is saved successfuly)
    Best Regards Wojciech Wróblewski Visit my blog (in polish):
    http://wojciechwroblewski.wordpress.com/

    Hi,
    According to your post, my understanding is that you got “save conflict” error  while trying to save or publish a SharePoint Designer 2013 workflow.
    Please check whether the Central Admin > Manage Service Application-> “App Management Service” is started.
    Please check whether the “Configure service application associations”,  ”App Management Service” is already associated.
    Then please check whether the “Manage Services on server” and the “App Management Service” is started.
    If all the service are started, add executionTimeout property in web.config file to increase the timeout interval(Make a copy of the web.config file before editing anything).
    For more information, please refer to this site:Fixed: SharePoint Designer Error - Unexpected error on server associating the workflow
    In addition, if you develop a too complex workflow and try to compile it in SharePoint Designer then you might get the error if your workflow exceeds the complexity limit. To fix the error you will have to redesign and break them into multiple workflows
    to achieve the business functionality.
    More information:
    http://wp.ahcheng.com/2013/03/23/error-were-found-when-compiling-the-workflow-the-workflow-files-were-saved-but-cannot-be-run/
    http://www.sharepointpals.com/post/How-To-Identify-Complexity-of-SharePoint-2013-or-2010-Workflow-to-fix-errors-while-compilation
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • SPD 2013 Workflow not working

    Hello,
    I'm running into a very interesting issue, we have a 2013 custom list that has some 2010 and 2013 workflows associated with it. Just until recently the workflows were working fine, but now only 2010 workflows are working. 
    I updated one of the 2013, tried to publish it  but then I canceled the process of publishing it because I had to make a new update.... not sure if this flipped the switch on these but now even if I create new ones in SPD they will not run. Also if
    I try to run in manually I get a message - "Something went wrong. To try again, reload the page and then start the workflow"(the option for start manually is enabled in SPD 2013). Any help on this will be greatly appreciated! 

    Hi Ghabib05,
    According to your description, my understanding is that you got an error when you ran a SharePoint 2013 workflow.
    Afer you made some change in your workflow, whether you re-published the workflow. if not, please publish it, then test again, compare the result.
    Please create a new SharePoint 2013 workflow on the list, then test, compare the result.
    If this issue only occurred on the specifical workflow, I suggest you create a new workflow instead of the problematic one.
    If this issue occurred on all SharePoint 2013 workflow, you can try to re-register workflow service.
    Best Regards,
    Wendy
    Wendy Li
    TechNet Community Support

  • SPD 2013 WorkFlow Status Column: Status Not Updated

    We are having an issue with the status display of the SPD Designer Workflow status column which is a read only column added by SharePoint to show the status of the workflow. We have some SharePoint 2013 Workflows built using SharePoint Designer that are
    attached to specific SharePoint Document Libraries. The expected behavior is for this column to show the workflow statuses (Not Started, Starting Workflow, In Progress and Completed. 
    Based on our observation this status is showing up although the column does get added for the Workflow that we have. Is there any other dependency for SPD Workflows that are attached to Document Libraries to show the status correctly? Any other settings/configurations
    to be made?
    Regards,
    Vikram
    Blog: http://dotnetupdate.blogspot.com |

    Hi Venkadesh,
    It is by design that 2013 workflow will show stage name in the workflow status column when
    Automatically update the workflow status to the current stage name is checked.
    And the workflow status column will be blank when Automatically update the workflow status to the current stage name is unchecked.
    For existing workflows, the workflow status will still exists with the previous values after unchecking Automatically update the workflow status to the current stage name.
    We can use Set Workflow Status action to update the workflow status value based on our needs.
    Best regards,
    Victoria
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • SPD 2013 WorkFlow starts in visual mode and crashes when publishing or switching views

    When editing a Workflow in SPD 2013, the WF forces the WF to open in visual mode and I am unable to publish or change  the view without crashing SPD.  When any action is taken on this
    workflow a progress bar flashes and "Exporting Workflow" is displayed --  this process either crashes SPD or locks the computer. 
    I have completed the following
    without success:
    uninstalled & reinstalled SPD and Visio (32 bit),
    cleared caches, 
    uninstalled and reinstalled SPD and Visio to 64 bit,
    installed all updates
    Any guidance is much appreciated.

    Hi,
    Could you test the issue on another machine with both Visio and Designer installed?
    Does the issue occur to all workflows?
    I find similar issue for your reference:
    https://premierpointsolutionstraining.wordpress.com/2014/01/24/sharepoint-designer-crashes-workflow-design-view/
    http://answers.microsoft.com/en-us/office/forum/office_2013_release-visio/visio-2013-sharepoint-designer-2013-crash/424c5720-2ae0-404c-9a53-2a06cddd3365?auth=1
    Please test if updates matters in your situation.
    Regards,
    Rebecca Tu
    TechNet Community Support

Maybe you are looking for

  • Can i transfer music from my itunes account to another iTunes

    i recently bought a macbook pro and i am now trying to put my music from my itunes account in itunes but i cant,  i want to know if i can do this and how

  • Help! I can't open any files in GarageBand

    I don't know why but every single time I try to open up a music file in GarageBand to try and make it an iPhone ringtone it will not let me. It's upsetting. Anyone think they can help me? I just want some ringtones for my iPhone already. If anyone th

  • Using the same CD to burn photos

    I have many pictures I would like to burn to a CD so I can take them to a photo place to get pictures printed. The thing is, I don't have all the photos together to burn all at one time. I have red all the help over and over again; it mentioned Disk

  • What is a unexpected error 2210, and how do I solve it.

    Frankly.... I hate this router. After having duplicate DNS names, and other assorted issues, I decided to reset to factory. Great idea Chadster..... now what? After entering about 50 names, ip addresses, and MAC addresess...  I click save, and get a

  • Conditional summary rows

    HI, I have a table which contains of data about users entering games. game_id (int) | user_id (int) | entry_created (datetime) I need to create a query which displays how many users entered certain times in a particular game. E.g. for game_id=1 Nr_of