0

So i'm having issues performing an import definition.
I followed the directions here: https://developer.salesforce.com/docs/atlas.en-us.noversion.mc-apis.meta/mc-apis/performing_an_import_via_the_soap_api_without_an_existing_import_definition.htm

everything seems to be working fine...I get a successful status message back...."ImportDefinition performed AsyncID:19740"

problem is, I'm not seeing any data in my dataextension from the import.
I've created the file location correctly

here's my soap call in postman (i've tried both postman and soapUI):

<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">   
   <soap:Header>
      <wsa:Action>Perform</wsa:Action>    
      <wsa:To>https://{{my_url}}.soap.marketingcloudapis.com/Service.asmx</wsa:To>
      <fueloauth xmlns="http://exacttarget.com">{{my_token}}</fueloauth>
   </soap:Header>
   <soap:Body>
      <PerformRequestMsg xmlns="http://exacttarget.com/wsdl/partnerAPI">
         <Action>start</Action>
         <Definitions>
            <Definition xsi:type="ImportDefinition" xmlns:ns1="http://exacttarget.com/wsdl/partnerAPI">
               <Name>Web Service Created Import Definition during Perform</Name>
               <Description>This import definition was created through the API.</Description>
               <AllowErrors>true</AllowErrors>
               <SubscriberImportType>Email</SubscriberImportType>
               <UpdateType>AddAndUpdate</UpdateType>
               <MaxFileAge>1</MaxFileAge>
               <MaxFileAgeScheduleOffset>0</MaxFileAgeScheduleOffset>
               <MaxImportFrequency>0</MaxImportFrequency>
               <DestinationObject xsi:type="DataExtension">      
                  <ObjectID>44bafb73-2d9e-eb11-ba2b-f40343d05630</ObjectID>            
                  <CustomerKey>hrs_epc_contact</CustomerKey>
               </DestinationObject>
               <FieldMappingType>InferFromColumnHeadings</FieldMappingType>
               <FileSpec>hrs_epc_contact_import.csv</FileSpec>
               <FileType>CSV</FileType>
               <Notification>
                  <ResponseType>email</ResponseType>
                  <ResponseAddress>{{my_email}}</ResponseAddress>
               </Notification>
               <RetrieveFileTransferLocation>
                  <CustomerKey>ExactTarget Enhanced FTP</CustomerKey>
               </RetrieveFileTransferLocation>
            </Definition>
         </Definitions>
      </PerformRequestMsg>
   </soap:Body>
</soap:Envelope>

Just wondering if there's anything wrong with my soap call? am i missing anything else that should be on there? is there anything else that i need to setup on the salesforce marketing cloud side?

thanks in advanced!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.