How to return a CSEntryChange with ObjectModificationType Delete in an ECMA2 MA

I'm trying to return a CSEntryChange with ObjectModificationType Delete in my implementation of IMAExtensible2CallImport.GetImportEntries:
var entry = CSEntryChange.Create();
entry.ObjectType = "SomeObjectType";
entry.DN = "SomeDN";
entry.ObjectModificationType = ObjectModificationType.Delete;
However, when that entry is returned, I get a "missing-anchor-component" error in the console. The anchor attribute, in this case, is called "Name".
However, if I try to add the attribute to the AttributeChanges collection with CreateAttributeAdd, I get an exception:
System.ArgumentException: AttributeModificationType Add is invalid when the ObjectModificationType is set to Delete.
Example:
entry.AttributeChanges.Add(AttributeChange.CreateAttributeAdd("Name", "SomeName"));
However, the "CreateAttributeDelete" operation does not let me specify a value for the attribute.
How am I supposed to pass the anchor attribute value in this case?
I could not find any example in the documentation.
Paolo Tedesco - http://cern.ch/idm

I just tried with CreateAttributeReplace, CreateAttributeUpdate amd CreateAttributeDelete, and I always get the same exception: AttributeModificationType XXX is invalid when the ObjectModificationType is set to Delete.
So the error message here is misleading - you just cannot touch the AttributeChanges collection with a deleted object.
At this point, what should I do to specify the anchor attribute for a deleted object?
Paolo Tedesco - http://cern.ch/idm

Similar Messages

  • How to return my contacts after they deleted suddenly

    Actually , i don't know how they have been deleted or removed
    So can anyone help me or to tell a way to return my contacts again

    If you have set up the iPhone to sync with a contact or address book app on your computer or with iCloud you can just sync them from there. If you didn't they are gone for good.

  • How to return one ROW with Multiple value seperated by Colon in a SQL Query

    Hi,
    I have a SQL query as mentioned.
    select deptno
      from deptI want to mofidfy this query, so that this should return me department list with colon delimeted in one ROW.
    10:20:30:40.......Thanks,
    Deepak

    In 10g:
    select rtrim(xmlagg(xmlparse(content deptno || ':')).getstringval(), ':') data
    from   dept;
    DATA                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            
    10:20:30:40with apologies for the abuse of XML...

  • How to return an attachment with a smartforms in solman service desk

    Does anybody know if it is possible to configure smartforms to send attachments.
    We are using the solution manager service desk on service pack 15, and need to be able to send an attachment from this system
    When we confirm a case we need to be able to return an attactment on a ticket with the confirmation mail.

    I tried as below
    FND_MESSAGE.SET_NAME('BNE','WEBADI_ERROR');
    FND_MESSAGE.SET_TOKEN('P_UPD_FILE',p_upload_file,false);
    FND_MESSAGE.RAISE_ERROR;
    RESULT --
    Output error message is displayed with more than 100 char.
    Infact the whole message is displayed BUT it is displayed in some encoded format which we dont need.
    Format of the output in the Messages column is as below --
    APPLICATION MESSAGE_NAME N TOKEN_NAME TOKEN_VALUE : ERROR MESSAGE
    eg:
    BNE WEBADI_ERROR N FILENAME PFILENAME : There are errors in Upload file PFILENAME. Please correct and Reupload. test1 test2 test3 test4 test5 test6 test7 test8 test9 LAST
    We need the TOKEN because we have to display list of the Error file name along with the error message.
    Any ideas ??

  • How to returns multiple data with function in varray?

    Hi!
    I have 3 rows in my table and i want the return in VARRAY, but
    in my function bottom it works for only one row of my table.
    I don't know how to have the return of values in 3 rows of my table,
    it's possible to have multiple dimension in varray? Or another way for
    having that? Because i read after in java code this result.
    Now my result are :
    RetVal(1)= 504053
    RetVal(2)= 135058
    RetVal(3)= 206734
    I want like :
    RetVal(1)= 504053 Melanie Brown California
    RetVal(2)= 135058 John Smith Boston
    RetVal(3)= 206734 Roy Smith New York
    CREATE TYPE GPDEV.EMPARRAY is VARRAY(100) OF NUMBER
    CREATE FUNCTION MyName RETURN EMPARRAY
    AS
    l_data EmpArray := EmpArray();
    CURSOR c_emp IS SELECT MyTable
    FROM MyRow
    WHERE clientnumber is not null;
    BEGIN
    FOR MyTable IN c_emp LOOP
    l_data.extend;
    l_data(l_data.count) := MyTable.MyRow
    END LOOP;
    RETURN l_data;
    END;
    Thanks in advance for your help!
    Melanie

    Here is one approach...
    CREATE TYPE testType AS OBJECT (test_letter VARCHAR2(2), test_number NUMBER);
    DECLARE
    CURSOR cAAA IS
    select 'a' test_letter, 1 test_number FROM DUAL UNION ALL
    select 'b' test_letter, 2 test_number FROM DUAL UNION ALL
    select 'c' test_letter, 3 test_number FROM DUAL;
    TYPE vArray_testType is VARRAY(100) OF testType;
    testArray vArray_testType:=vArray_testType();
    y number:=0;
    BEGIN
    dbms_output.put('Adding items to varray...');
    FOR rec in cAAA LOOP
    y:=y+1;
    testArray.extend;
    testArray(y):= testType(
    test_letter => rec.test_letter,
    test_number=> rec.test_number);
    END LOOP;
    dbms_output.put_line('Done. ');
    dbms_output.put_line('Print contents of varray...');
    LOOP EXIT WHEN y = 0;
    dbms_output.put_line(testArray(y).test_letter||' '||testArray(y).test_number);
    y := y-1;
    END LOOP;
    dbms_output.put_line('END');
    END;

  • Simple form: How to return to page with form after submit?

    Hi,
    I've spent so much time with cfc's and flash remoting that my basic html/cfml skills have dwindled.
    So...I have a form in a .cfm page. The ' form action' sends my variables to a mysubmission.cfm for processing e.g. dumps data in db. What I don't understand is, how do I get back to the original page (where I made the submission)? An added question: Once I get back, how do I clear the input field?
    Thanks so much for your time.

    Hi,
    Please use cflocation,
    Eg:- <cflocation url="index.cfm">

  • How to return all rows with duplicate values? Inner join not working!

    I have a 3 column table:
    location (pk), name, size
    I am attempting to select pairs of entries that have the same
    name and size but different values for location (it is the
    primary key.) My inner join does not seem to return what I need:
    select a.location, a.name, a.size, b.location, b.name, b.size
    from mytable a, mytable b where a.name = b.name and a.size =
    b.size and a.location <> b.location;

    One solution is like this:
    SELECT dname, loc, deptno
    FROM dept
    WHERE (dname, loc) IN
    (SELECT dname, loc
    FROM dept
    GROUP BY dname, loc
    HAVING COUNT (*) > 1
    ORDER BY dname, loc, deptno
    Regards
    Zlatko Sirotic

  • How to return multiple record with Oracle Native Web Service?

    Dear all,
    I would like to know that the oracle native web service can be able to return multiple records to client or not?
    I successfully developed the oracle native web service for returning single record but the next challenge is to develop web service in order to return multiple record (like Employees data base on each department)
    Thank and Regards,
    Zenoni

    I successfully developed the oracle native web service for returning single record but the next challenge is to develop web service in order to return multiple record (like Employees data base on each department)You could return a list (multiple values/records) in XML format (using XMLType or CLOB), or CSV, or JSON, or whatever.
    function get_employees (p_department_id in number) return clob
    as
    begin
      return 'your_xml_string_here';
    end get_employees;It would be up to the client (the caller of the web service) to extract the values from whatever format you decide upon, of course.
    - Morten
    http://ora-00001.blogspot.com

  • How to return a value with a try block?????????

    hi there
    if a method needs to return a value, but there maybe an exception caught in a try block, where should i place the return statement, outside the try bccok or inside
    code...
    public String readFrom()
    String temp;
    try
    temp = br.readLine();
    catch (IOException ex)
    System.out.println(ex);
    return temp;
    }

    It should be coded as you have it. There should (ideally)
    be only one exit point from a method. If an exception is
    thrown, the code in the catch block will be executed and
    processing will continue. You can use the catch block
    to set the value of the variable that is being returned to
    indicate that an error has occurred. In your example,
    you could set the String temp to null.
    Mark

  • We were wondering how you stop some apps from running with out deleting them something like a task manager and in my settings im missing the application button in it how do i get it back and stop some apps its making it run really slow

    how do you stop apps with out deleting them i have looked for something like a task manager and nothing and researched about it and it says to go into your settings and then click applications but i dont have one can someone please help[ me thank you

    Double click the Home button. The bottom row shows the recently used apps. Touch and hold the app until they all start to wiggle then tap the circled minus sign by apps you want to remove. Press the Home button to return to normal.
    However, that is recently used apps not apps doing something. Some apps will do things all the time/periodically like checking for Notification, new mail. Yu can turn those off in the apps themselves.
    Just what are you trying to accomplish?

  • When I forward an e-mail, I get a long string of gobblygook that goes with it and I cannot figure out how to eliminate it without having to delete it every time

    When I forward an e-mail, I get a long string of gobblygook that goes with it and I cannot figure out how to eliminate it without having to delete it every time I forward an e-mail. The following is only part of the string that I am talking about. How can I eliminate this from the e-mail?
    Here is part of an excerpt from one of the strings:
    From: - Mon Aug 19 18:12:47 2013
    X-Account-Key: account1
    X-UIDL: 065B31352CC6B3C0789DEA7954395B55
    X-Mozilla-Status: 0001
    X-Mozilla-Status2: 00000000
    X-Mozilla-Keys:
    Return-Path: <[email protected]>
    Received: from hrndva-mxlb.mail.rr.com ([10.128.255.126]) by hrndva-imta07.mail.rr.com with ESMTP id <20130819211326470.DBUO12525@hrndva-X-Roving-StreamId: 0

    Sorry, Firefox doesn't do email, it's strictly a web browser.
    If you are using Firefox to access your mail, you are using "web-mail". You need to seek support from your service provider or a forum for that service.
    If your problem is with Mozilla Thunderbird, see this forum for support.
    [https://support.mozillamessaging.com/en-US/home] <br />
    or this one <br />
    [http://forums.mozillazine.org/viewforum.php?f=39]

  • HT5137 I made a purchase with my debit card on The Simpson Tapped out game, And now my game won't open. It just kicks me out every time I click on it. How do I fix this problem with out deleting my app?

    I made a purchase with my debit card on The Simpson Tapped out game, And now my game won't open. It just kicks me out every time I click on it. How do I fix this problem with out deleting my app?

    Personally, I would never use a debit card online, for security reasons.  If your card gets hacked its your money that is stolen.  At least with a credit card it is the card providers money that is stolen.
    Anyway,  I would delete the app and re-install.  If you paid for the app in the first place you will be able to re-install free of charge.  Also, the app should allow the in-app purchase to happen again as it should recognise that you have already purchased it previously.
    Finally, it might be that the 3G doesnt have as much ram as more recent models of iphone and you may have applications running in the background that are preventing the app to function with the in-app purchase unless you shut down any apps eating all you memory that are running in the background.  Shut-down these apps (and the simpson tap out app) by exiting to your home screen and double-tapping the home button to show what apps are running in the background.  press and hold any of the open apps until it starts shaking.  close all the apps down.  exit then re-launch the app.
    good luck.

  • How can I return multiple values with PL/SQL Web Services

    Hi,
    I'm new to developping Web Services. I'm doing some tests with JDeveloper and OC4J on my local machine with a Web Services based on a PL/SQL function within a package. Right now that function only returns one value. So the xml response only has one output.
    I'd like to know how can I return multiple values with my PL/SQL Web Service. For example, if I want to return an employee's name and id? And that the xml contains two output : <employee>, <empid>?
    Reginald
    ps : I have searched the forum and I couldn't find an answer to this question, if that has been discussed AND answered before, can you please post the link? Thanks

    Alright, I actually found my answer. Since this was asked I think as a followup somewhere else I'll give my answer.
    It is very simple, all you have to do is create an Object Type and then Return that object type. After that, JDeveloper will take care of everything and you will have an xml response with multiple values. Here
    {color:#ff0000}
    create or replace TYPE person AS OBJECT
    ( id_interv number,
    first_name VARCHAR2(50),
    last_name VARCHAR2(50),
    date_birth date
    );{color}
    Then your function used in your Web Service should look something like this :
    {color:#ff0000}
    function info_emp (p_empno IN VARCHAR2) RETURN person AS
    l_emp person := person(-1,'','','');
    BEGIN
    SELECT first_name
    ,last_name
    ,emp_no
    INTO l_emp.first_name
    ,l_emp.last_name
    ,l_emp.emp_no
    FROM emp
    WHERE upper(emp_no) = upper (emp_no);
    {color}
    {color:#ff0000}
    RETURN l_emp;
    EXCEPTION WHEN NO_DATA_FOUND THEN
    l_emp := person (-1,'n/a','n/a','n/a');
    RETURN l_emp ;
    END info_emp;{color}
    {color:#ff0000}{color:#000000}After that, this is what the xml response looks like :{color}{color}
    &lt;first_name xsi:type="xsd:string"&gt;John&lt;/first_name&gt;
    &lt;last_name xsi:type="xsd:string"&gt;Doe&lt;/last_name&gt;
    &lt;emp_no xsi:type="xsd:string"&gt;0250193&lt;/emp_no&gt;

  • HT1212 My iPhone was stollen and 3 months later the police return it back to me. But now it is locked to other iCloud account. How can I register it with my account?

    My iPhone was stollen and 3 months later the police return it back to me.
    But now it is locked to other iCloud account.
    How can I register it with my account?
    The device is still registered in My Support Profile->My Products and untit 29.11.2014 I was able to see it in "Find My iPhone" as offline.

    Was the link I provided of no use.

  • Does anyone know how to delete the back up for the ipod? I am getting an error message that says "iTunes could not back up iPod because it is corrupt or not compatible with iPod; delete back up and try again"

    does anyone know how to delete the back up for the ipod? I am getting an error message that says "iTunes could not back up iPod because it is corrupt or not compatible with iPod; delete back up and try again"

    Go to iTunes>Preferences>Devices and highlight the backup you want to delete and click on Delete Backup

Maybe you are looking for