Error creating a Custom Object via REST

Hi- we're developing a third party app that will publish to Eloqua and may need to create and upsert to Custom Objects.  We whipped up a quick PoC using the sample code provided (thank you) but we're having trouble getting the create operation to be successful.  The code we're using is Java and works fine for: reading/writing contacts and reading Custom Objects.  Here's the wire info on the Create call that is failing:
Request payload (authentication works fine - we're using it for other successful calls):
POST: https://secure.eloqua.com/API/REST/1.0/assets/customObject/
{"id":9987,"name":"rest test","fields":[{"name":"sample text field","dataType":"2","type":"CustomObjectField","id":1},{"name":"sample numeric field","dataType":"1","type":"CustomObjectField","id":2},{"name":"sample date field","dataType":"5","type":"CustomObjectField","id":3}],"page":0,"pageSize":0}
Response:
<Fault xmlns="http://schemas.microsoft.com/ws/2005/05/envelope/none"><Code><Value>Receiver</Value><Subcode><Value xmlns:a="http://schemas.microsoft.com/net/2005/12/windowscommunicationfoundation/dispatcher">a:InternalServiceFault</Value></Subcode></Code><Reason><Text xml:lang="en-US">The server was unable to process the request due to an internal error.  For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the &lt;serviceDebug&gt; configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework 3.0 SDK documentation and inspect the server trace logs.</Text></Reason></Fault>
I'm assuming that we're just forgetting to set something in the header or payload of the call.  Can you provide some insight into what we're doing wrong here?
Thanks!

Fred,
Thanks for the info above.  I retried the call with various combinations of IDs ranging from:
- All different negative IDs
- All the same negative IDs (-1)
- Custom Object negative and fields positive (and vice versa)
None of them worked.  I've attached the full HTTP envelope this time... I find it curious that the response is 404 (vs. 5XX)... am I calling the correct method/URL?
Thanks,
Dan
======================================================
POST /API/REST/1.0/assets/customObject/ HTTP/1.1
Content-Type: application/json
Authorization: Basic [masked]==
User-Agent: Java/1.6.0_37
Host: secure.eloqua.com
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 303
{"id":-100,"name":"rest test","fields":[{"name":"sample text field","dataType":"2","type":"CustomObjectField","id":-1},{"name":"sample numeric field","dataType":"1","type":"CustomObjectField","id":-2},{"name":"sample date field","dataType":"5","type":"CustomObjectField","id":-3}],"page":0,"pageSize":0}
=============================================
HTTP/1.1 404 Not Found
Cache-Control: private
Content-Length: 748
Content-Type: text/html; charset=UTF-8
P3P: CP="IDC DSP COR DEVa TAIa OUR BUS PHY ONL UNI COM NAV CNT STA",
X-Powered-By: ASP.NET
Date: Fri, 23 Nov 2012 13:36:37 GMT
<Fault xmlns="http://schemas.microsoft.com/ws/2005/05/envelope/none"><Code><Value>Receiver</Value><Subcode><Value xmlns:a="http://schemas.microsoft.com/net/2005/12/windowscommunicationfoundation/dispatcher">a:InternalServiceFault</Value></Subcode></Code><Reason><Text xml:lang="en-US">The server was unable to process the request due to an internal error.  For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the &lt;serviceDebug&gt; configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework 3.0 SDK documentation and inspect the server trace logs.</Text></Reason></Fault>

Similar Messages

  • How can i create a custom object 0REQUID

    Hello all,
    I have a question. How can i create a custom object 0REQUID? Is it possible to create it without actvating BI content?
    Thanks in advance..

    Hi,
    If you want to create a new info object which is a copy of 0REQUID. then
    Go to > info object key figure / Chara catalogue> create new key figure / Chara --> enter 0REQUID in front of TEMPLATE and you will get all details of 0REQUID in your new key figure / chara.
    Hope this helps.
    Assgn pts if helpful.
    Regards
    Edited by: chintamani deshmukh on Apr 14, 2008 11:09 AM

  • AR: Error Creating new Customer

    Hello,
    I am having error the following error creating new customer in AR 12.1.1 "Invalid value for currency_code. Please enter currency_code value from fnd_currencies". The currencies are all enabled.
    Thanks,

    Please see these docs.
    Cannot Add Customers. Error: Invalid Value For Currency_code. [ID 554555.1]
    CUSTOMER INTERFACE STATUS ERROR CODES [ID 1073634.6]
    Resource Addresses and Subinventory Assignment Fails with APP-295320: Provide a positive integer [ID 986655.1]
    Thanks,
    Hussein

  • Create a custom object

    can I create a custom object? or do I have to modify an existing one?
    thanks

    Currently there is a limitation. You can use the existing 3 custom objects. You wont be able to create additional custom objects.
    Amit

  • Newly created Image not listed via REST API

    Hi,
    I have created a image in azure console .Its created successfully and i could see the created image under "Image" tab in console.Also, the image created with the name appending current date, it was not before.But when I am trying to list images by
    using the below REST API its listing images except the newly created images that have the  name appended with current date.
    https://management.core.windows.net/5f2fe4c3-23b3-45c0-a70c-9560b79dcf56/services/images
    header values:
    x-ms-version : 2012-03-01
    Content-Type : application/xml
    Host: management.core.windows.net
    This makes me fail to launch new VM via REST api.I got the response as follows
    <Error xmlns="http://schemas.microsoft.com/windowsazure" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><Code>BadRequest</Code><Message>The image vmyffdd-20140605-813455l does not exist.</Message></Error>
    Please look into this.

    hi,
    From the error, your request parameter was incorrect. I guess your image name may be wrong. How did you write your Image name and url? I suggest you don't forget the '.VHD'. Also,if you use the
    VMImageName element which is only available using version 2014-02-01 or higher
    And I suggest you could try this code sample about how to using REST api to create VM :Simple Windows Azure REST API Sample Tool
    Please try it.
    Regards,
    Will
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Unknown server error when accessing Search api via REST

    When trying to access the SharePoint search service via REST, I always get an internal server error with no information about the cause of the problem.
    My SharePoint app uses app-only permissions, and includes search permissions as follows:
      <AppPermissionRequests AllowAppOnlyPolicy="true">
        <AppPermissionRequest Scope="http://sharepoint/content/tenant" Right="Write" />
        <AppPermissionRequest Scope="http://sharepoint/social/tenant" Right="Read" />
        <AppPermissionRequest Scope="http://sharepoint/search" Right="QueryAsUserIgnoreAppPrincipal" />
      </AppPermissionRequests>
    I see the search permission listed when installing the app.
    I know I'm getting a valid bearer token, because all of my other requests work fine. Here is the request I'm making that returns the error:
    REQUEST:
    $ curl -H "Authorization:Bearer abcABC...f1-iYrm-efhQ" https://<domain-my>.sharepoint.com/_api/search/query
    where <domain-my> is the SharePoint site that I'm accessing. I've also tried this request with all combinations of headers, including Accept, Content-Type, odata, and even including the request digest. I've also tried adding query parameters, and using
    POST with the query in the message body. However, this is always the response I receive:
    RESPONSE:
    <?xml version="1.0" encoding="utf-8"?><m:error xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"><m:code>-1, Microsoft.Office.Server.Search.REST.SearchServiceException</m:code><m:message
    xml:lang="en-US">An unknown error occurred.</m:message></m:error>
    If I log in to SharePoint I can make a get request to /_api/search/query and it returns a non-error response. What is causing the problem with my REST request? Is there any way to get more information from the server? This is SharePoint online, so I don't have
    access to the server.
    Thanks!

    When using search you must have a user context, it cannot be used with an app only policy. This feature has been submitted to Office User Voice. You can vote for it here:
    http://officespdev.uservoice.com/forums/224641-general/suggestions/6069886-make-it-possible-to-use-sharepoint-search-with-app
    Blog | SharePoint Field Notes Dev Tools |
    SPFastDeploy | SPRemoteAPIExplorer

  • Error when querying custom object 5 using contact Id

    Hi,
    I have related custom object 5 to contacts in CRM On demand. I am trying to find out the custom object 5 records related to contact based on the contact Id. I'm using the query page function in the wsdl for custom object 5 (web services 2.0) and the SOAP UI tool.
    Here is the SOAP request (I replaced the contact id in the xml below ):
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="urn:crmondemand/ws/ecbs/customobject5/10/2004" xmlns:quer="urn:/crmondemand/xml/CustomObject5/Query">
    <soapenv:Header/>
    <soapenv:Body>
    <ns:CustomObject5QueryPage_Input>
    <quer:ListOfCustomObject5 pagesize="?" startrownum="?" recordcountneeded="?">
    <!--Optional:-->
    <quer:CustomObject5 searchspec="?">
    <!--Optional:-->
    <quer:ContactId sortorder="?" sortsequence="?"><+Id from CRM on demand+></quer:ContactId>
    </quer:CustomObject5>
    </quer:ListOfCustomObject5>
    </ns:CustomObject5QueryPage_Input>
    </soapenv:Body>
    </soapenv:Envelope>
    I get the following response:
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
    <SOAP-ENV:Body>
    <SOAP-ENV:Fault>
    <faultcode>SOAP-ENV:Server</faultcode>
    <faultstring>Field 'Contact Id' in the integration component 'CustomObject5' instance contains invalid query expression: <Contact id that I entered in request>(SBL-EAI-13002)</faultstring>
    <detail>
    <siebelf:siebdetail xmlns:siebelf="http://www.siebel.com/ws/fault">
    <siebelf:logfilename>siebel.log</siebelf:logfilename>
    <siebelf:errorstack>
    <siebelf:error>
    <siebelf:errorcode>(SBL-EAI-13002)</siebelf:errorcode>
    <siebelf:errorsymbol/>
    <siebelf:errormsg>Field 'Contact Id' in the integration component 'CustomObject5' instance contains invalid query expression: <Contact id that I entered in request>(SBL-EAI-13002)</siebelf:errormsg>
    </siebelf:error>
    <siebelf:error>
    <siebelf:errorcode>(SBL-EAI-13006)</siebelf:errorcode>
    <siebelf:errorsymbol/>
    <siebelf:errormsg>Invalid operator: <Contact id that I entered in request>(SBL-EAI-13006)</siebelf:errormsg>
    </siebelf:error>
    </siebelf:errorstack>
    </siebelf:siebdetail>
    </detail>
    </SOAP-ENV:Fault>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    Can anyone tell me what could be the problem? or what should be the format of the input parameter in the request? I checked in On demand and there should be 1 custom object 5 row returned in the response.

    Hi,
    Thanks a lot . I will try this method too. However, this is how I resolved the problem. I changed my soap request include a search based on contact id:
    <soapenv:Body>
    <cus:CustomObject5QueryPage_Input>
    <quer:ListOfCustomObject5>
    <!--Optional:-->
    <quer:CustomObject5 searchspec="[ContactId]='CRM On Demand Contact Id'">
    <!--You may enter the following 786 items in any order-->
    <quer:Id/>
    <quer:ContactId/>
    <quer:AccountId/>
    <quer:IndexedPick0 />
    </quer:CustomObject5>
    </quer:ListOfCustomObject5>
    </cus:CustomObject5QueryPage_Input>
    </soapenv:Body>
    What I din't realize was that the column names I specified in the quer: tag would be fetched from CRM and returned in the response.
    Regards,

  • Error while using customizing object DNL_PLANT to download Plants

    Hi All,
    I am using customizing object  DNL_PLANT to download plants from the R/3 system to the our CRM system.
    From the table T001W (in R/3) to the table CRMM_LOCMAP (in CRM).
    From this I am able to download the required Plants from the R/3 to CRM.
    But the issue i am facing is that there are few entries (BP) defined as ( VERB- Affilated to Companies ) are also downloaded to the same table.
    And these BP have been asssigned one more role other than VERB i.e. BBP003 now. These BP were intially present in the CRM system with role VERB only.Now they have two roles i.e. VERB and BBP003.
    Is there anyway we can revert these entries from the table (CRMM_LOCMAP).
    Or we remove the etra role (BBP003) added to the BP, by removing thses role by simply using BP transaction and removing the role.
    Please suggest.
    Cheers,
    Sharad

    Hi,
    is this a static class with an inner class you created: GlAccountClasses.GaclAcctType ? If not then this cannot be found. If you want to pass the reference to another View Object, use
    a) a method exposed on the other VO Impl class
    b) The ViewLink accessor
    If you are using Groovy on a VO level then it doesn't help if you have accessors defined on the EO level
    This may help too: http://blogs.oracle.com/raghuyadav/entry/groovy_samples
    Frank

  • Error while transporting ID objects via CTS

    Dear All,
    I am facing some issue in Transporting ID objects from Dev to Q.
    We have a Central SLD for Dev and Qual. Prod has a different SLD.
    I have used Transport targets in SLD to point the Dev to Qual and Qual to Prod.
    After this, I created Business Systems in Integration Directory using the Bus Systems from SLD.
    When I try to *export these Business Systems in Integration Directory from Dev to Q via CTS * then  I get the fol error:
    >>>cation Component   NDPL_File_Dummy_P: Obligatorytransport target for business system NDPL_File_Dum
    >>>my_P not found in System Landscape Directory
    >>>on: Import failed because of business system transfer of object Communication Component   NDPL_File
    >>>_Dummy_P: Obligatory transport target for businesssystem NDPL_File_Dummy_P not found in System Land
    >>>scape Directory
    >>>stprocessTransport(TransportPostprocessor.java:67)
    >>>rocessing.InternalImportPostprocessorDir.postprocess30And70Import(InternalImportPostprocessorDir.jav
    >>>a:93)
    >>>rocess(AInternalPostprocessorDir.java:146)
    >>>g.gen.DirPostprocessor.doPostprocessing(DirPostprocessor.java:95)
    >>>apt.XIDirPropagationProvider.transportFinished(XIDirPropagationProvider.java:96)
    >>>server.transport.impl.pvc.GenPvcTransport.genPvcImport(GenPvcTransport.java:75)
    >>>r.server.transport.impl.pvc.DirPvcTransport.pvcImport(DirPvcTransport.java:74)
    >>>rver.transport.impl.service.TransportServiceImpl.pvcImport(TransportServiceImpl.java:876)
    >>>p.aii.ib.server.transport.impl.service.TransportServiceImpl.importZippedStream(TransportServiceImpl.
    >>>java:991)
    >>>portServiceImpl.java:773)
    >>>D_WRITE_VERSIONSET(CmsHmiMethods.java:534)
    >>>s.process(CmsHmiMethods.java:131)
    >>>isServiceImpl.java:167)
    >>>at com.sap.aii.utilxi.hmis.sbeans.HmisBeanImpl.process(HmisBeanImpl.java:98)
    >>>edMethodAccessor490_10000.invoke(Unknown Source)
    Please help...
    regards,
    Piyush

    >
    Piyush Mathur SAP wrote:
    >  >>>cation Component   NDPL_File_Dummy_P: Obligatorytransport target for business system NDPL_File_Dum
    >  >>>my_P not found in System Landscape Directory
    h
    has the transport path been set? you should have the target BS in the QA SLD present

  • Error creating new Customer Equipment Cards

    Dear experts,
    I am getting the following error when creating a new Customer Equipment Card:
    This entry already exists in the following tables  'Customer Equipment Card' (OINS) (ODBC -2035)  [Message 131-183]
    I cannot find out what is causing this!
    SAP B1 version is 8.81 PL07;
    Any help please?
    Victor

    Dear Victor,
    It could be by bug. In general, the NextNumber in NNM1 for this object is already used. You need to find SAP or partner support to solve the issue.
    Thanks,
    Gordon

  • Error in importing SLD objects via file system

    Hi
    I am transporting XI Sld objects e.g. products, software components, technical, business systems from dev to cons. I have cms in place but i need to prepare SLD objects before transporting ID objects. My dev is on SP 15 and Cons on SP 10..While transporting SLD product using file system i got following error:
    The target namespace for the special import already contains data for one or more export lines. Continuing this import may corrupt the state of your data.
    I have tried importing SLD objects between two SLDs of SP10 also..but same error came
    Plz..help
    thnx in advance!!
    Abhijeet Jangam

    Hi,
    <i>My dev is on SP 15 and Cons on SP 10..While transporting SLD product using file system i got following error:
    </i>
    See SAP Note 832142 for known restrictions about transporting objects between
    different XI 3.0 support packages And See SAP Note 834507 for known restrictions about cross-release transports.
    Also see the CMS Guide at market place, how to guide,
    https://websmp201.sap-ag.de/~form/sapnet?_FRAME=CONTAINER&_OBJECT=011000358700003090422005E
    Also refer 780297 for continiuosly updated errors.
    May be all this will help you to analyse if not directly arrive at the solution.
    All the best,
    Anirban.

  • Error creating a 'script' object in ANT

    Hey there! We are using Ant to build our pl/sql files. In order to run them through the sql*plus we need to use javascript to get them in the proper form.
    Currently we are using JDev 10.1.2 for development. I upgraded the version of Ant to 1.6 using the libraries.xml method and now I am stuck and getting this error when I try to compile:
    Error(25): Could not create task or type of type: script.
    I have both Rhino and the BSF jars in my 'additional claspaths'.
    Any help would be greatly appreciated.
    thanks!

    When you updated the "libraries.xml" file with Ant 1.6, did you include the "ant-apache-bsf.jar"? This JAR defines the script task in Ant 1.6.
    -Matt Hawkins
    Oracle JDeveloper

  • Can not create or modify objects via GUI

    I have installed Oracle SQL Developer version 1.5.1. The option to create/modify tables via the GUI is not available when i right click i get the options to explore directory, notepad, refresh, apply filter, clear filter (grayed), capture table (grayed), capture into existing model (grayed), quick migrate (grayed) and help i have looked aroung the entire workbench and have not found the option to create/modify tables with advanced options via teh GUI. i can create and modify tables if i type in sql commands but do not have the GUI. Is that a separeate adapter you have to install.
    Thanks
    NGM

    Hi NGM
    Could that be related to the user privileges? Please control with another account that can make create/alter table ?
    What are the privileges of your user?
    It works fine for me on the release : Oracle IDE 1.5.1.54.40.
    Try to Check for Updates in the help menu.

  • Siebel -00284 Error while editing the Custom object Data

    I have created one custom object and when i tried to edit the data which i have entered , i am not able to edit the data on Custom object. Could you please suggest me on this. Please find the below error.
    You do not have permission to edit the record. Click cancel or Back link to continue.(SBL-DAT-00284)
    Edited by: Subbu on Jun 29, 2010 1:57 AM

    Hi Shyam,
    Try with this code.
    *-----Adding the Condition Types at item level
                  PERFORM bdc_dynpro      USING 'SAPMV45A'    '5003'.
                  PERFORM bdc_field       USING 'BDC_CURSOR'  'KOMV-KSCHL(01)'.
                  PERFORM bdc_field       USING 'BDC_OKCODE'  '=V69A_KONY'.
                  PERFORM bdc_dynpro      USING 'SAPMSSY0'    '0120'.
                  PERFORM bdc_field       USING 'BDC_CURSOR'  '05/04'.
                  PERFORM bdc_field       USING 'BDC_OKCODE'  '=PICK'.
    *----1. Unitprc ( ZPR0 )
                  PERFORM bdc_dynpro      USING 'SAPMV45A'    '5003'.
                  PERFORM bdc_field       USING 'BDC_CURSOR'  'KOMV-KSCHL(01)'.
                  PERFORM bdc_field       USING 'BDC_OKCODE'  '=V69A_KOAN'.
                  PERFORM bdc_dynpro      USING 'SAPMV45A'    '5003'.
                  PERFORM bdc_field       USING 'BDC_CURSOR'  'KOMV-KBETR(02)'.
                  WRITE x_item-unitprc TO v_unitprc CURRENCY komv-waers NO-SIGN.
                  PERFORM bdc_field       USING 'KOMV-KSCHL(02)'  'ZPR0'.
                  PERFORM bdc_field       USING 'KOMV-KBETR(02)'  v_unitprc.
                  PERFORM bdc_field       USING 'BDC_OKCODE'  '/00'.
    *-----End of Addition
                  PERFORM bdc_dynpro      USING 'SAPMV45A'    '5003'.
                  PERFORM bdc_field       USING 'BDC_OKCODE'  '/EBACK'.
    Regards,
    Aman
    Message was edited by:
            Amandeep Kumar

  • Is it Possible to create custom Object type in configuration Tab

    Hi ,
    We have object type for table in Development Tab in SOLAR02 , is it possible to create a custom object type to represent the table object type in Configuration Tab.
    Please let me know the steps , if it is possible.
    Best Regards,
    Saravana

    Hi
    You answer for you problem exists and its a common problem but you need to go for this development as mentioned below
    /people/andreas.diebold/blog/2007/02/13/extend-sap-solution-manager-to-manage-new-object-types
    We did long time back
    Hope ur problm and doubt is resolved now
    Regards
    Prakhar

Maybe you are looking for

  • FI-SL error SAPSQL_ARRAY_INSERT_DUPREC during direct posting to the SL.

    I am working on FI- Special Ledger and currently encountering an error: I am trying to post journals to the special purpose ledger using a local file where I am encountering the following error: Runtime Errors         SAPSQL_ARRAY_INSERT_DUPREC   Exc

  • How do i set up my macbook pro to display on my Vizio flat screen TV

    Just purchased a new MacBook Pro and i was curious about what Components i need to purchase to set it up, thanks!

  • The mismatch in the S_ALR_87012028 and AR02 report

    Hi I have the difference in the S_ALR_87012028 and AR02. The current book value of the S_ALR_87012028 is not matching with the AR02. The S_ALR_87012028 report is true. The problem is only with AR02. After the analysis I found that the Revaluation val

  • PS CS4 crashes when trying to open PNG files

    I am using a freshly installed CS4 on a freshly installed Mac OS 10.6.3. No extra filters, nothing. Now: whenever I export a PNG file from Illustrator via "Save for Web" and then try to open it in PS, the app crashes (endless beachball delight). The

  • Question before I buy

    I currently have a wireless network in my house and access if fine on the second floor with my macbook. My issue is with being able to use my PS2, i couldn't get my internet sharing to work with certain games so I'm left with running a cable from my