Questions of the API (2)

Hi, we are experiencing some problems with our integration via the API. Sometimes when add us content to a collection and publishes, the collection will not post and it says (in Portuguese): "Falha na atualizacao" or "Update failed" in a free translation, I don't know how the message was before the internationalization.

We have noticed that when you see everything that is attached to this collection doesn't have a publication, there is this content with the name 'unknown' or 'unknown', with a warning.

When you delete this unknown content and try to publish the collection, it works perfectly. The question is, how to avoid it or in a worse method, how to perform this action through the API? We have tried to list the contents of the collection when this problem occurs, but we do not see the faulty content to remove, we see that the contents of the fault on the platform of DPS from Adobe.

Hello

When you add features to a collection, did you do the following:

  • Get the last entity HREF

    • This will prevent adding a deleted or deprecated entity
  • Before you add the entity to a collection, get first contentElement in the current collection and Add (or add) the new entity to the list
    • This will prevent the removal of all existing entities in the list, users are responsible for keeping the data persistence

This "unknown" entity might have been a deleted entity you are trying to reference. If you can reproduce this, please add my account ([email protected]) to your project with permissions "show content".

Tags: Experience Manager Mobile

Similar Questions

  • Question about the API

    Dear all,

    I have a question about getting this line of code to the JSF API.
    FacesContext facesCtx = FacesContext.getCurrentInstance();
    Locale defaultLocale = facesCtx.getApplication().getDefaultLocale();
    I don't know what locale will be this line give me?
    My hypothesis is that, this returns the locale of the server in which the application has been deployed?

    Currently, it returns the locale of my current computer. But I would like to know, what happens if I deploy
    This in another computer to another region?
    Can anyone confirm my doubts please? Thank you

    getDefaultLocale returns the locale by default in the form of installation in the config.



  • Questions by pulling on the Contact of the API fields in bulk

    I am putting together a code to export data in bulk using Node.js and I run questions where the call/contact/fields is not valid JSON return.  It seems to occur only when the pageSize gets too high.  It returns the extra spaces or new lines in the JSON that breaks the JSON.parse () function.

    The only way I found to work around the problem is to make the size of page 10 or less.  It seems that something bigger and I get a JSON parse error.  Here is the code I am using

    function getAllEloquaFields(callback) {
      var https = require('https');
      var config = require('./config'); // This just sets the https options and builds the auth header
    
    
      config.options.host = 'secure.eloqua.com';
      config.options.path = '/API/Bulk/1.0/contact/fields?page=100&pageSize=20';
      config.options.port = '443';
      config.options.method = 'GET';
    
      function final() { callback(results); }
    
      var page_size = 10;
      var results = [];
      function repeat(page,page_size) {
        config.options.path = url_obj.pathname + 'contact/fields?page='+page+'&pageSize='+page_size;
    
        var reqGet = https.request(config.options, function(res) {
    
          res.on('data', function(d) {
            var json;
            try {
              json = JSON.parse(d);
              if(json.elements.length > 0) {
                results = results.concat(json.elements);
                repeat(page+1,page_size);
              } else {
                final();
              }
            } catch(e) {
              console.log('There was an error: ' + e);
            }
          });
        });
        reqGet.end();
        reqGet.on('error', function(e) {
          console.error(e);
        });
      }
      repeat(1,page_size);
    };
    
    getAllEloquaFields(url_obj,function(elements) {
      console.log(elements);
    });
    
    

    And here is the article from json which seems to have the problem:

    {
          " createdAt": "/Date(-2208970800000)/", //<---- the extra space is messing things up
          "dataType": "string",
          "hasNotNullConstraint": false,
          "hasReadOnlyConstraint": false,
          "hasUniquenessConstraint": false,
          "internalName": "C_SFDCLeadID",
          "name": "SFDC LeadID",
          "statement": "{{Contact.Field(C_SFDCLeadID)}}",
          "updatedAt": "/Date(1270576350780)/",
          "updatedBy": "Some.One",
          "uri": "/contact/field/100024"
    },
    
    

    Anyone else see this issue?

    Thank you

    Russ

    In fact, I solved the problem.  It wasn't the API, I'm new on Node.js and was not manipulate the response correctly.  I was only pulling in one "piece" of data, instead of the complete answer.  The following code is correct.

    Thank you

    Russ

    getAllEloquaFields(url_obj, callback) {
      var https = require('https');
      var config = require('./config');
      config.options.host = 'secure.eloqua.com';
      config.options.port = '443';
      config.options.method = 'GET';
    
      function final() {
       callback(results);
      }
    
      var page_size = 100;
      var results = [];
      function repeat(page,page_size) {
        config.options.path = '/API/Bulk/1.0/contact/fields?page='+page+'&pageSize='+page_size;
    
        var reqGet = https.request(config.options, function(res) {
          var all_data = '';
    
          res.on('data', function(d) {
            var json;
            try {
              all_data += d.toString();
            } catch(e) {
              console.log('There was an error: ' + e);
            }
          });
    
          res.on('end', function() {
           //all the data has been sent
           var json = JSON.parse(all_data);
           if(json.elements.length == 0) {
             final();
           } else {
             results = results.concat(json.elements);
             repeat(page+1,page_size);
           }
          });
        });
        reqGet.end();
        reqGet.on('error', function(e) {
        console.error(e);
        });
      }
      repeat(1,page_size);
    };
    
  • Question on the REST API

    Good evening everyone,

    I have a question for OTHER APIs.  I need to find or install some kind of library in order to to use?

    Thanks in advance,
    Peter

    If you plan to call any rest based Web service in your application then you don't need to add/import any new library.

  • Customize the black guest "* is full screen" when using the API of full-screen mode full screen shutter?

    The prompt on the top of the screen is so big and not very attractive. Y at - it any way/API to change his style?

    Another problem is that if the mode full screen is enabled on a machine with two monitors, you can toggle focus on programs in another monitor. But whenever you focus on the browser full screen, black prompt is displayed again, which is annoying.

    Hi fordbzd,

    This could be a big question for https://www.stackoverflow.com or https://www.mdn.com

    These are third party, but they are nice places to start:

    It depends on the api used as well to track down the call for the notification of full screen or a video player:

  • Put into hibernation - insufficient system resources exist to complete the API (Tecra M4)

    I just thought I'd pass on my experience with this problem.

    I recently updated my Tecra M4 2 GB of RAM memory. Everything was fine except everyonce in a while he would not hibernate. However, it would suspend to RAM (standby). It seemed to happen after the antivirus software has managed to (which I had changed at the same time). I studied this way, but it also happened if I had a lot of programs running. So, a quick google search revealed why almost all laptops come with only 512 MB of RAM.

    There is a problem with Windows, freeing the memory in a way that allows it to be written to the hard disk, preventing the hibernation and to create the very vague error message "insufficient system resources exist to complete the API".

    The solution is to contact Microsoft by phone and ask them for the fix for the #909095 of the Knowledge Base article. The fix is free but the MS site makes it seem as if you have to pay £200 to contact Ms support

    This seems to have solved my problem!
    Hooray!

    This is the Knowledge Base article:
    http://support.Microsoft.com/?kbid=909095

    Here's the Blog I found the solution on:
    http://www.ntwizards.NET/2004/10/13/Hibernate
    Of course, the only problem with contacting MS support is that I received a LOT of phone calls asking me what I thought of their support... it was very good, so I don't really mind, but I find it funny that I continue to have called and asked the same questions!

    Hi Kelly

    Thanks for this useful information.
    It of very nice that you posted this tip. I think that it s very useful for users of the forum who might have the same problems on laptops.

    Concerning

  • Definition of privileges by using the API

    Hello

    I am a newbie of TestStand. Please bear with me if this question seems very basic.

    I am trying to build a c# wrapper around the user management module in TestStand. I created a new user interface that reads all the characteristics of a user as his groupname, privileges etc.

    How can I access the NI_UserCustomPrivileges using the API?
    I need to access privileges custom under the grouping custom privileges.

    I'd appreciate any help in this.

    Use the User.HasPrivilege method.  This method takes as a parameter a representative the particular privilege search string you are looking for.  For example, you can search the database name, i.e. 'RunSelectedTests' [User.HasPrivilege ("RunSelectedTests")] or you can search the full path, for example "Debug.RunSelectedTests".  In this way, you should be able to search privileges custom as "Custom.MyPrivilegeName."  Note that if you are only looking for the database name and there are several instances of the name of this database that exists, TestStand will only work on the first instance it finds.

  • How knowledge uninstalled the update via the API INTERFACE?

    Hello

    I want to know, how do I find information on uninstalled update api interface?
    There are an interface called 'IUpdateHistoryEntry' which has properties of 'Operation', but what I see is, even if I install an update and then uninstall this update, history interface returns only '1 day' with 'install' enum value.
    Appreciate the help.
    Thank you
    Aurélien

    Hi chat2amrat,

    Your question of Windows vista is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the IT audience Pro on MSDN. Please post your question to the MSDN Windows vista forum.

    http://social.msdn.Microsoft.com/forums/en/windowsgeneraldevelopmentissues/threads

  • attempts to secure access to the api.

    My dear, I tell them that I am developing my first application and having run my apps on a BlackBerry 8520 when I use background pictures.
    Working
    3.7.2 - Eclipse with the corresponding pluggin
    -BlackBerry JRE 7.1.0
    -OS on my device is 5.0.0.592

    Bookmark and share also, I installed keys to sign the application in these cases. In the Simulator, everything goes perfectly, but when I go to the triggers device error "seeks access to the api".
    The api I import into my application are for example:
    import net.rim.device.api.system.Bitmap;
    import net.rim.device.api.system.Display;

    The question is if there is a problem of incompatibility between the sdk jre, etc for which you should keep in mind when developing.
    Thank you in advance for any information you can give me on this subject.
    concerning

    Jorge

    You can have multiple JRE versions installed.
    You can install additional JRE using the eclipse update page.

    For your device, I suggest to use JRE 5.

  • Using a GUI API I got on the blackberry site - error: "tried of BlackBerry to access the api secure."

    Hello
    This is so the API, I downloaded and imported into my project->
    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800505/800608/...

    When I run it, I get "Error trying to access the api Module secure"

    It says its taken in charge for OS 4.2 and I think, so execute me on my blackberry 9900 OS 5 should work,
    I've been on these forums before and after the solutions, I ordered the signature of the key codes and signed the project as well.

    This is what appears in the signature box, just code until I run it:

    It compiles without error, but it still does not work.
    What I'm doing wrong exactly? Any help would be appreciated!
    Khalique - Amina

    Hey everybody,
    Anyone else who has this problem with these particular CBC of the advanced downloadable user interface files.
    Make sure the following is in place.

    Your JRE version is important.
    If you test on a device that is older than 7.1

    Change your JRE in a right click on the JRE and selecting the right JRE for your device. [some of you may need to download the right JRE].
    I installed the plugin for eclipse blackberry, so he automatically gave me all the available JRE. I just had to change.
    After that I changed it, I have not the reddest comments when I signed the code.
    AND
    It worked fine, no error message popping up for ' api access blocked attempts to.
    If anyone has questions and is the same problem. Please ask. I've spent hours on it, and I'd be happy to help you if I've been unclear!
    Take care!

  • error: "module tries to access the API blocked" even if it is signed

    Hello

    I have a request I have compile for various brand (image and some const are different) using the same code base.

    My problem is that the code event and the process of compiling/signature is the same, SOME fail version to run on the device for pointing out the error "module attempts to access secure APIs"

    I found the various page talking about the same problem:

    I checked that the jad got the hash and SignatureTool reported cod signed (it's not DB-00717, I check the csl).

    I think that my problem is DTS 55471

    "DTS 55471: cannot load the signed file.
    If the addition of a signature causes the data to a .cod file section be more than 65536 bytes (2 ^ 16) in size, the application file signatory does not report an error, and cannot load the .cod on a security file. Impact: In rare cases, a .cod file signed by the signing tool does not work on a safe device.
    Solution: Increase or decrease the size of the file. "

    So, my questions are the following:

    • How can I detect that cod got a too big 'data' section (ideally using a lot) without installing it on the device?
    • How can I actually change the size of compiled cod "section of data" otherwise than by trying and error? (I had 32 version of the application using the same code)

    Technical info:

    • Tested on BB 9500 Storm OS 4.7.0.141 device
    • Compiled with JDE 4.2.1 4.6 and 4.7.
    • Signed with JDE 4.2.1 SignatureTool

    I look forward to the advice / tips

    Christophe

    During this time, because it's a bug to know, I tried to connect with a newer JDE SignatureTool cod.

    With the JDE 6.0.0 (dl RIM date 23/05/2011).

    I could sign and execute my cod (same as before ounces) on the 9500!

    So, the solution is: use the JDE 6.0.0 signatureTool

    Sorry, I do not tried before posting. I hope that this post will help someone.

    Kind regards

  • A few questions for the first blackberry development

    Hello

    First of all, my apologies for this being placed in the Java section, it seemed, the nearest section of what it is, but please move if need be.

    We have an application in development for the iOS platform that uses some geolocation and Web services.  We believe that we should have a version for the blackberry also platform, so we're looking in this evolution.  However, not being not to developers or users of blackberry, the different options for creating an application are quite overwhelming.  My questions are the following:

    (a) what language (Java?) is the most compatible?  Ideally, we would like to write the backend once, don't have to change the interface for devices of the curve through to the new playbook.  Java is also based on all of these devices?  None of us have any idea of Adobe Air, this is probably out of the question.

    (b) what are the operating systems are supported by what?  The curve I picked up seems to have Blackberry OS5 on it.  All operating systems support Java everything too, and whose support wifi location and cell tower map (the curve does not have a GPS unit).

    (c) I understand that during the development in Java there is a blackberry UI api, that's fine.  However, what version of Java is supported?  Is - this SE6, or we are talking about mobile Java here?

    (d) distribute the Apps.  The Blackberry App World seems to be the best route.  Do most people use?  It seems that the Blackberry is not restricted like iOS devices in how applications can be distributed.  Is there any other App stores (e.g. Amazon for Android?).  I guess it would be silly not not to enumerate the BB App World.

    Thanks in advance, any help is much appreciated.

    S.

    It is a really difficult game of questions.

    (a) Yes is the short answer.

    The long answer involves noting that the PlayBook does not directly support Java, and development platforms only available to this end are currently Adobe Air and Web works.  I can't give you a good explanation, since I dabbled only in them, but in summary,

    (a) with Web works you are essentially creating a Web application using HTML and JavaScript, with some JavaScript interfaces to the native operating system

    (b) air seems to me be in another development environment where screens and treatment are defined in a "Scripting" language that runs on the device.

    Work Web development is possible on the current BlackBerry phones as well, although I have no idea how compatible the two are - in other words how much you would have to change to a PlayBook Web app works works on the Palm and vice versa.

    I suggest you ask a similar question in the forums for these two platforms and see what they say.

    Anyway, there is a train of thought that phones current based Java will stop at some point, and phones will become based QNX, as PB.  So right now, if you want to learn something, then Web works.  But the works Web will be able to do what you want?  I don't know, but I don't know that Java is.

    But whatever the customer, you should be able to write the backend once.  Everything should speak http towards it.

    (b) there is not a BONE by device. Most devices come out with only one level and can be upgraded, usually at the next big release.

    Take a look at this good:

    http://us.BlackBerry.com/developers/choosingtargetos.jsp

    OS 5.0 in theory supports the location of the cell tower.  I say in theory because I never had to work in the United Kingdom.  But I have not tried very hard.  In my view, WiFi is available in the OS 6.0.

    (c) blackBerry support J2ME, with a significant number of extensions.  Think of it as Java 1.4 without all the useful bits, but the then RIM tried to add their useful in bits.

    (d) cannot speak for others, but BB App World is all I use.  Tried another one and didn't get anywhere.  YMMV.

    I hope this helps.

  • Questions about the APEX 5 hash functions

    I have two questions:

    1. the wwv_flow_item.md5 function seems to have changed from 4.2 to 5.0.  It used to produce a hexadecimal string of 32 characters, but now it produces a 128 character string. My guess is that it uses more MD5 hash, but perhaps SHA-3?  Can anyone confirm this?

    2. the APEX_UTIL package now has the GET_HASH function.  This function produces a significantly different hash string because it contains arbitrary printable characters, those not just hex. It seems that the hash chains are still 86 characters.  I can't find any explanation for this function.  Should I also use SHA - 3?  The API said to use it like this:

    APEX_UTIL. GET_HASH (apex_t_varchar2 ("val1", "val2", "val3"))

    My guess is that the apex_t_varchar2 function is to convert the input to an inner type.  If anyone can say more about it?

    3. (bonus question) APEX_UTIL API seems to indicate that get_hash function is now the hash function of choice for tasks such as the lost update detection.  Am I reading this right?

    Ed Sciore

    Hi Ed!

    1. you can configure the algorithm of checksum with the instance parameter CHECKSUM_HASH_FUNCTION (for example, on the Security tab of the admin app instance). During installation, we define the most secure algorithm that is supported on the version of your database (SHA-1 on 11 g, SHA-2 on 12 c). Unfortunately, a few settings and existing features had the old MD5 algorithm in their name. Maybe it's a bit misleading that they are not necessarily more using md5, but the alternative of the duplication of functions and give them different names was not ideal, either.

    2. the result is base64 encoded instead of a hexadecimal value, because it is more compact. APEX_T_VARCHAR2 is a table of varchar2, not a function.

    3 APEX_UTIL. GET_HASH is just a utility function. You can certainly use it for construction of the checksum for the lost update detection.

    Kind regards

    Christian

  • FDMEE SCRIPT - replacement FDM VB functions with the methods in the API FDMEE

    Hi all


    I'm trying to convert FDM Scripts scripts that would support FDMEE (using Jython as language) and the FDMEE API. However, when I tried it making I came across a few functions in scripts FDM for which I couldn't find replacement functions in FDMEE API.


    How a supposed to change functions VB in FDM as farsTableAppend while it is supported in the FDMEE scripts?

    I generated documentation of the API of the FIA FDMEE - APIs.jar (this jar is supposed to have all the API of FDMEE in there I guess) but I don't see alternative for functions such as farsTableAppend, fExpTRx, PstrClientType, VB, but I can see other methods in the documentation for example, getEPMOracleHome() etc... (All these functions that you can view by using eclipse as editor-in-Chief of Dev FDMEE).


    Is there another method/function in the FDMEE API should I use to replace these functions to support FDMEE?


    I have another question about the AIF file - CUSTOM.jar, what is the purpose of this pot, do we get additional methods in this file


    Please advise...


    Thanks in advance

    Sam

    Hello

    1 API map is not 1 to 1. My suggestion is to define what you want to do and then design your solution in jython (using the api or not). So what you're trying to do exactly?

    For example, you need not PstrClientType more (there is no windows client)

    2 AIF - CUSTOM.jar allows you to enter your custom java classes. then you can use it from your jython scripts.

    Regarrds

  • Details on the Limitation of the API calls

    Hi all

    I'm newbie to Eloqua API and have a few questions about that.


    1. What is the maximum No. API calls limit for SOAP and REST (especially for large API) per day?

    2. when we say limit maximum API calls, is for the specific user or instance Eloqua together?

    for example, a single user can call the ends of the API for 2,000 times per day the maximum number (may be that other users can call the same on this day).

    OR special Eloqua instance is limited to 2000 calls is the maximum that API calls for a day (without distinction of different users).

    Please specify.

    Thank you

    Ashok.

    Hey Ashok,

    See this document for more information on limits for the bulk API API limits.

    Other APIs, the daily, the limits are based on Eloqua topping:

    Basic - 20 000

    Standard - 100 000

    Company - 500 000

    These limits are per instance.

    I hope this helps!

    T.J.

Maybe you are looking for

  • Satellite Pro M30: connection problem!

    Hello After I connect to the Internet via modem, the machine (specifically, the status bar) freezes. In addition, could not start the MSN (6.2). After about 10 minutes, the system works normally and very well. Help, please! Data sheet:Satellite Pro M

  • The simultaneous use of two Apple Magic Trackpad 2

    Hello I just wanted to know, if it is possible to use simultaneously both Apple Magic Trackpad 2? I use Macbook Pro with the retina, early 2015. For those of you who are wondering why on earth I would use two touchpads at the same time, well, I am a

  • New Ipod Touch no longer lights

    My daughter received a 32 gb iPod Touch for Christmas.  It was a gift from her grandparents, and I did not keep the original packaging.  It was as a champion of work until today.  It does at all.  I thought the battery was dead and tried to load.  No

  • Why can't I access my server sharepoint since the WAN?

    When you try to access my sharepoint since the WAN Portal get the login prompt for my domain credentials that I get them & the answer I get is "the current Web page is trying to open a site on your intranet. You want to allow this? Yes takes me to th

  • How to disable compatibility modes

    How can I turn off compatibility mode?