Quantcast
Channel: Topliners : All Content - All Communities
Viewing all articles
Browse latest Browse all 3423

Creating Contact Export in PHP leads to Failure: field "name" must be a string value..

$
0
0

Hi,

 

I am exporting contacts from Eloqua to my application using the Bulk API. I am stuck at a point where I am creating the export based on my field mappings like so:

 

GET .../contact/export

{"name":"example","secondsToRetainData":"3600","fields":{"C_EmailAddress":"{{Contact.Field(C_EmailAddress)}}"}}

 

and the server returns an error:

 

{"failures":[{"field":"name","constraint":"Must be a string value, at least 1 character and at most 100 characters long."},{"field":"fields","constraint":"Is required."}]}

 

In order to make sure that my JSON string is syntactically correct, I have copied it from (the very useful) Wizard application at http secure.eloqua.com/api/docs/Dynamic/Bulk/1.0/Export.aspx and run it through the server, resulting in the same error.

 

I suspect that Eloqua is not recognizing parts of my request payload as a string. I use PHP to build an array which is then encoded by using json_encode(). Has anyone experienced this before and found a solution? Please share!

 

Wouter


Viewing all articles
Browse latest Browse all 3423

Trending Articles