Problem in creating user request through ContentDB API

Hi
I am trying to create user request on the document. Workflow is configured on the document parent folder. I am trying to submit the document for workflow.
Here is the code i used to create user request
RequestManager reqM = session.getRequestManager();
long[] itemId = { item.getId() };
NamedValueSet[] docParameters = new NamedValueSet[]
new NamedValueSet(
new NamedValue[]
new NamedValue(Attributes.WORKFLOW_PARAMETER_NAME,"JUSTIFICATION"),
new NamedValue(Attributes.WORKFLOW_PARAMETER_DEFAULT_VALUE,
"Edited para 2"),
new NamedValueSet(
new NamedValue[]
new NamedValue(Attributes.WORKFLOW_PARAMETER_NAME,"IFS_ECM_VERBOSE_LOGGING"),
new NamedValue(Attributes.WORKFLOW_PARAMETER_DEFAULT_VALUE,
Boolean.FALSE),
NamedValue[] options2 = new NamedValue[] {
ClientUtils.newNamedValue(Attributes.WORKFLOW_CONFIGURATION_PARAMETERS,docParameters)};
reqM.createUserRequest(itemId, options2);
I got the following error:
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: ORACLE.FDK.UnexpectedError:ORACLE.FDK.ServerError
faultActor:
faultNode:
faultDetail:
     {http://xmlns.oracle.com/content/ws}fault:<detailedErrorCode xsi:type="xsd:string">ORACLE.FDK.ServerError</detailedErrorCode><errorCode xsi:type="xsd:string">ORACLE.FDK.UnexpectedError</errorCode><exceptionEntries xsi:nil="true" xsi:type="ns1:ArrayOfFdkExceptionEntry"/><info xsi:nil="true" xsi:type="ns1:ArrayOfNamedValue"/><serverStackTraceId xsi:type="xsd:string">112-1191017621836</serverStackTraceId>
     {http://xml.apache.org/axis/}hostname:contentdb.sjrwmd.com
ORACLE.FDK.UnexpectedError:ORACLE.FDK.ServerError
     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
     at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
     at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
     at java.lang.Class.newInstance0(Class.java:350)
     at java.lang.Class.newInstance(Class.java:303)
However, If i create user request without passing any parameters it is working fine. I get error only when creating request with parameters.
Please help.

Hi
I could able to get the request invoked. Earlier I tried with wrong parameters.
Thanks

Similar Messages

  • Problem in Creating Default Form Through DI API

    Hi All,
    I am using the below code to create UDO and make it as Default Form through DI API. But the Default Form property is not getting set, that is the Default Form is not being created. The UDO is getting created. Any help is appreciated.
    // Verify that UDO is defined
                if (!(oCreateUDO.UDOExist(oCompany, "WEB_USER")))
                    SAPbobsCOM.UserObjectsMD MyUDO = (SAPbobsCOM.UserObjectsMD)oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserObjectsMD);
                    //Set Services
                    MyUDO.CanCancel = SAPbobsCOM.BoYesNoEnum.tYES;
                    MyUDO.CanCreateDefaultForm = SAPbobsCOM.BoYesNoEnum.tYES;
                    MyUDO.CanDelete = SAPbobsCOM.BoYesNoEnum.tYES;
                    MyUDO.CanFind = SAPbobsCOM.BoYesNoEnum.tYES;
                    MyUDO.CanClose = SAPbobsCOM.BoYesNoEnum.tYES;
                    MyUDO.CanLog = SAPbobsCOM.BoYesNoEnum.tYES;
                    MyUDO.CanYearTransfer = SAPbobsCOM.BoYesNoEnum.tNO;
                    //MyUDO.ManageSeries = SAPbobsCOM.BoYesNoEnum.tYES;
                    MyUDO.Code = "WEB_USER";
                    MyUDO.Name = "Define Portal User";
                    MyUDO.ObjectType = SAPbobsCOM.BoUDOObjType.boud_MasterData;
                    MyUDO.TableName = "PORUSR";
                    MyUDO.FindColumns.ColumnAlias = "Code";
                    MyUDO.FindColumns.ColumnDescription = "Code";
                    MyUDO.FindColumns.Add();
                    MyUDO.FindColumns.ColumnAlias = "Name";
                    MyUDO.FindColumns.ColumnDescription = "Name";
                    MyUDO.FindColumns.Add();
                    MyUDO.FindColumns.ColumnAlias = "U_name";
                    MyUDO.FindColumns.ColumnDescription = "Name";
                    MyUDO.FindColumns.Add();
                    MyUDO.FindColumns.ColumnAlias = "U_Email";
                    MyUDO.FindColumns.ColumnDescription = "Email";
                    MyUDO.FindColumns.Add();
                    MyUDO.FindColumns.ColumnAlias = "U_Status";
                    MyUDO.FindColumns.ColumnDescription = "Status";
                    MyUDO.FindColumns.Add();
                    MyUDO.FindColumns.ColumnAlias = "U_TAG";
                    MyUDO.FindColumns.ColumnDescription = "TAG";
                    MyUDO.FindColumns.Add();
                    MyUDO.FindColumns.ColumnAlias = "U_bp";
                    MyUDO.FindColumns.ColumnDescription = "BP Code";
                    MyUDO.FindColumns.Add();
                    MyUDO.FindColumns.ColumnAlias = "U_password";
                    MyUDO.FindColumns.ColumnDescription = "Password";
                    MyUDO.FindColumns.Add();
                    if (MyUDO.Add() != 0)
                        MessageBox.Show("Failed to add UDO");
    Thanks and Regards,
    Noor Hussain

    Dear All,
    Thanks a lot. I had forgot to add the form columns to the UDO object while creating UDO.
    Regards,
    Noor Hussain
    Edited by: noor_023 on Mar 1, 2012 11:54 AM

  • Problem In Creating Sales Order Through DI API

    Hi
    I am Creating The Sales Order Through DI API.
    the Error Is Coming - " [OACT] , 'No matching records found (ODBC -2028)'"
    anyone  can help me solving it.

    Hi vivek,
    Have you tried adding the same document with the client ?
    OACT is the accounts table and this error message typically indicates that there is an account parameter missing somewhere in the system.
    Possible causes include:
    - you are using a tax group or warehouse which does not have all the required accounts set
    - There is a price rounding and the rounding price account has not been set in the account settings
    - etc.
    The first things I would check include the tax group settings and the G/L Account determination settings.
    Henry

  • Generate User Login in "Create User" Request

    Hi Guys,
    I have more a problem. To create user, I am using a Request (Create User Template), I managed add the attributes that would necessary normally, but I use a Event Handler (Post-Process) to generate user login. So I marked the User Login in Attributes Restrictions, fixing an user login default for example: autogenerate.
    Then I created a new request to create user, I filled out all the fields that I marked to appear. I approved this request, and the user is created with the User Login generate by my Event Handler normally. The issue is, when I create 2 create user requests, as I use a Default value in the User Login attribute, if the first request still isn't approved, the second request isn't created because the "autogenerate" user login already being used.
    Exists some otherwise to I resolve this issue?
    Thanks

    Hi Bikash,
    Use a prepopulate adapter an attribute with timestamp is nice idea, but I use the "Create User" template CreateUserDataSet.xml and not exists a form in Design Console to associate the prepopulate adapter.
    I had thought in eventhundler because I use a method that check on Active Directory if the user login generated by other method, already is being used. And I use this eventhandler in HR GTC recon too.
    About XL.LDAPReservationPluginImpl, I opened the oracle.iam.identity.usermgmt.impl.plugins.reservation.ReservationInOID but I not understood as use this option. If I needs add in this class my method of generate user login. If I needs implement an new class similar to this class, using my methods and associate the name of class in XL.LDAPReservationPluginImpl.
    Thanks a lot

  • Can Not Create Serviceable Item Through DI API

    Hi Experts,
    My Client is using SAP 8.81 PL0 ,I am creating Serviceable Item through DI API, using following code
    oItems = (SAPbobsCOM.Items)SBOAddOn.SBOCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oItems);
    oItems.ItemClass = SAPbobsCOM.ItemClassEnum.itcService
    When I am going to Add it throw the msg ,ServiceCat is blank
    In DI object I am not able to find the service category kindly help me out.
    Thanks
    Edited by: Anup Kharwar on Feb 21, 2012 5:40 AM

    Hi,
    The SDK helpfile has this to say about the itemClass property:
    SDK helpfile:
    Remarks
    The ItemClass property is applicable for cluster B (country-specific for Brazil only).
    For example in the Finnish localization we do not have a field in the Item Master Data window for ItemClass. We do have the field ItemType
    Does your localization have a field for itemClass anywhere in the B1 client ?
    Regards,
    Johan

  • Create user request from api OIM 11g r2

    Hi,
    I need to read a database and raise a request for creating uses. After  approval the user needs to be created in OIM 11g R2.
    I want to write a scheduled task which will read database columns and rasie a request to create users.
    I dont want to use UnauthenticatedSelfService api.
    Please suggest a way to achive that. any pointer / sample coede / suggestion  is helpful.

    Here are links to creating a request for a role and a resource.  https://java.net/projects/openptk/sources/svn/show/branches/Oracle/OIM11g/examples/java/OIMClient/src/oim/client/request?rev=1402
    I would suggest you start with these and modify the parameters to be for a user.  You will have to try some trial and error to get it working, unless someone already has it available.  And so far, no one who is posting does.  Give it a shot.  You can always create an SR with oracle and ask for assistance.
    -Kevin

  • How to Create Highlighted text through the API

    I am trying to create a script that goes through a document and cut/pastes specific elements to another document in FrameMaker 7.1.
    So far, I can open a document and if an element is already highlighted/selected, i can cut the whole element using F_ApiCut().
    I am having problems programatically trying to highlight the element that I want to copy.
    So far, I have tried using the exampe from the FDKRef:
            //grab the selected element and set it to the elementRange
            er = F_ApiGetElementRange(FV_SessionId, docId, FP_ElementSelection);
            parentId = F_ApiGetId(docId, er.beg.childId, FP_ParentElement);
            er.end.parentId = er.beg.parentId = F_ApiGetId(docId, parentId, FP_ParentElement);
            // if the selected element is a child of the highest level element, the client returns here
            if(!er.end.parentId) return;
            er.beg.childId = parentId;
            er.beg.offset = er.end.offset = 0;
            er.end.childId = F_ApiGetId(docId, parentId, FP_NextSiblingElement);
            F_ApiSetElementRange(0, docId, FP_ElementSelection, &er);
            F_ApiCut(docId, 0);
    but this only grabs an element that is already selected. Is there a way to select an element through the API?
    Thanks for any help!

    TrainingDeveloper,
    There most certainly is a way. You can set up any kind of selection that you want, although it is definately a tricky process that can throw off even an experienced FDK developer. Here are my observations based on the code you pasted...
    If you want to select an element, the first thing is that you need to have the ID of that element. I don't see anywhere in your code where an element ID is retrieved. All I see is the F_ApiGetElementRange which is getting the current selection, which in turn is likely why you just keep cutting the currently-selected element. If you want to get a specific element, that function call is not applicable. You only need to set up the element range structure to reflect the proper selection and then cut.
    With that, assume that "elemId" is the ID of the element you want to cut. To select an entire element, you would do this:
    F_ObjHandleT elemId, docId;
    F_ElementRangeT er;
    /* . . .   code here to get elemId, docId, etc. . . .  */
    //set up the element range structure for whole-element selection
    er.beg.childId = elemId;
    er.beg.parentId = er.end.parentId =  F_ApiGetId(docId, elemId, FP_ParentElement);
    er.end.childId = F_ApiGetId(docId, elemId,  FP_NextSiblingElement);
    er.beg.offset = er.end.offset =  0;
    //set the element selection in preparation for the cut
    F_ApiSetElementRange(FV_SessionId, docId,  FP_ElementSelection, &er);
    //... and cut
    F_ApiCut(docId, 0);
    I'm not sure what the sample you pasted is meant to accomplish. It is somewhere along the right track but it won't get you exactly what you want.
    Now, I should say that the process of retrieving the desired element ID is a whole different challenge. I'm not sure if you know how to do that or not so I'll defer any discussion on that until you ask.
    Russ

  • Problem when creating user

    Hi
    When I create user with the following command its working fine.
    ./commadmin user create -D admin -F Satish -n testdomain.com -l satish -w password -W password -L Jha -S mail,cal -E [email protected] -H ms1.testdomain.com
    But when I try to create user from the DA console, its not asking the email information for the user. I have a service package allocated to the domain also 'StandardUserMailCalendar'. whats the problem?
    When I see the list of default service packages through DA console, i have observed that IMAP access is 'disabled' for all the service packages?
    what might be the problem?
    Thanks in Advance

    Hi,
    nvrsprasad wrote:
    But when I try to create user from the DA console, its not asking the email information for the user. I have a service package allocated to the domain also 'StandardUserMailCalendar'. whats the problem?What version of Delegated Administrator are you running?
    Have you patched recently or is this a fresh installation?
    Did you install the sample service packages during the install/configuration?
    When I see the list of default service packages through DA console, i have observed that IMAP access is 'disabled' for all the service packages?If you use the 'bronze' service package during the creation of a new user, does this then ask for mail details (mail-hostname etc.) during the user-wizard stage?
    Have you tried a different browser (e.g. Mozilla Firefox)?
    Regards,
    Shane.

  • Problem in Creating Business Partner through BP

    Hi All,
    I am facing a problem in creating a business partner through transaction BP. I am selecting the Create Person tab. Selecting 'Employee' as BP role, choosing Xxternal Assignment. I am also giving mandatory fields like First name , last name and country. When i am saving it it is getting saved but an error message comes which says "Personal Address does not exist".
    The entry comes in table BUT000 also but when I go to BP transaction again and open the Business partner it is not opening giveing the same error message. Please help in resolving this.
    Thanks & Regards,
    Saket

    Hello Saket,
    The error "Personal Address does not exist" (AM013) indicates a DB inconsistancy. That is the address number in table BUT020 does not have data in table ADRC. Please check whether this is your case.
    If you can recreate such error in a non-modified SAP enverionment, please raise a customer message to SAP.
    To correct the inconsistancies, please use the reports in note 865271 and note 1096330.
    Best regards,
    Maggie

  • Access Denied creating user accounts through vba

    Hello,
    I have a MS-Access application that runs on a Windows 2012 server. My customer logs into the server using RDP. The MS-Access application is started up automatically by means of the environment variable in the user settings. The customer needs to be able
    to create new windows users for this application, simply by clicking a button.  
    The VBA script to create users works, because when I start up the MS-Access application with my own logged on Administrators account, the new users get created. If my customer tries it, he gets 'Access Denied' error. I have added his user account to
    the Power Users group, but that did not solve the problem. I also tried to make him member of the DCOM Users Group, the 'Access Denied' error remains...
    I do not want to give him administrator priviliges, because he is 'just a customer'...
    What do I need to do for this setup to work? I tried altering some DCom settings, but frankly I do not have enough knowledge to feel comfortable with this. Hope anybody can help me out here...
    best regards, Rob

    Is this a standalone server? Only administrators can create user accounts, so there is no work around for that. You could look at something that has the administrator account/password stored and launch PSEXEC or something else in an elevated session behind
    the scenes but that is a security volunerability because the credentials are stored.
    If the account is being created in an Active Directory environment you could delegate permissions to the appropriate OU for your customer.
    Mark B. Cooper, President and Founder of PKI Solutions Inc., former Microsoft Senior Engineer and subject matter expert for Microsoft Active Directory Certificate Services (ADCS). Known as “The PKI Guy” at Microsoft for 10 years.

  • Problem while creating user

    Hi
    We have installed a SAP Netweaver 2004s system on AIX box.
    We have installed the J2EE + ABAP Engine.
    While creating the user from the portal we get the following error:
    #1.5#1E656000400200710000008E000890AC00042D27C0FEBD4D#1175548671736#com.sap.security.core.persistence.datasource.imp.R3PersistenceBase#sap.com/tcwddispwda#com.sap.security.core.persistence.datasource.imp.R3PersistenceBase.getPrivateIDPart()#J2EE_ADMIN#25759##punlparidm06.bmc_E60_602784150#J2EE_ADMIN#81b977c0e15f11dbc9551e6560004002#SAPEngine_Application_Thread[impl:3]_15##0#0#Error#1#/System/Security/Usermanagement#Java#An exception was thrown in the UME/ABAP user management connector. Message: .##An exception was thrown in the UME/ABAP user management connector. Message: .
    [EXCEPTION]
    #2#Cannot create user QM?MVZIMONY in ABAP backend system. Reason: The UME/ABAP adapter has recognized that the communication user is only assigned to the read-only role SAP_BC_JSF_COMMUNICATION_RO (or no role at all) in the backend system. Therefore UME was set to read-only mode for users from the backend system. See SAP Note 908911 for further information.#com.sap.security.core.persistence.datasource.PersistenceException: Cannot create user QM?MVZIMONY in ABAP backend system. Reason: The UME/ABAP adapter has recognized that the communication user is only assigned to the read-only role SAP_BC_JSF_COMMUNICATION_RO (or no role at all) in the backend system. Therefore UME was set to read-only mode for users from the backend system. See SAP Note 908911 for further information.
            at com.sap.security.core.persistence.datasource.imp.R3Persistence.getPrivateIDPart(R3Persistence.java:2521)
            at com.sap.security.core.persistence.datasource.imp.DataSourceBaseImplementation.bindNewPrincipalDatabag(DataSourceBaseImplementation.java:340)
            at com.sap.security.core.persistence.datasource.imp.R3Persistence$Transaction.bindNewPrincipalDatabag(R3Persistence.java:8727)
            at com.sap.security.core.persistence.imp.PrincipalDatabagFactoryInstance.bindNewPrincipalDatabag(PrincipalDatabagFactoryInstance.java:4640)
            at com.sap.security.core.persistence.imp.PrincipalDatabag.getIDParts(PrincipalDatabag.java:1034)
    What can be the problem here.
    AM i missing any step.
    Best Regards
    Manoj

    Hi manoj,
    If you want to enable write access from the UME to the ABAP backend
    system, assign the backend role SAP_BC_JSF_COMMUNICATION to the UME
    communication user (you do not need to remove other roles that are assigned to the user).
    Ensure that the profile for the role is generated and assigned to the user. Check in transaction SU01 that the generated profile for the role  SAP_BC_JSF_COMMUNICATION appears in the section "Profiles" for the the
    communication user.
    Also Rewarding points is the best way to help some one who helps you!!!
    Mantosh

  • Pop problem while creating spool request in reuse_alv_grid_display

    Hi Experts,
    I am trying to create a spool request of alv
    and problem is that i do not want pop-up window for asking output devices,
    actually i am calling reuse alv in loop and following steps i have done:
    w_print-print = 'X'.
      CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
        EXPORTING
          I_BYPASSING_BUFFER = 'X'
          I_CALLBACK_PROGRAM = SY-REPID
          IT_FIELDCAT         = FIELDCAT[]
          I_DEFAULT           = 'X'
          I_SAVE                = 'X'
          is_print                 = w_print
        TABLES
          T_OUTTAB           = T_FINAL
        EXCEPTIONS
          PROGRAM_ERROR      = 1
          OTHERS             = 2.
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    Please give the solution.
    Thanks
    Pankaj

    Hi,
    Use FM GET_PRINT_PARAMETERS ,  and  use command NEW-PAGE PRINT ON PARAMETERS <wa_params> NO DIALOG. before calling the alv FM.
    ls_print-print = 'X'.
    DATA: lwa_params TYPE pri_params,
          lv_valid TYPE c.
    CLEAR: lwa_params, lv_valid.
    CALL FUNCTION 'GET_PRINT_PARAMETERS'
      EXPORTING
        in_parameters          = lwa_params
        layout                 = 'X_65_132'
        line_count             = 65
        line_size              = 132
        no_dialog              = 'X'
      IMPORTING
        out_parameters         = lwa_params
        valid                  = lv_valid
      EXCEPTIONS
        archive_info_not_found = 1
        invalid_print_params   = 2
        invalid_archive_params = 3
        OTHERS                 = 4.
    MOVE-CORRESPONDING lwa_params TO ls_print-print_ctrl-pri_params.
    ls_print-print_ctrl-pri_params-pdest = 'LP01'. " your printr device
    NEW-PAGE PRINT ON PARAMETERS lwa_params NO DIALOG.
    then call FM CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'.
    this will work.
    refer link [ALV - print - create spool request;
    Regards,
    Ravi.

  • Problem while Creating Service order through Work Order

    Hi Gurus,
    I have a problem While creating Service order (me21n) through - Work order it contains service requisitions.
    So that means they carry information such as G/L and work order number while entering the requistion no in PO Creation Screen (me21n)  which automatically should be picked from the work order refference.
    But problem here is the service items and all other are assigned to PO except the Account Assingnment tab which is GL Account and Work Order No and Cost center..
    Can anyone explain me this?
    Is this something that one can explain?
    Regards,
    Murugesh R
    Rewards for value replies.

    Closed..

  • Create credit request through E-commerce B2B application

    Hello Experts,
    My client has a requirement to allow the customers to create a Credit Memo request through E-Commerce B2B application.
    As I understand Credit request is of type Sales Transaction, which is normally created with reference to a billing document. However in our current scenario, credit request has to be created with out any reference to the Billing document moreover there wont be any reference to the Sales order as well.
    Can you suggest me any possible solution for my current requirement. If it is not possible by standard SAP, how can I achieve by custom development.
    I appreciate any helpful suggestion.
    Many Thanks,
    Srinivasu

    Any update on this?

  • Exclude create user statements using datapump API

    I’m trying to perform a schema import and exclude the "create user" statements using the datapump API but I can’t get the syntax correct for the dbms_datapump.metadata_filter call.
    Using impdp I use a parfile that includes the following statements:
    schemas=bob, john
    exclude=user
    How do I achieve the same effect using the dbms_datapump.metadata_filter API?
    Any assistance greatly appreciated.
    Gavin

    Did you ever figure out your issue? I'm having the same issue after I try to set attributes.

Maybe you are looking for