Creation of Contact the PHP export leads to failure: field 'name' must be a string value.

Hello

I export contacts from Eloqua to my application using the API as a whole. I am stuck at a point where I'm creating export based on my maps of fields as follows:

GET .../contact/export

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

and the server returns an error:

{"failures": [{'field': 'name', 'coercion': 'Must be a string value, at least 1 character and a maximum of 100 characters long.'}, {'field': 'fields', 'coercion': 'Required.'}]}

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

I suspect that Eloqua does not recognize parts of my application as a string payload. I use PHP to build a table that is then encoded using json_encode(). All the world has known this before and found a solution? Please share!

Wouter

OK, my next wag: is the Content-Type header?  It must be set to application/json.  Who met with some of the calls.

.  Topher

Tags: Marketers

Similar Questions

  • I can cause a ticking a box to add 1 to a calculated field?  I have a field that summarizes the numbers entered in several previous fields and must be able to add '1' If a checkbox is enabled as well.

    I can cause a ticking a box to add 1 to a calculated field?  I have a field that summarizes the numbers entered in several previous fields and must be able to add '1' If a checkbox is enabled as well.

    My first sample: If all the checked Checkbox event.value wins 1

    My next sample: If one of the boxes is enabled event.value wins 1

    Event.Value =

    this.getField ("Check Box16") .isBoxChecked (0) |

    this.getField ("Check Box17") .isBoxChecked (0) |

    this.getField ("Check Box18") .isBoxChecked (0) |

    this.getField ("Check Box19") .isBoxChecked (0) |

    this.getField ("Check Box20") .isBoxChecked (0)

  • Sensitive HTML5 seems to be the construction of a table of contents with a "bc-#" at the end of the favorite locations leading to failure. Can this be avoided?

    RoboHelp11 generates a table of contents where the places of the xxxx.htm #aaa of the form have a bc '-' and a final number added.  In the same place that a link in the text does not.

    No doubt there are some settings that causes this.  How can I disable this addition?

    What is the fault you are experiencing?

    The #bc-# are added when a subject is used repeatedly in the table of contents. HR uses this fact to know what breadcrumbs that they must. To avoid this, use excerpts rather than add the topic to the table of contents, several times.

    Kind regards

    Willam

  • Contact form (php) - how to prevent the new window...

    My contact form works fine, however, I currently have the target to "_blank" which is not what I want.

    Rather than opening the file .php opens in a new window, I just want to go to a new framework (labeled "pass" or "error") in my flash file (which currently works very well)

    So my question is how can I send the information from the form to my php file WITHOUT having to open a new window outside my flash file since I send the user to new framework in place.

    FYI: I already tried to delete '_blank', but it is always opens the php file in a new browser window.

    My code below:

    on (release) {}
    var my_lv:LoadVars = new LoadVars();

    my_lv. FullName = fullName_txt.text;
    my_lv.email = email_txt.text;
    my_lv.emailMessage = emailMessage_txt.text;

    If (fullName_txt.text! = "" & & email_txt.text!) = "" & & emailMessage_txt.text! = "") {}
    my_lv. Send ("contact.php", "_blank", "post");
    gotoAndStop ("success");
    }
    else {}
    gotoAndStop ("error");
    }
    }

    Any help is greatly appreciated.

    Yvonne

    It works! Thank you, Bill. I couldn't have thought of it without your help.

    Have a great weekend!
    Yvonne

    Here's the code that worked:

  • Why my php export feature does not work in IE and not firefox?

    Why my php export feature does not work in IE and not Firefox? I wrote a web application that contains a SigmaGrid. Grid controls reload, add update delete, print and export to CSV all work in IE8. The export function does not work in Firefox.

    Have you tried to test your application on IE7/8/9 and FF10/Chrome/Opera?

  • You try to start a service error "Windows failed to start the VMware authorization on local computer Service. For more information, see the system event log. If it is a non-Microsoft service, contact the service provider

    Ideas:

    • You have problems with programs
    • ETrying to launch a service error "Windows failed to start the VMware authorization on local computer Service. For more information, see the system event log. If it is a Microsoft service, contact the service provider and refer to the specific service-6000004 error code "... I contacted the people at VMware they say it's a problem with Windows Vista..." IAM confused pls help... .rror messages
    • Recent changes to your computer
    • What you have already tried to solve the problem

    Remember - this is a public forum so never post private information such as numbers of mail or telephone!

    Hi sanjeevkode,

    Thank you for visiting the website of Microsoft Windows Vista Community.  As the question you posted typically associated with third party software / application that has its own way of program codes and call the corresponding system resources when installing and running. Therefore, I also suggest you to join the VMware Forums for the best support.

    VMware communities: http://communities.vmware.com/home.jspa

    In the meantime I suggest you try these options / methods

    IMPORTANT NOTE: Microsoft provides this information as a convenience to you. Proposed changes could lead to serious problems. Microsoft cannot guarantee that problems would be solved as a result of the suggestions. Changes to settings are at your own risk.

    Option 1: If you go to computer management, and then to the list of Services and find the VMware authorization Service, it appears as stopped? If so, you need to start

    Option 2: Try logging on as an administrator Local host during installation first workstation, rather than you connect with a domain ID

    Option 3: The question can be caused also by your security program such an antivirus or a firewall of Windows /Defender that can have conflicting parameters as to not not to perform certain tasks. I suggest you temporary disable antivirus and firewall and check the result again. You must enable security programs new that had disabled you

    Option 4: The problem could be linked to a local or domain group policy. Make sure that the local account is defined as 'local user __vmware_user__' in the local Administrators group and the permissions of "Log on locally" and "Log on as a service.

    The two parameters are available in the "* Computer Configuration\Windows Settings\Security Settings\Local Policies\User Rights Assignment *" branch of domain group policy or local.

    Let me know if it worked.
    Hope it will be useful.

    Thank you and best regards,
    Vijay K - Microsoft Support
    Visit our Microsoft answers feedback Forum and let us know what you think.

    [If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message.] [Marking a post as answer, or relatively useful, you help others find the answer more quickly.]

  • Bug in blackBerry World - contact the developer

    When you view the BlackBerry World storefront, there is usually an option to contact the developer (email, twitter, etc.). I know, this options depend on developer - if he or she has provided this information.

    The options used to be visible at any time, no matter if the user has purchased this app or not.

    But some time ago something changed. You can see "Contact developer" option if you don't have the application. Right after the purchase, it disappears. Twitter is never visible.

    That sometimes leads to negative comments, because users with questions feel abandoned. I got some comments saying "I was looking for a contact with the developer, but there is none." And I have two email support and provided of twitter accounts.

    Please fix this for the satisfaction of users and developers

    This issue seems to occur after an application is purchased.  The problem was sent to our development team to fix.

  • Submitting a form Via the REST API using the PHP library request

    Can someone send please how to use the library to query PHP found at fredsakr/eloqua-php-request · GitHub to publish form to Eloqua data?

    So far, I have following:

    // include the Eloqua REST client 
    require_once('eloquaRequest.php');  
    
    
    // define the Contact class  
    class ContactForm  
    {
      public $FirstName;  
      public $LastName;  
      public $PhoneNumber;
      public $Institution;  
      public $ContactComment;  
      public $EmailAddress; 
    } 
    
    $client = new EloquaRequest('SITE', 'USERNAME', 'PASSWORD', 'https://secure.eloqua.com/API/REST/1.0');
    
    // instantiate a new instance of the ContactForm class 
    $contact = new ContactForm();  
    $contact->FirstName = 'Sample';  
    $contact->LastName = 'Import'.date("Y-m-d-H-i-s");  
    $contact->PhoneNumber = '111-111-1111';
    $contact->Institution = 'Company Name';
    $contact->ContactComment = 'This is a test of the API';
    $contact->EmailAddress = '[email protected]'; 
    
    // invoke a POST request to create the contact 
    $response = $client->post('/data/form/45', $contact);
    
    


    However, it returns the following:


    array(1) { [0]=> object(stdClass)#318 (4) { ["type"]=> string(21) "ObjectValidationError" ["property"]=> string(11) "fieldValues" ["requirement"]=> object(stdClass)#316 (1) { ["type"]=> string(23) "NoDuplicatesRequirement" } ["value"]=> string(6) "" } }


    Can someone give me a guide step by step on how to do it properly please?

    Hello world

    We have added a 'sample' in the repository of PHP library folder request on Github. The first example shows how to submit form using the API data:

    Please note that you can describe the form fields and other metadata using the following endpoint:

    Hope this helps and please let me know if you need more information.

    Thank you

    Fred

  • safe for html contact form php script

    What follows is a format of the basic form that I use and style with css to match the colors of Web site, etc. However, I'm looking for advice on a script php with captcha or other security that will make this form work and send emails to an e-mail address. My site is hosted on GoDaddy - Linux CPanel hosting economy and the php script they have on their server do not work with economy hosting on CPanel.

    PHP script or tutorial link would be greatly appreciated. Thank you.

    < name of the form = "form1" method = "post" action = "" >

    < ol >

    < li >

    < label for 'Name' = > name < / label >

    < input type = "text" name = "Name" id = "Name" >

    < /li >

    < li >

    < label for 'Email' = > Email < / label >

    < input type = "text" name = "Email" id = "Email" >

    < /li >

    < li >

    < label for 'Phone' = > phone < / label >

    < input type = "text" name = "Phone" id = 'Phone' >

    < /li >

    < li >

    < label for 'Message' = > Message < / label >

    < textarea = 'Message' id = 'Message' name > < / textarea >

    < /li >

    < li >

    < input class = "submit" type = "submit" name = "Submit" id = "Submit" value = "Submit" >

    < /li >

    < /ol >

    < / make >

    Try this tutorial into 3 parts.

    ALT-Web Design & Publishing: sensitive Contact form with 3.2 Bootstrap and PHP (part 1)

    Nancy O.

  • Background music does not make in the final export

    I spent hours trying to figure this problem without success.

    I am doing a project in creation that has the music videos 2, another track for sound effects and another track for background music.

    The background music plays and is audible during the preview and in the project, but it NEVER makes it to export final (H.264) no matter what I do.

    I try to switch the sound effects and background music, background music is therefore on track 3 with sound effects on track 4 and sound effects through the fine but is not background music.

    I tried with both versions of the background music the .wav and .mp3 and niether work, can somone please explain it to me and possibly propose a solution?

    I had a quick glance at this project. The problem is the variation of the extreme speed of the music, your clips is 1/20 of the original speed. I did the work by reducing the speed of the music of 50%, the music video for nesting and by reducing the speed of the nest to 10%. Hope this works for you.

  • Problem with sending data to the Php Mail Script.

    So, I work with this Flash pattern that my boss bought. It has a contact form, you are supposed to be able to fill, and he sent an e-mail to a specified address.

    However, it does not work. Not at all!

    There are 4 fields on the form

    name

    E-mail

    Phone

    Message

    The Code for the button send is

    -Code button-

    onClipEvent (load) {this.t.v = _root.contacts_txt7 ;}

    on (rollover) {this.gotoAndPlay ("s1") ;}

    (deployment) {this.gotoAndPlay ("s2") ;}

    {We (Release)}

    _parent.loadVariables ("inc/mail.php", "POST");

    }

    -Code button-

    The php script is

    Php script-

    <?

    $name = $_POST ['name'];

    $email = $_POST ['email'];

    $phone = $_POST ['phone'];

    $message = $_POST ['message'];

    $ToEmail = "email@here";

    $ToSubject = 'the message of your site;

    $EmailBody = "name: $name\n".

    E-mail: $email\n

    Phone: $phone\n

    "Message: $messages\n";

    $Message = $EmailBody;

    $headers. = "content-type: text; charset = iso-8859-1\r\n ";

    $headers. = « de : ". $nom. « / ». $email. » \r\n » ;

    mail ($ToEmail, $ToSubject, $Message, $headers);

    ? >

    Php script-

    It seems like it should work. The mail on the server function works, as I am able to set up a base in php contact page and it works, however, he wants that this flash contact form. It's as if the flash does not send anything to the php script. Is there something missing? I have looked for hours and have resorted to hitting my head on the wall, in an effort to jar loose ideas, so far, nothing.

    1. don't set the $ToEmail variable

    2. I do not see where $headers is initialized

    3. what directory (relative to the html embed your swf) contains mail.php and

    4. use tracking feature to ensure that these variables (name, etc.) are set to _parent when your php file is called.

  • Change of hostname: failed to contact the DSCC registry

    Hi all
    We installed ODSEE 11.1.1.5 x 86 Solaris 10/08/11 successfully
    IE were able to connect to DSCC as Manager of Directory Service.
    After changing the host name of the FORMER on NEW system we cannot use now
    The DSCC again because there is this message after having put in the directory service
    password:
    Failed to contact the DSCC registry. Make sure that the DSCC registry is online and
    listening on ldap: / / * OLD *: 3998
    How can organize us what the registry is listening to now... _NEW_:3998?
    Should we use ' dsccsetup remove/initialize?
    Thank you very much in advance for any advice!
    Rainer

    I had the same problem and disassemble/initialize using has solved the problem. I have not found another way to make little unfortunately.

    But what you can do if you have a lot of registered servers is to export the registry DSCC LDIF, before
    Disassembly. Then, make a copy of export LDIF, to keep only the entries corresponding to the same servers,
    reset the DSCC registry and import the LDIF updated the ' ldapmodify - AC» It will save you time.

  • "There is an error on this page. Acrobat may not display the page correctly. Please contact the person

    Hello, I use Adobe Acrobat X Version 10.1.4 and to the creation of PDFs of various sizes, I get the error message: "an error exists on this page. Acrobat may not display the page correctly. Please contact the person hwo created the PDF document to fix the problem. »

    I am the author of the pdf document but don't know what to do, I tried to save it with different options, but useless error message keeps popping up even though the document is displayed correctly.

    Thank you for your help.

    Thank you for sending the files. I have checked the issue and registered internal bugs for the same thing.

    Meanwhile, I found a work around for this problem. You can create a combined as follows:

    -Open one of the files.

    -Open thumbnail pane of the file via the tool on the left pane.

    -Go to options and insert the second files (or more) in the file opened by using the menu "insert page".

    -Save the file.

    Also, see the screenshot.

    This file does not show the error on the page.

  • Advantage of the import and export of datapump during the first export and import

    Hello

    Let me know the advantage of datapump export (expdm) and (impdm) on export (exp) import and import (imp) of origin.

    Hello

    Let me know the advantage of datapump export (expdm) and (impdm) on export (exp) import and import (imp) of origin.

    There are many advantages over the use of DATAPUMP.

    For example, to INCLUDE / EXCLUDE the settings you can filter exactly what object and / or type you intend to export or import. Which is not easy with the Original Export / Import (with the exception of Tables, indexes, constraints,...).

    You can import directly in to a NETWORK_LINK without using a Dump.

    You have many interesting features like COMPRESSION, FLASHBACK_SCN / _TIME *,...

    You can use the API in PL/SQL to perform your export / import instead of using the command line Interface.

    Increasingly, the DATAPUMP is much more optimized than the Original Export/Import and use path Direct or external Tables,... and what to say about REMAP_ % settings that allow you to rename files of data, schema, storage...

    There are a lot of things to tell about DATAPUMP. You will find an overview of this tool very good on the following links:

    http://www.Oracle-base.com/articles/10G/OracleDataPump10g.php

    http://www.Oracle-base.com/articles/11g/DataPumpEnhancements_11gR1.php

    Hope this helps.
    Best regards
    Jean Valentine

  • Cannot create files in the database by using the PHP Data Service

    Hello, I was stuck on this during a few days and get up and down for this on the net, no response, I found did work, so I come back to you...

    Here are the steps I took, I think that's pretty standard

    1. I have a macbook pro running osx 10.7.3

    2. I installed MAMP default all the (I've acually reinstalled this because someone suggested it could fix)

    3. via phpMyAdmin, I created a database called my_test

    4. in this database, I created a table, it is the export of this table: (I also tried with InnoDB, which is the default)

    CREATE TABLE 'client')

    int (10) 'id' unsigned NOT NULL AUTO_INCREMENT,

    'name' varchar (50) NOT NULL,

    'email' varchar (150) NOT NULL,

    PRIMARY KEY ('id'),

    UNIQUE KEY 'id' ('id')

    ) ENGINE = MyISAM DEFAULT CHARSET = latin1 AUTO_INCREMENT = 1;

    5. I created a new project of Flx (running Flash Builder Premium 4.5.1)

    Project name: PHPTest

    Type of application: Desktop (although I did the same thing with the Web and got the same results)

    > > Next

    Type of application server: PHP

    Web root: / Applications/MAMP/htdocs /.

    Root of the URL: http://localhost: 8888 /

    Click on "Save Configuration" and who worked

    Output folder: / Applications/MAMP/htdocs/PHPService (default value of Flash Builder)

    > > Finish

    6. in the Data/Services on the background tab, I click on "connect to data or services...". »

    Select "PHP".

    > > Next

    Select «Click here to generate a sample»

    Select the option "Generate database"

    User name: root

    Password: root (default for MAMP)

    Host name: localhost

    Server port: 8889 (default for MAMP MySQL port, the default HTTP port is 8888, which, in both cases, seems to work, but all the videos I've seen that use MAMP on youtube uses 8889)

    Database: my_test

    Click 'Test connection' (work)

    Table: customer

    Primary key: id of (this field is dimmed and Flash selects Builder 'id', which it appears in the SQL table)

    > > Click OK

    7. then if I do not have the Zend Framework folder in my/Applications/MAMP/htdocs/folder it tells me its going to do this and I mean. Then Flash Builder said some things about how it really is for testing, not production server ready and I mean.

    8. then it brings back me to the form of step 6 when I have the chance to select «Click here to generate a sample»

    These fields are now filled with these data automatically:

    PHP class: /Applications/MAMP/htdocs/PHPTest/services/CustomerService.php

    Name of the service: customer service

    Package: services.customerservice

    Type of data package: valueObjects

    > > Click on Next (shows all functions, which will now be availible)

    > > Click done (end shapes and she opens Dreamweaver in the php file it created CustomerService.php that I didn't need to change so that I have that closes down)

    9. back in Flash Builder I switch to design mode and drag a datagrid control onto the large white area in the Middle, no matter who is called.

    10 slide below in the Data/Services on the bottom tab I click the "GetAllCustomer" function on the top of the data grid.

    I say yes to bounce, then click ok and the display of the data grid is updated with the columns of the 'customer' table in mySQL.

    (Now I would like to say that when I hit save and compile it, if I actually had documents in this table I have insert via phpMyAdmin, this is displayed in the datagrid control) So for all the CRUD, I am able to get the R which is read)

    11. now go back to the designer view in Flash Builder, I'll create a form to create the table records... (I guess this isn't really a step)

    12. in the data on background tab/Service I select the function 'createCustomer' and then there is an icon called "Form generating" that looks like a white sheet of paper with a sprocket on the bottom of things.

    13. This opens a new form and because I don't have a crazy bunch of fields in my table I click just finished (if you click then you can specify which fields you want to exclude from the form, but this time I don't have to)

    14. This creates actually 2 forms if you look at the code, the second shows just the return type of when you click on the button 'CreateCustomer' on the first form. Because they overlap in design mode I drag the form so you can see the entry form, the return form and the datagrid

    15 then I save and compile...

    (Also if your reading this fact does not delete the field in form of code, I get the same result, so be it, but if you do not delete the form field in the code/design you must also update the function button do not deal with the id before he is deported to the php page, since in this case the MySQL table's auto_increment sorry id value that does not have a lot of) sense, but this small area does not matter much anyway)

    16. now fill some data you want for name and email, try different numbers in the field id as 0, nothing, 1, 1000, then click on 'CreateCustomer '.

    (For me that nothing happens, no return is put on return, no error appears and the datagrid control is not updated with the new record, passing also to phpMyAdmin and checking her browse the table does no changes, I know that the button calls the function because if I add a state change it in this function of changes) , it seems that the line:

    createCustomerResult.token = customerService.createCustomer (customer2); does nothing)

    So no idea what is wrong here, I am convenced that's something stupid easy simple, I can't see it.

    So, I thought about it after 24 hours to post my question and probing every thing I could think about. I've been stuck with this problem for over a week, so I'll give myself credit for this one...

    userService.commit ();

    need to be added at the end of the function of button to force flex to do what seems every tutorial that I've ever read on how to do online is no need or mention, don't know why it worked without them but at this point I don't really like.

Maybe you are looking for