6 Replies Latest reply on Mar 9, 2017 4:58 PM by Brigitte Li-Oracle

    Getting 400 error when sending contact using feeder service to eloqua

    Mohit Amgaonkar

      Hi

       

      I am getting 400 in response when sending the contacts to Eloqua through feeder service.

      Here is what I have done :

      1) I created an import / exported definition :

                  URL : https://secure.p01.eloqua.com/API/REST/2.0/assets/campaign/21

                  Header  : Authorization = Basic Q29tcGFueVxQ29tcGFueVxdvcm3dvcmQ=

                  Call Type : POST

           Body : {

        "name": "Contact Import",

        "fields": {

          "LanguagePref1":"{{Contact.Field(C_LanguagePref11)}}",

        "firstName": "{{Contact.Field(C_FirstName)}}",

        "lastName": "{{Contact.Field(C_LastName)}}",

        "emailAddress": "{{Contact.Field(C_EmailAddress)}}"

        },

        "identifierFieldName": "emailAddress",

        "isSyncTriggeredOnImport" : true,

        "syncActions" : {

        "destination" : {{FeederInstance("actualinstanceid")}},

        "action" : "setStatus",

        "status" : "complete"

        },

        "updateRule" : "useFieldRule"

                  }

       

      2) After that I was sending the contact:

          URL :  https://secure.eloqua.com/api/bulk/2.0/contacts/imports/6/data

          Header : Authorization = Basic Q29tcGFueVxQ29tcGFueVxdvcm3dvcmQ=

          Call Type : POST

          Body : {

        "LanguagePref1":"EN",

        "firstName": "Test1",

        "lastName": "Test2",

        "emailAddress": "testemailaddress@mailinator.com"

                  }

       

       

       

       

      3) Sometimes the payload is processed successfully, but sometimes I am getting 400 error with this response:

        {

        "failures":[{"field":"Bulk Sync","detail":"Import Sync creation aborted, there's no data to import."}]

        }

        but when I send the same payload again it gets processed successfully with any error.

       

      Am I doing something wrong.?