Attempt to create organization in OIM 11 g R2 using API

Hi all

I am trying to create organization in OIM 11 g R2 using the API. I managed to create an organization with the name of organization and Type Customer organization attributes but when I try to add the name of the Parent organization he throws me the following error message

[Caused by: oracle.iam.platform.entitymgr.UnknownAttributeException: Organization: name of Parent Organization]


any help in this regard will be useful...

Thank you

Try this:

Organization or = new Organization();
String hm.get = orgname (1) m:System.NET.SocketAddress.ToString ();
String parentorgname = hm.get (2) m:System.NET.SocketAddress.ToString ();

/System.out.println ("name of organization:" + orgname);
System.out.println ("Parent agency name:" + parentorgname);

RC = orgService.getDetails (parentorgname, null, true);

DELETE ABOVE LINE AND ADD BELOW LINE

RC = new Organization();
or.setAttribute ("name of organization", orgname);
System.out.println ("OrgName Set");
or.setAttribute ("client organization Type", "Society");
System.out.println ("Set OrgType");
or.setAttribute ("parent_key", "27");

Tags: Fusion Middleware

Similar Questions

  • I want to create sub-task "Human task" programmatically by using APIs, any help?

    I want to create sub-task "Human task" programmatically by using APIs, any help?

    Solved

    ' public void createSubTask (String title, String username) survey StaleObjectException, {WorkflowException}

    oracle.bpel.services.workflow.task.model.ObjectFactory objFac = new oracle.bpel.services.workflow.task.model.ObjectFactory ();

    oracle.bpel.services.workflow.metadata.routingslip.model.ObjectFactory rObjFac = new oracle.bpel.services.workflow.metadata.routingslip.model.ObjectFactory ();

    DecomposeTaskModel.IParticipantGenerator generator = null;

    DecomposeTaskModel decomposeTaskModel = new DecomposeTaskModel();

    DecomposeTaskModel.SimpleGenerator simpleGenerator = decomposeTaskModel.new SimpleGenerator();

    generator = simpleGenerator;

    Assignee list = new ArrayList();

    assignee. Add (new TaskAssignee (username, "user"));

    Participants participants = generator.generate (null, null, assignee,);

    DTI DecomposeTaskInfo = objFac.createDecomposeTaskInfo ();

    dti.setTitle (title);

    RoutingSlip rs = rObjFac.createRoutingSlip ();

    rs.setParticipants (participants);

    This.Task is WorklistServiceLocator.getTaskService () .decomposeTask (this.task.getSystemAttributes (.getTaskId ()), rs, wfCtx, dti);.

    }

  • An exception occurred while creating a user in the IOM by using APIs

    Get the UserManager service
    UserManager usrService = oimClient.getService (UserManager.class);
    for (; i < = n; i ++)
    {

    userAttribute.put("act_key","1");
    userAttribute.put ("User ID", username + i);
    userAttribute.put ("FirstName", firstname + i);
    userAttribute.put ("Name", lastname + i);
    userAttribute.put ("Password", password);
    userAttribute.put ("Role", "Full Time");
    userAttribute.put (Type "Xellerate", "End user");
    User user = new User (null, userAttribute);
    Result = usrService.create (user) UserManagerResult;
    }

    trying to create the user returns this:

    Exception in thread "main" java.lang.ClassCastException: java.lang.String
    at oracle.iam.identity.usermgmt.impl.UserManagerImpl.create(UserManagerImpl.java:403)
    at oracle.iam.identity.usermgmt.api.UserManagerEJB.createx (unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.bea.core.repackaged.springframework.jee.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:37)
    at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
    at com.bea.core.repackaged.springframework.jee.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:50)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
    to $Proxy324.createx (Unknown Source)
    at oracle.iam.identity.usermgmt.api.UserManager_nimav7_UserManagerRemoteImpl.createx(UserManager_nimav7_UserManagerRemoteImpl.java:1005)
    at oracle.iam.identity.usermgmt.api.UserManager_nimav7_UserManagerRemoteImpl_WLSkel.invoke (unknown Source)
    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:590)
    at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:230)
    to weblogic.rmi.internal.BasicServerRef$ 1.run(BasicServerRef.java:478)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
    at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:473)
    at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:119)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Process has finished with exit code 1.

    Your ACT_KEY must be a value of type long.

    -Kevin

  • Any attempt to create results by "Access denied" error zip file

    Windows 7 Professional 64 bit.  I am logged in as administrator.  UAC is not active on this machine.

    Any attempt to create a zip file results in a dialog box stating "unable to complete the operation.  Access is denied. "
    If I select a file or group of files/folders, do a right click and say 'Send to Zip', I get this error.  Interestingly, while the error dialog box is still open, the zip file will be displayed in the current folder.  Clicking OK in the box dialog error cancels the dialog box and deletes the zip file.
    This seems to be some sort of permissions thing.  Can I create a zipfile by clicking right in the Explorer window by clicking on "new", then "compressed (zipped) folder", and it will create the file very well.  I can even give it a name.  Any attempt to copy anything in this new zip file generates an error "file not found or no read permission.  Try to delete the zip file says 'you need permission from administrators to make changes to this file.
    So now, I open the properties for the zip file and go to the Security tab.  It was there that I discovered that this file has no owner are entrusted to him.  I can then change owners, add my name as the owner of the file, assign full control to myself, apply the changes, and now the zip file can be read/written/removed normally.
    So whenever I need to create a zip file, I have to go through the steps of creating-> change the properties of the-> Assign owner-> Apply-> add files to the Zip file.  It's a royal pain in the keester.
    My question is: what changes to do to confide as the owner by default when a zip file is created?  This seems to happen with only zip files, any other type of file gives me this problem.  What happened since I got this computer brand new with Windows 7 64 - bit on it.  I can't say that it is a "Virgin" installation, he was photographed by a group of COMPUTER companies (I work for a fairly large company).  This group is a clue what happens and apparently others in our society do not report this problem.

    Solved! The problem is with the permissions on the 'TEMP' directory which is used during the process of zip. See this announcement and scroll down to "more useful answer.

  • During ANY installation of a program (e.g. Skype), I get the "year error occurred while attempting to create the directory C:\Program\Microsoft\Windows\Start Menu.

    original title: facilities program

    During ANY installation of a program (e.g. Skype), I get the "year error occurred while attempting to create the directory C:\Program\Microsoft\Windows\Start Menu. What happened with cd installs, but also downloads on the internet.  I already "took possession" of the computer, which is still delayed freaking, but am still unable to fight through all the questions of security, I guess that.  Any help would be greatly appreciated as I'm about to DOWNGRADE to something more user-friendly.  Thank you

    BTW, this is WINDOWS 7 Home Premium

    I had this problem for a long time on Windows 7. Finally, by pure chance I came across this solution that solved the problem. -Take the shortcut of the property

    http://www.SevenForums.com/tutorials/1911-take-ownership-shortcut.html

    You will need to run the "fusion" in the context menu of a reg file, published as part of the solution to change some registry settings. On any folder, you'll get a context menu 'Take Ownership' which restores the property correctly. This solves a lot of problems installing.

    Many people have trouble with this and therefore decided to post here.

    Gem of a solution. Thanks to GRIM and Brink on Windows 7 Forum!

    -Jayawanth

  • How to get the change history doone on an organization in OIM 11 G

    Hello Experts,

    I have a requirement that I need to see the history of all changes made to the attributes of an organization.

    Editing an organization such as the change of name of the Organization, status etc. details.

    Can you help me please?

    Refer to this.

    Re: How to find the history of changes to attributes of the Organization in OIM 11 G?

  • Tables created in a stored procedure cannot be used with dynamic SQL? The impact?

    There is a thread on the forum which explains how to create tables within a stored procedure (How to create a table in a stored procedure , however, it does create a table as such, but not how to use it (insert, select, update, etc.) the table in the stored procedure.) Looking around and in the light of the tests, it seems that you need to use dynamic SQL statements to execute ddl in a stored procedure in Oracle DB. In addition, it also seems that you cannot use dynamic SQL statements for reuse (insert, select, update, etc.) the table that was created in the stored procedure? Is this really the case?

    If this is the case, I am afraid that if tables cannot be 'created and used"in a stored procedure using the dynamic SQL, as is the case with most of the servers of DB dynamic SQL is not a part of the implementation plan and, therefore, is quite expensive (slow). This is the case with Oracle, and if yes what is the performance impact? (Apparently, with Informix, yield loss is about 3 - 4 times, MS SQL - 4 - 5 times and so on).

    In summary, tables created within a stored procedure cannot be 'used' with dynamic SQL, and if so, what is the impact of performance as such?

    Thank you and best regards,
    Amedeo.

    Published by: AGF on March 17, 2009 10:51

    AGF says:
    Hi, Frank.

    Thank you for your response. I understand that the dynamic SQL is required in this context.

    Unfortunately, I am yet to discover "that seeks to" using temporary tables inside stored procedures. I'm helping a migration from MySQL to Oracle DB, and this was one of the dilemmas encountered. I'll post what is the attempt, when more.

    In Oracle, we use [global temporary Tables | http://www.psoug.org/reference/OLD/gtt.html?PHPSESSID=67b3adaeaf970906c5e037b23ed380c2] aka TWG these tables need only be created once everything like a normal table, but they act differently when they are used. The data inserted in TWG will be visible at the session that inserted data, allowing you to use the table for their own temporary needs while not collide with them of all sessions. The data of the TWG will be automatically deleted (if not deleted programmatically) when a) a commit is issued or b) the session ends according to the parameter that is used during the creation of the TWG. There is no real need in Oracle to create tables dynamically in code.

    I noticed that many people say that the "Creation of the tables within a stored procedure" is not a good idea, but nobody seems necessarily explain why? Think you could elaborate a little bit? Would be appreciated.

    The main reason is that when you come to compile PL/SQL code on the database, all explicit references to tables in the code must correspond to an existing table, otherwise a djab error will occur. This is necessary so that Oracle can validate the columns that are referenced, the data types of those columns etc.. These compilation controls are an important element to ensure that the compiled code is as error free as possible (there is no accounting for the logic of programmers though ;)).

    If you start to create tables dynamically in your PL/SQL code, so any time you want to reference this table you must ensure that you write your SQL queries dynamically too. Once you start doing this, then Oracle will not be able to validate your SQL syntax, check the types of data or SQL logic. This makes your code more difficult to write and harder to debug, because inevitably it contains errors. It also means that for example if you want to write a simple query to get that one out in a variable value (which would take a single line of SQL with static tables), you end up writing a dynamic slider all for her. Very heavy and very messy. You also get the situation in which, if you create tables dynamically in the code, you are also likely to drop tables dynamically in code. If it is a fixed table name, then in an environment multi-user, you get in a mess well when different user sessions are trying to determine if the table exists already or is the last one to use so they can drop etc. What headache! If you create tables with table names, then variable Dynamics not only make you a lot end up creating (and falling) of objects on the database, which can cause an overload on the update of the data dictionary, but how can ensure you that you clean the tables, if your code has an exception any. Indeed, you'll find yourself with redundant tables lying around on your database, may contain sensitive data that should be removed.

    With the TWG, you have none of these issues.

    Also, what is the impact on the performance of the dynamic SQL statements in Oracle? I read some contrasting opinions, some indicating that it is not a lot of difference between static SQL and SQL dynamic in more recent versions of Oracle DB (Re: why dynamic sql is slower than static sql is this true?)

    When the query runs on the database, there will be no difference in performance because it is just a request for enforcement in the SQL engine. Performance problems may occur if your dynamic query is not binding variable in the query correctly (because this would cause difficult analysis of the query rather than sweet), and also the extra time, to dynamically write the query running.

    Another risk of dynamic query is SQL injection which may result in a security risk on the database.

    Good programming will have little need for the tables of dynamically created dynamically or SQL.

  • Create a DLL to read an Image using OpenCV

    Hi all

    I am trying to create a DLL to perform image processing using OpenCV. In the first place, so I try to create a DLL that can read an image and display it. But I encountered a problem when I call this DLL in LabVIEW.

    The error in LabVIEW that says: "error 1097 appeared to call library function node in the .vi DLL Image playback (Play).

    Possible reasons:

    LabVIEW: An exception occurred in the external code that is called by a node call library feature. The exception may have damaged the memory of LabVIEW. Save all work to a new location and restart LabVIEW. »

    Here are the steps I followed:

    1. download OpenCV2.4.9 and extract the files. Make changes appropriate to the Environment Variables to include OpenCV.

    2 start a new 2010 Visual Studio from Microsoft Project to create a DLL.

    3. Add a property sheet in the property manager to include the OpenCV library.

    4 change the DLL of playback picture .cpp code (Play) as it is in the attachment.

    5 compile to create the DLL of playback picture .dll (Play) file.

    6 create a LabVIEW VI to call the DLL.

    Attached are the related files: 1 .cpp reading Image DLL (game) 2. Read Image .dll DLL (reading) 3. Read Image .vi DLL (game)

    If someone good to help me with this? I guess it might be the problem with the .cpp code DLL Image playback (Play).

    Thank you very much.

    1 joint code .cpp DLL Image playback (Play):

    include opencv necessary image processing libraries

    #include "stdafx.h".
    #include "opencv2/highgui/highgui.hpp".
    #include "opencv2/imgproc/imgproc.hpp".
    #include
    #include

    using namespace std;
    use of names cv;

    Function declaration
    extern "C" {}
    __declspec(dllexport) int main (int argc, char * argv);
    }

    Global variables
    Matt IMG;

    __declspec(dllexport) int main (int argc, char * argv)
    {
    Load the image
    IMG = imread (argv [1], 1);
    return 0;
    }

    Hello

    If it helps, here are some examples on Labview/OpenCV image processing:

    https://decibel.NI.com/content/blogs/kl3m3n

    Best regards

    K

  • How to create a shared library of Qt and use it on App without a head?

    Hi all

    I'm experimenting with some waterfalls headless basic application development, and I just hit another problem of blocking.

    I want to create a Qt library with some shared code between the head and user interface elements.

    That's what I did:

    1. created a new application without head the wizard project
    2. created a new library shared by using the wizard project. Adds a simple C++ (Qt not) class
    3. Set up the two parts of the Headless App to use the shared library ("Library in the workspace project" option from the "Add library...) (' Assistant).   Everything compiles and works very well so far.
    4. Now, I want to use the shared library Qt. I choose 'Library of the Standard BlackBerry platform' and ' platform > Qt Core "from the «add library...» "Wizard. Now, I had this error on the shared library project: C:\dev\bbndk\host_10_2_0_15\win32\x86\usr\bin\ntoarm-ld: could not find lQtCore.

    How to create a shared library of Qt and use it on App without a head?

    In fact, I would also use other NDK libraries on library shared as lbbdata and libbbdevice.

    I expect that workers would deal with all the problems for me. As an improvement, I suggest you add the selection screen platform library of the Wizard "Add library...". «the wizard «Shared Library Project»

    There is a model of library project

    https://github.com/BlackBerry/Cascades-community-samples/tree/master/Cascades-library-template

    Unfortunately, the library create Assistant isn't really useful #t

    There is also a great series on using headless headless library and user interface:

    http://devBlog.BlackBerry.com/2014/02/a-flexible-architecture-for-enterprise-mobile-applications-par...

  • create a panorama in Photoshop CC 2015, using 5 RAW files.

    I'm trying to create a panorama in Photoshop CC 2015, using 5 RAW files. The files are selected in Photomerge with Blend Images together and the automatic option is selected

    Then the program blends and aligns the selected layers, but is not a homogeneous composition. If I try with only 2 RAW files, it works very well! Nothing more than, and I get borders defined on images!

    Help, please.

    PS I tried to load the images as PSD etc files with the same result.

    Is your windows 7, a 32 or 64 bit system?

    I believe that the merger of Pano and merging hdr in acr is available only when you use the 64-bit version of photoshop cc to cc 2015.

    That's why your window of camera raw looks different than JJMacks screenshots.

  • I am very new to the software online, please bear with me.  My question is this: I want to create my own designs I want to use for the manufacture of silk scarves.  I have to provide these designs of production of silk professional so they

    I am very new to the software online, please bear with me.  My question is this: I want to create my own designs I want to use for the manufacture of silk scarves.  I'll have to provide professional silk production houses these designs so that they can use my design patterns to create these scarves in silk for retail customers.  What application Adobe should I consider, and I can get a first experimental?  Thanks a lot for your help.  Looking forward to your response.  Best regards, Sunaura

    Hello

    You can try to use Illustrator or Indesign.

    Desktop publishing software | Free download Adobe InDesign CC trial

    Hope that helps!

    Kind regards

    Sheena

  • the things that I create within the trial period can be used for commercial purposes, otherwise if I buy CC who will give me the right to use the things I create for commercial purposes

    the things that I create within the trial period can be used for commercial purposes, otherwise if I buy CC who will give me the right to use the things I create for commercial purposes

    While there is really no way to stop you using the trial for commercial purposes (and to be honest, it's probably the best way to know if it works for you, in any case) you need to keep in mind that, after the 30 day trial period you will not is no longer able to work the same day or any other project unless you register it.

  • How create the CSV file delimited by tabs using ORACLE utl_file?

    How create the CSV file delimited by tabs using ORACLE utl_file? Please provide the code sampl.

    This isn't a problem with Oracle, it is a problem with the way you open the data in Microsoft Excel.

    In Excel, you want (depending on your version may vary slightly)...

    Office 2010...

    1. go in the Ribbon "Data".

    2. click on 'text '.

    3. Locate and select your file, and then click "import."

    4 step 1 of the wizard - choose "Delimited", then click on "next >".

    5. step 2 of the wizard - choose "Tab" as the delimiter and click on "next >".

    6. step 3 of the wizard - define types of column as needed (if necessary) and click on "Finish".

    7. check where you want the data in the worksheet.

    Data is loading now in single cells as you expect.

    If you just double-click the CSV, Excel is apparently assuming that it will be separated by commas and does not recognize tabs as separators, unlike when you rename the file with a .xls extension where it examines the file, complains that it is not a content .xls and asks you to confirm that you want to continue loading and then intelligently recognizes the tabs and the format for you.

    As I said, not a problem with Oracle, just a problem with the MS Excel software.

  • I want to create a new look for our website using Muse and move the hosting of GoDaddy for Business Catalyst. How can I publish my new Muse on exsiting URL design and change hosting?

    you want to create a new look for our website using Muse and move the hosting of GoDaddy for Business Catalyst. How can I publish my new Muse on exsiting URL design and change hosting? @@

    Hi love,

    You can publish your Business Catalyst, simply open your file of muse and select files-> publish.

    Please refer to this tutorial:- publish your site with Adobe Web Hosting | Learn the Muse | Adobe TV

    In addition, once your site is published, you can add your domain to your site hosted on BusinessCatalyst.

    Please refer to this tutorial to add your domain name:- http://helpx.adobe.com/business-catalyst/using/change-site-domain.html

    Hope this helps

    Kind regards

    Rohit Nair

  • Creating a jar using api

    Hi all

    Using JDK 6, I need to use api jar to create a jar for a simple JavaFX application. I used to use api jar to create files jar for Java applications, but now I need to do the same for JavaFx applications. The problem is the referencing 'Jfxrt.jar' of JavaFX. I can't put it in the directory where the 'jfxrt.jar' is on the way to class because the directory name includes spaces, and the names of entries cannot have spaces, e.g. "c:\Program file...". ». What can I do?

    Thank you

    Hi gen,.

    I don't know what the average pot in the api. Do you mean this api? http://docs.Oracle.com/javase/1.4.2/docs/API/Java/util/jar/package-summary.html

    Or you want to jar file using the command line?

    If you use the command line, then either you can define Class-Path to the "Manifest.MF" or you can run the jar using Classpath

    With the help of the "manifest. MF.

    Manifest-Version: 1.0
    Class-Path: . file:///C:/Program%20Files%20(x86)/Java/jdk1.7.0_09/jre/lib/jfxrt.jar
    Main-Class: test.HelloWorld
    

    For more info goto manifest here: http://docs.oracle.com/javase/tutorial/deployment/jar/defman.html

    With the help of option - cp when running command line Jar

    Syntax: java -cp "current path;path of your jfxrt" -jar JarfileName.jar
    Example: java -cp ".;C:\Program Files (x86)\Java\jdk1.7.0_09\jre\lib\jfxrt.jar" Test.jar
    

    Using one of the above approach can run the jar file containing the class of javafx

    Thank you
    Narayan

Maybe you are looking for