I am new to SOAP.

I am trying to get the Send Object information and I am able to pull all the data I need except

This is the request I make in postman

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <RetrieveRequestMsg xmlns="http://exacttarget.com/wsdl/partnerAPI">
                <Filter xsi:type="ns1:SimpleFilterPart" xmlns:ns1="http://exacttarget.com/wsdl/partnerAPI">

This is the error I am getting:

<OverallStatus>Error: Column 'dbo.tblJobs.SendID' is invalid in the select list because it is not contained in either an aggregate function or the GROUP BY clause.</OverallStatus>

How do I write SQL inside the xml SOAP request?

1 Answer 1


So, the reason you are getting this error is because SendID is NOT part of the SOAP Send Object. Now, that it is returning a SQL error is very odd (and also very telling that the SOAP object is just a wrapper for a SQL call internally in SFMC to gather this information and pass it back) and likely some sort of 'glitch' on SFMC end of error handling. It usually gives an error more along the lines of 'SendID is not a retrievable property for this object' or something like that.

And finally, the value in ID for the send Object is likely what you are looking for to match with JobID.

  • Thank you for your answer I`ll try to take a look
    – Eli Sigal
    Dec 15, 2021 at 21:31
  • I get the same error when I try to get ListSend Object data and add CreatedDate prop, where as, it is part of the Object.... This is weird
    – Eli Sigal
    Dec 16, 2021 at 8:30
  • I am trying to combine data between Send, ListSend, ClickEvent and Subscribers Objects Subscribers and ClickEvent I use SubscriberKey, ClickEvent and ListSend I use SendID So I am trying to figure out the correct key to combine the data between those and Send
    – Eli Sigal
    Dec 16, 2021 at 8:54
  • @EliSigal - this would be another question you would need to create as that is well beyond the original scope of your question. But a word of advice is to use the DESCRIBE SOAP action on those objects to get details on all the properties in the objects as well if they are retrievable. Dec 16, 2021 at 15:31
  • Thanks. I am using the describe option. thank you. question posted
    – Eli Sigal
    Dec 19, 2021 at 7:05

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .