IFS-30002 error using API

Pertinent files to follow. Here is the stact trace:
Oracle.ifs.common.IfsException: IFS-30002: Unable to create new LibraryObject
java.sql.SQLException: ORA-01401: inserted value too large for column
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:168)
at oracle.jdbc.oci8.OCIDBAccess.check_error(OCIDBAccess.java:1597)
at oracle.jdbc.oci8.OCIDBAccess.executeFetch(OCIDBAccess.java:1209)
at oracle.jdbc.oci8.OCIDBAccess.parseExecuteFetch(OCIDBAccess.java:1321)
at oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.java:1446)
at oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.java:1371)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1900)
at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:363)
at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:407)
at oracle.ifs.server.S_LibraryObject.insertRow(S_LibraryObject.java:2812)
at oracle.ifs.server.S_LibraryObject.insertRows(S_LibraryObject.java:2727)
at oracle.ifs.server.OperationState.executeAtomicOperations(OperationState.java:487)
at oracle.ifs.server.S_LibraryObject.createInstance(S_LibraryObject.java:2374)
at oracle.ifs.server.S_LibrarySession.newLibraryObject(S_LibrarySession.java:6808)
at oracle.ifs.server.S_LibrarySession.newPublicObject(S_LibrarySession.java:6849)
at oracle.ifs.server.S_LibrarySession.newPublicObject(S_LibrarySession.java:6831)
at oracle.ifs.server.S_LibrarySession.DMNewPublicObject(S_LibrarySession.java:6619)
at oracle.ifs.beans.LibrarySession.DMNewPublicObject(LibrarySession.java:7226)
at oracle.ifs.beans.LibrarySession.NewPublicObject(LibrarySession.java:4795)
at oracle.ifs.beans.LibrarySession.createPublicObject(LibrarySession.java:2789)
at net.anagraph.watermark.FinalDocument.addSignature(FinalDocument.java:139)
null

package net.anagraph.watermark;
import oracle.ifs.beans.*;
import oracle.ifs.common.*;
import oracle.ifs.server.*;
import java.io.*;
import java.util.*;
public class FinalDocument extends Document {
private LibrarySession ifsSession;
private PublicObject thisPO;
public static final String CLASS_NAME = "FINALDOCUMENT";
public static final String REFERENCE = "REFERENCE";
public static final String MESSAGE_DIGEST = "MESSAGEDIGEST";
public static final String ORIGINAL_DOCUMENT = "ORIGINALDOCUMENT";
public static final String SIGNING_EXPIRATION_DATE = "SIGNINGEXPIRATIONDATE";
public static final String EXECUTION_DATE = "EXECUTIONDATE";
public static final String SIGNERS = "SIGNERS";
public static final String SIGNATURES = "SIGNATURES";
public static final String REJECTIONS = "REJECTIONS";
public FinalDocument(LibrarySession session, Long id, Long classId, S_LibraryObjectData data) throws IfsException {
super(session, id, classId, data);
ifsSession = session;
try {
thisPO = ifsSession.getPublicObject(id);
} catch (Exception e) {
thisPO = null;
public String getReference() throws IfsException {
AttributeValue av = thisPO.getAttribute(REFERENCE);
return av.getString(ifsSession);
public String getMessageDigest() throws IfsException {
AttributeValue av = thisPO.getAttribute(MESSAGE_DIGEST);
return av.getString(ifsSession);
public Date getSigningExpirationDate() throws IfsException {
AttributeValue av = thisPO.getAttribute(SIGNING_EXPIRATION_DATE);
return av.getDate(ifsSession);
public Date getExecutionDate() throws IfsException {
AttributeValue av = thisPO.getAttribute(EXECUTION_DATE);
return av.getDate(ifsSession);
public DirectoryUser getSigners(int signerNum) throws IfsException {
AttributeValue av = thisPO.getAttribute(SIGNERS);
return(DirectoryUser)av.getPublicObjectArray(ifsSession, signerNum);
public DirectoryUser[] getSigners() throws IfsException {
DirectoryUser[] du = new DirectoryUser[0];
System.out.println("********************* getSigners()");
System.out.println("*********************** getAttribute()");
AttributeValue av = thisPO.getAttribute(SIGNERS);
System.out.println("*********************** getPublicObjectArray()");
PublicObjectInterface[] po = av.getPublicObjectArray(ifsSession);
if (po!=null) {
System.out.println("********************* # Signers: " + po.length);
System.out.println("*********************** new DirectoryUser[]");
du = new DirectoryUser[po.length];
for (int i=0; i<po.length; i++) {
du[i] = (DirectoryUser)po;
System.out.println("************************* " + du[i].getDescription());
return du;
public void addSigner(DirectoryUser newSigner) throws IfsException {
// Build new array with all signers and one extra element
DirectoryUser allSigners[] = this.getSigners();
DirectoryUser newSigners[] = new DirectoryUser[allSigners.length+1];
for (int i=0; i<allSigners.length; i++) {
// If signer already in list, exit
if (newSigner.equals(allSigners[i])) return;
newSigners[i] = allSigners[i];
// Put new signer in extra element
newSigners[allSigners.length] = newSigner;
// Save new array as attribute
AttributeValue av = AttributeValue.newAttributeValue(newSigners);
thisPO.setAttribute(SIGNERS, av);
/** @todo Add UtilityFolder handling as Signers are added */
public void removeSigner(DirectoryUser signer) throws IfsException {
DirectoryUser allSigners[] = this.getSigners();
DirectoryUser newSigners[] = new DirectoryUser[allSigners.length-1];
int h = 0;
for (int i=0; i<allSigners.length; i++) {
if (!allSigners[i].equals(signer)) {
if (h<=i) return;
newSigners[h] = allSigners[i];
h++;
// Save new array as attribute
AttributeValue av = AttributeValue.newAttributeValue(newSigners);
thisPO.setAttribute(SIGNERS, av);
/** @todo Add UtilityFolder handling as Signers are removed */
public SignatureObject[] getSignatureArray() throws IfsException {
AttributeValue av = thisPO.getAttribute(SIGNATURES);
SignatureObject[] sigs = (SignatureObject[])av.getPublicObjectArray(ifsSession);
if (sigs==null) sigs = new SignatureObject[0];
return sigs;
public void addSignature(SignatureObjectDefinition newSignature) throws IfsException {
try {
// Build new array with all Signatures and one extra element
SignatureObject allSignatures[] = this.getSignatureArray();
SignatureObject newSignatures[] = new SignatureObject[allSignatures.length+1];
for (int i=0; i<allSignatures.length; i++) {
newSignatures[i] = allSignatures[i];
// Put new Signature in extra element
newSignatures[allSignatures.length] = (SignatureObject)ifsSession.createPublicObject(newSignature);
// Save new array as attribute
AttributeValue av = AttributeValue.newAttributeValue(newSignatures);
thisPO.setAttribute(SIGNATURES, av);
// Remove signer from list
removeSigner(newSignatures[allSignatures.length].getSigner());
} catch (IfsException e) {
System.out.println(e.toString());
e.printStackTrace(System.out);
throw e;
public RejectionObject[] getRejectionArray() throws IfsException {
AttributeValue av = thisPO.getAttribute(REJECTIONS);
RejectionObject[] rejs = (RejectionObject[])av.getPublicObjectArray(ifsSession);
if (rejs==null) rejs = new RejectionObject[0];
return rejs;
public void addRejection(RejectionObjectDefinition newRejection) throws IfsException {
// Build new array with all Rejections and one extra element
RejectionObject allRejections[] = this.getRejectionArray();
RejectionObject newRejections[] = new RejectionObject[allRejections.length+1];
for (int i=0; i<allRejections.length; i++) {
newRejections[i] = allRejections[i];
// Put new Rejection in extra element
newRejections[allRejections.length] = (RejectionObject)ifsSession.createPublicObject(newRejection);
// Save new array as attribute
AttributeValue av = AttributeValue.newAttributeValue(newRejections);
thisPO.setAttribute(REJECTIONS, av);
// Remove signer from list
removeSigner(newRejections[allRejections.length].getSignatureObject().getSigner());
public boolean isVersionable() {
return false;
null

Similar Messages

  • Another Post concerning Error IFS-30002

    If I try to Upload a XML file containing the Attribute declaration below:
    <Attribute>
    <Name>FunctionalityImplementedFixed</Name>
    <DataType>String</DataType>
    <DataLength>512</DataLength>
    </Attribute>
    I get the Error IFS-30002.
    Can someone tell me whats wrong with this declaration. If I comment it, all works fine!
    Are there any Restrictions for the Length of the Attribute Name?
    null

    Reproduced the Problem. It is much easier to debug problems when we have the full stack trace.
    Eg in your case....
    Loading the following Type Definition
    <CLASSOBJECT>
    <NAME>TEST_OBJECT_01</NAME>
    <SUPERCLASS REFTYPE="NAME">DOCUMENT</SUPERCLASS>
    <ATTRIBUTES>
    <Attribute>
    <Name>FunctionalityImplementedFixed</Name>
    <DataType>String</DataType>
    <DataLength>512</DataLength>
    </Attribute>
    </ATTRIBUTES>
    </CLASSOBJECT>
    causes the following error.
    Thu Jul 27 12:16:53 PDT 2000: \Temp\XML Long Attribute Name Definition.xml:
    oracle.ifs.common.IfsException: IFS-30002: Unable to create new LibraryObject
    java.sql.SQLException: ORA-01401: inserted value too large for column
    at java.lang.Throwable.<init>(Compiled Code)
    at java.lang.Exception.<init>(Compiled Code)
    at java.sql.SQLException.<init>(SQLException.java:43)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java)
    at oracle.jdbc.oci8.OCIDBAccess.check_error(Compiled Code)
    at oracle.jdbc.oci8.OCIDBAccess.executeFetch(Compiled Code)
    at oracle.jdbc.oci8.OCIDBAccess.parseExecuteFetch(Compiled Code)
    at oracle.jdbc.driver.OracleStatement.executeNonQuery(Compiled Code)
    at oracle.jdbc.driver.OracleStatement.doExecuteOther(Compiled Code)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithBatch(Compiled Code)
    at oracle.jdbc.driver.OracleStatement.doExecute(Compiled Code)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(Compiled Code)
    at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(Compiled Code)
    at oracle.jdbc.driver.OraclePreparedStatement.execute(Compiled Code)
    at oracle.ifs.server.S_LibraryObject.insertRow(Compiled Code)
    at oracle.ifs.server.S_LibraryObject.insertRows(Compiled Code)
    at oracle.ifs.server.OperationState.executeAtomicOperations(Compiled Code)
    at oracle.ifs.server.S_ClassObject.extendedPostInsert(Compiled Code)
    at oracle.ifs.server.S_LibraryObject.postInsert(S_LibraryObject.java:1341)
    at oracle.ifs.server.OperationState.executeAtomicOperations(Compiled Code)
    at oracle.ifs.server.S_LibraryObject.createInstance(S_LibraryObject.java:2348)
    at oracle.ifs.server.S_LibrarySession.newLibraryObject(S_LibrarySession.java:6596)
    at oracle.ifs.server.S_LibrarySession.newSchemaObject(S_LibrarySession.java:6707)
    at oracle.ifs.server.S_LibrarySession.newSchemaObject(S_LibrarySession.java:6689)
    at oracle.ifs.server.S_LibrarySession.DMNewSchemaObject(S_LibrarySession.java:6515)
    at oracle.ifs.beans.LibrarySession.DMNewSchemaObject(LibrarySession.java:6997)
    at oracle.ifs.beans.LibrarySession.NewSchemaObject(LibrarySession.java:4600)
    at oracle.ifs.beans.LibrarySession.createSchemaObject(LibrarySession.java:2584)
    at oracle.ifs.beans.parsers.SimpleXmlParserImpl.createObject(Compiled Code)
    at oracle.ifs.beans.parsers.SimpleXmlParserImpl.createObject(SimpleXmlParserImpl.java:394)
    at oracle.ifs.beans.parsers.SimpleXmlParser.readTopLevelObject(SimpleXmlParser.java:490)
    at oracle.ifs.beans.parsers.SimpleXmlParser.traverseTree(Compiled Code)
    at oracle.ifs.beans.parsers.XmlParser.parse(Compiled Code)
    at ifs.demo.common.xml.NewXmlParser.parse(Compiled Code)
    at oracle.ifs.utils.common.ParserHelper.parseExistingDocument(ParserHelper.java:352)
    at oracle.ifs.protocols.ntfs.server.FileProxy.parseFile(FileProxy.java:744)
    at oracle.ifs.protocols.ntfs.server.FileProxy.closeFile(Compiled Code)
    at oracle.ifs.protocols.ntfs.server.FileProxy.run(Compiled Code)
    I was able to get this information by using SMB / NT File System Driver to load the XML File. When an XML file fails to load under SMB the entire Verbose Stack Trace is dumped into a 'log' file in the same location as the XML was placed.
    In this case changing the Type File so that the DatabaseObjectName tag is used to provide a valid column name fixed the problem.

  • Error while signing a document using API

    Hello. I'm using API functions to add a digital signature to a PDF document. While signing this document, I receive an error which looks like:
    com.adobe.livecycle.signatures.client.types.exceptions.PDFOperationException: ALC-DSS-303-001 Could not sign Signature Field MyField (in the operation : sign)
    Caused By: ALC-DSS-303-014 Subject name and the subject alt name missing. (in the operation : getSignerName)
    My source code is a straight copy/paste from the SDK Help. I can successfully add an unsigned signature field using API call, but I can't sign it. I can also sign my document manually from Adobe Acrobat Professional using the same certificate.
    I'm new in LiveCycle and digital signatures, so it might be some obvious reason that I just can't detect now.
    Could anyone help me, please?

    you can mail me directly to [email protected], and I'll try to help.
    no guarenty :-)
    Tal
    [email protected]

  • Error while creating Time Card Using API

    Hello
    I have a requirement to run OTL Interface once day to create/update Time Card in OTL for those datea created on sysdate-1 in Service Module (data will get feeded from Service Module). For example this interface will run on sysdate to create time cards for those data created in the service module on sysdate-1.
    I have some sample data and code I am using but it is erroring out with different errors..Can anybody help me on this
    My Interface should run as expected below and my time card range will be Monday 24-Dec-2012 to Sunday 30-Dec-2012
    Interface Run Date Time Entry to process
    25-Dec-2012 24-Dec-2012 Data
    26-Dec-2012 25-Dec-2012 Data
    CREATE OR REPLACE PROCEDURE main_process (o_errbuf OUT VARCHAR2,
    o_ret_code OUT NUMBER,
    l_chr_from_date IN VARCHAR2,
    l_chr_to_date IN VARCHAR2)
    IS
    l_chr_skip VARCHAR2 (1);
    l_chr_task_exists VARCHAR2 (100);
    l_chr_error_msg VARCHAR2 (4000);
    l_num_tbb_id NUMBER;
    l_num_request_id NUMBER := fnd_global.conc_request_id;
    l_num_login_id NUMBER := fnd_global.login_id;
    l_num_user_id NUMBER := fnd_global.user_id;
    l_num_resp_id NUMBER := fnd_Profile.VALUE ('resp_ID');
    l_num_otl_appl_id CONSTANT NUMBER (3) := 809; -- This is the appl_id for OTL, do not change
    l_chr_proj_attr1 CONSTANT VARCHAR2 (7) := 'Task_Id';
    l_chr_proj_attr2 CONSTANT VARCHAR2 (10) := 'Project_Id';
    l_chr_proj_attr3 CONSTANT VARCHAR2 (16) := 'Expenditure_Type';
    l_chr_proj_attr4 CONSTANT VARCHAR2 (19) := 'Expenditure_Comment';
    l_chr_proj_attr5 CONSTANT VARCHAR2 (23) := 'SYSTEM_LINKAGE_FUNCTION';
    i_num_count NUMBER;
    i_num_rows_inserted NUMBER := NULL;
    l_chr_message fnd_new_messages.MESSAGE_TEXT%TYPE;
    l_chr_hdr_eligible VARCHAR2 (5);
    l_tbl_timecard_info hxc_self_service_time_deposit.timecard_info;
    l_tbl_attributes_info hxc_self_service_time_deposit.app_attributes_info;
    l_tbl_messages hxc_self_service_time_deposit.message_table;
    l_new_timecard_id NUMBER;
    l_new_timecard_ovn NUMBER;
    l_num_time_building_block_id hxc_time_building_blocks.time_building_block_id%TYPE;
    I NUMBER; --PENDING REMOVE
    l_message VARCHAR2 (2000); --PENDING REMOVE
    l_time_building_block_id NUMBER; --PENDING REMOVE
    CURSOR process_line
    IS
    SELECT ROWID ROW_ID, a.*
    FROM xxpowl.xxpowl_hxt_otl_intf a
    WHERE 1 = 1 --a.request_id = l_num_request_id
    AND a.status_flag = 'NEW' -- 'VALID'
    AND a.error_desc IS NULL
    AND a.service_activity_type IS NOT NULL;
    BEGIN
    FND_FILE.PUT_LINE (
    fnd_file.LOG,
    'Entered From Date:'
    || (TO_DATE ( (l_chr_from_date), 'YYYY/MM/DD HH24:MI:SS')));
    FND_FILE.PUT_LINE (
    fnd_file.LOG,
    'Entered To Date:'
    || (TO_DATE ( (l_chr_to_date), 'YYYY/MM/DD HH24:MI:SS')));
    FND_GLOBAL.APPS_INITIALIZE (user_id => l_num_user_id,
    resp_id => l_num_resp_id,
    resp_appl_id => l_num_otl_appl_id);
    BEGIN
    FND_FILE.PUT_LINE (
    fnd_file.LOG,
    'Inserting the data in the custom table XXPOWL_HXT_OTL_INTF');
    INSERT INTO xxpowl.XXPOWL_HXT_OTL_INTF (SR_NUMBER,
    PROJECT_TASK_OWNER,
    PROJECT_TASK_OWNER_PERSON_ID,
    PROJECT_ID,
    PROJECT_TASK_ID,
    ASSIGNEE,
    ASSIGNEE_ID,
    ASSIGNEE_PERSON_ID,
    ASSIGNEE_SUPERVISOR_PERSON_ID,
    TASK_NUMBER,
    PARENT_TASK_NUMBER,
    DEBRIEF_NUMBER,
    DEBRIEF_HEADER_ID,
    DEBRIEF_DATE,
    TASK_ASSIGNMENT_ID,
    DEBRIEF_OBJECT_VERSION_NUMBER,
    DEBRIEF_PER_COMPLETE,
    DEBRIEF_LINE_ID,
    DEBRIEF_PROCESS,
    SERVICE_ACTIVITY,
    SERVICE_ACTIVITY_TYPE,
    INVENTORY_ITEM_ID,
    ITEM,
    BUSINESS_PROCESS_ID,
    DEBRIEF_TRANSACTION_TYPE_ID,
    DEBRIEF_UOM_CODE,
    DEBRIEF_HOURS,
    CONV_DEBRIEF_IN_HOURS,
    DEBRIEF_START_TIME,
    DEBRIEF_END_TIME,
    DEBRIEF_SERVICE_DATE,
    NOTES,
    OTL_ELIGIBLE_FLAG,
    NOTIF_SENT_FLAG,
    NOTIF_ELIGIBLE_FLAG,
    ERROR_DESC,
    STATUS_FLAG,
    INITIAL_NOTIF_SENT_DATE,
    CREATION_DATE,
    CREATED_BY,
    LAST_UPDATE_DATE,
    LAST_UPDATED_BY,
    LAST_UPDATE_LOGIN,
    REQUEST_ID,
    INITIAL_REQUEST_ID)
    (SELECT b.incident_number sr_number,
    h.resource_name project_task_owner,
    h.source_id project_task_owner_person_id,
    b.external_attribute_1 project_id,
    b.external_attribute_2 project_task_id,
    jtf_task_utl.get_owner (d.resource_type_code, d.resource_id)
    assignee,
    d.resource_id assignee_id,
    jrre.source_id assignee_person_id,
    paa.supervisor_id assignee_supervisor_person_id,
    c.task_number task_number,
    (SELECT task_number
    FROM jtf_tasks_b z
    WHERE c.parent_task_id = z.task_id)
    parent_task_number,
    a.debrief_number,
    a.debrief_header_id debrief_header_id,
    a.debrief_date debrief_date,
    a.task_assignment_id task_assignment_id,
    a.object_version_number debrief_object_version_number,
    a.attribute1 debrief_per_complete,
    e.debrief_line_id debrief_line_id,
    cbp.name debrief_process,
    cttv.name service_activity,
    DECODE (cttv.attribute1,
    'Y', 'Service-Billable',
    'N', 'Service-Non Billable')
    service_activity_type,
    e.inventory_item_id inventory_item_id, --f.segment1 item,
    (SELECT segment1
    FROM mtl_system_items_b f
    WHERE e.inventory_item_id = f.inventory_item_id
    AND f.organization_id = b.inv_organization_id)
    item, --241 --Mater Org
    e.business_process_id business_process_id,
    e.transaction_type_id debrief_transaction_type_id,
    e.uom_code debrief_uom_code,
    e.quantity debrief_hours,
    (g.conversion_rate * e.quantity) conv_debrief_in_hours,
    e.labor_start_date debrief_start_time,
    e.labor_end_date debrief_end_time,
    e.service_date debrief_service_date,
    (SELECT note_tl.notes
    FROM JTF_NOTES_B NOTE, JTF_NOTES_TL NOTE_TL
    WHERE NOTE.JTF_NOTE_ID = NOTE_TL.JTF_NOTE_ID
    AND NOTE_TL.LANGUAGE = USERENV ('LANG')
    AND NOTE.SOURCE_OBJECT_ID = a.DEBRIEF_HEADER_ID
    AND note.jtf_note_id =
    (SELECT MAX (note1.jtf_note_id)
    FROM JTF_NOTES_B note1
    WHERE NOTE1.SOURCE_OBJECT_ID =
    a.DEBRIEF_HEADER_ID))
    notes,
    'Y',
    'N',
    'X',
    NULL,
    'NEW',
    NULL,
    SYSDATE,
    l_num_user_id,
    SYSDATE,
    l_num_user_id,
    l_num_login_id,
    l_num_request_id,
    l_num_request_id
    FROM csf_debrief_headers a,
    cs_incidents_all_b b,
    jtf_tasks_b c,
    jtf_task_assignments d,
    csf_debrief_lines e, --mtl_system_items_b f,
    mtl_uom_conversions g,
    jtf_rs_resource_extns_vl h,
    cs_business_processes cbp,
    cs_transaction_types_vl cttv --, cs_sr_task_debrief_notes_v notes
    jtf_rs_resource_extns_vl jrre,
    per_all_assignments_f paa
    WHERE a.task_assignment_id = d.task_assignment_id
    AND d.task_id = c.task_id
    AND c.source_object_id = b.incident_id
    AND c.source_object_type_code = 'SR'
    AND a.debrief_header_id = e.debrief_header_id
    AND e.uom_code = g.uom_code
    AND g.uom_class = 'Time'
    AND b.incident_owner_id = h.resource_id(+)
    AND e.business_process_id = cbp.business_process_id
    AND e.transaction_type_id = cttv.transaction_type_id
    AND d.resource_id = jrre.resource_id
    AND jrre.source_id = paa.person_id --= 181
    AND TRUNC (SYSDATE) BETWEEN paa.effective_start_date
    AND paa.effective_end_date
    AND TRUNC (e.last_update_date) BETWEEN TO_DATE (
    (l_chr_from_date),
    'YYYY/MM/DD HH24:MI:SS')
    AND TO_DATE (
    (NVL (
    l_chr_to_date,
    l_chr_from_date)),
    'YYYY/MM/DD HH24:MI:SS')
    AND NOT EXISTS
    (SELECT 1
    FROM xxpowl.XXPOWL_HXT_OTL_INTF old
    WHERE old.debrief_header_id =
    e.debrief_header_id
    AND old.task_number = c.task_number
    AND TRUNC (old.DEBRIEF_SERVICE_DATE) =
    TRUNC (e.SERVICE_DATE)
    AND old.DEBRIEF_TRANSACTION_TYPE_ID =
    e.TRANSACTION_TYPE_ID
    AND old.request_id <> l_num_request_id
    AND old.DEBRIEF_UOM_CODE = e.uom_code
    AND old.DEBRIEF_HOURS = e.quantity));
    i_num_rows_inserted := SQL%ROWCOUNT;
    fnd_file.put_line (fnd_file.LOG,
    'No of rows Inserted:' || i_num_rows_inserted);
    COMMIT;
    EXCEPTION
    WHEN OTHERS
    THEN
    l_chr_error_msg :=
    l_chr_error_msg
    || 'Error while Inserting debrief lines data into custom table.Error: '
    || SQLERRM
    || '. Exiting the interface without processing further';
    fnd_file.put_line (fnd_file.LOG, l_chr_error_msg);
    ROLLBACK;
    RETURN;
    END;
    FOR process_line_rec IN process_line
    LOOP
    l_chr_error_msg := NULL;
    l_tbl_timecard_info.delete;
    l_tbl_attributes_info.delete;
    l_tbl_messages.delete;
    l_new_timecard_id := NULL;
    l_new_timecard_ovn := NULL;
    l_num_time_building_block_id := NULL;
    l_chr_message := NULL;
    i_num_count := 0;
    l_num_tbb_id := NULL;
    BEGIN
    hxc_timestore_deposit.create_time_entry (
    p_measure => process_line_rec.conv_debrief_in_hours,
    p_day => TO_DATE ( (process_line_rec.debrief_service_date),
    'DD/MM/RRRR'),
    p_resource_id => process_line_rec.assignee_person_id,
    p_comment_text => process_line_rec.notes
    || '....Remove this notes in the code logic....Request Id:'
    || l_num_request_id, --pending lokesh
    p_app_blocks => l_tbl_timecard_info,
    p_app_attributes => l_tbl_attributes_info,
    p_time_building_block_id => l_num_time_building_block_id);
    fnd_file.put_line (
    fnd_file.LOG,
    'Step#1 completed, TIME_BUILDING_BLOCK_ID:'
    || l_num_time_building_block_id);
    EXCEPTION
    WHEN OTHERS
    THEN
    l_chr_error_msg :=
    l_chr_error_msg
    || '.Error in INSERT API CALL at Step#1 for the debrief line id: '
    || process_line_rec.debrief_line_id
    || '.Error:'
    || SQLERRM;
    END;
    BEGIN
    -- Classify Time
    -- Attribute1
    hxc_timestore_deposit.create_attribute (
    p_building_block_id => l_num_time_building_block_id,
    p_attribute_name => 'Task_Id',
    p_attribute_value => process_line_rec.project_task_id,
    p_app_attributes => l_tbl_attributes_info);
    EXCEPTION
    WHEN OTHERS
    THEN
    l_chr_error_msg :=
    l_chr_error_msg
    || '.Error in INSERT API CALL at Step#2 for the debrief line id: '
    || process_line_rec.debrief_line_id
    || '.Error:'
    || SQLERRM;
    END;
    BEGIN
    -- Attribute2
    hxc_timestore_deposit.create_attribute (
    p_building_block_id => l_num_time_building_block_id,
    p_attribute_name => 'Project_Id',
    p_attribute_value => process_line_rec.project_id,
    p_app_attributes => l_tbl_attributes_info);
    EXCEPTION
    WHEN OTHERS
    THEN
    l_chr_error_msg :=
    l_chr_error_msg
    || '.Error in INSERT API CALL at Step#3 for the debrief line id: '
    || process_line_rec.debrief_line_id
    || '.Error:'
    || SQLERRM;
    END;
    BEGIN
    -- Attribute3
    hxc_timestore_deposit.create_attribute (
    p_building_block_id => l_num_time_building_block_id,
    p_attribute_name => 'Expenditure_Type',
    p_attribute_value => 'Service-Billable',
    -- p_attribute_value=> 'Service-Non Billable',
    p_app_attributes => l_tbl_attributes_info);
    EXCEPTION
    WHEN OTHERS
    THEN
    l_chr_error_msg :=
    l_chr_error_msg
    || '.Error in INSERT API CALL at Step#4 for the debrief line id: '
    || process_line_rec.debrief_line_id
    || '.Error:'
    || SQLERRM;
    END;
    BEGIN
    -- Attribute4
    hxc_timestore_deposit.create_attribute (
    p_building_block_id => l_num_time_building_block_id,
    p_attribute_name => 'Expenditure_Comment',
    p_attribute_value => 'Expenditure Comment created by API',
    p_app_attributes => l_tbl_attributes_info);
    EXCEPTION
    WHEN OTHERS
    THEN
    l_chr_error_msg :=
    l_chr_error_msg
    || '.Error in INSERT API CALL at Step#5 for the debrief line id: '
    || process_line_rec.debrief_line_id
    || '.Error:'
    || SQLERRM;
    END;
    BEGIN
    -- Attribute5
    hxc_timestore_deposit.create_attribute (
    p_building_block_id => l_num_time_building_block_id,
    p_attribute_name => 'SYSTEM_LINKAGE_FUNCTION',
    p_attribute_value => 'ST',
    p_app_attributes => l_tbl_attributes_info);
    EXCEPTION
    WHEN OTHERS
    THEN
    l_chr_error_msg :=
    l_chr_error_msg
    || '.Error in INSERT API CALL at Step#6 for the debrief line id: '
    || process_line_rec.debrief_line_id
    || '.Error:'
    || SQLERRM;
    END;
    BEGIN
    hxc_timestore_deposit.execute_deposit_process (
    p_validate => FALSE,
    p_app_blocks => l_tbl_timecard_info,
    p_app_attributes => l_tbl_attributes_info,
    p_messages => l_tbl_messages,
    p_mode => 'SAVE', -- p_mode-> 'SUBMIT', 'SAVE', 'MIGRATION', 'FORCE_SAVE' or 'FORCE_SUBMIT'
    p_deposit_process => 'OTL Deposit Process',
    p_timecard_id => l_new_timecard_id,
    p_timecard_ovn => l_new_timecard_ovn);
    COMMIT;
    hxc_timestore_deposit.log_messages (p_messages => l_tbl_messages);
    IF (l_tbl_messages.COUNT <> 0)
    THEN
    l_chr_error_msg :=
    l_chr_error_msg
    || '.Error in INSERT API CALL at Step#7 for the debrief line id: '
    || process_line_rec.debrief_line_id
    || '.Error:'
    || SQLERRM
    || '.API Error messages are:';
    i_num_count := l_tbl_messages.FIRST;
    LOOP
    EXIT WHEN (NOT l_tbl_messages.EXISTS (i_num_count));
    l_chr_message :=
    fnd_message.get_string (
    appin => l_tbl_messages (i_num_count).application_short_name,
    namein => l_tbl_messages (i_num_count).message_name);
    fnd_file.put_line (
    fnd_file.LOG,
    (l_tbl_messages (i_num_count).message_name));
    l_chr_error_msg := l_chr_error_msg || l_chr_message || '.';
    i_num_count := l_tbl_messages.NEXT (i_num_count);
    END LOOP;
    END IF;
    EXCEPTION
    WHEN OTHERS
    THEN
    fnd_file.put_line (
    fnd_file.LOG,
    '**** Error.....Inside Exception Block in execute_deposit_process');
    BEGIN
    hxc_timestore_deposit.log_messages (
    p_messages => l_tbl_messages);
    EXCEPTION
    WHEN OTHERS
    THEN
    fnd_file.put_line (
    fnd_file.LOG,
    '*****Error....Inside Exception Block in hxc_timestore_deposit.log_messages.Error:'
    || SQLERRM);
    END;
    l_chr_error_msg :=
    l_chr_error_msg
    || 'Error in INSERT API CALL at Step#7 for the debrief line id: '
    || process_line_rec.debrief_line_id
    || '.Error:'
    || SQLERRM
    || '.API Error messages are:';
    IF (l_tbl_messages.COUNT <> 0)
    THEN
    i_num_count := l_tbl_messages.FIRST;
    LOOP
    EXIT WHEN (NOT l_tbl_messages.EXISTS (i_num_count));
    l_chr_message :=
    fnd_message.get_string (
    appin => l_tbl_messages (i_num_count).application_short_name,
    namein => l_tbl_messages (i_num_count).message_name);
    l_chr_error_msg := l_chr_error_msg || l_chr_message || '.';
    i_num_count := l_tbl_messages.NEXT (i_num_count);
    END LOOP;
    END IF;
    END;
    COMMIT;
    IF l_chr_error_msg IS NOT NULL OR l_new_timecard_id IS NULL
    THEN
    fnd_file.put_line (fnd_file.LOG,
    '***** Error *****' || l_chr_error_msg);
    o_ret_code := 1;
    END IF;
    BEGIN
    fnd_file.put_line (
    fnd_file.LOG,
    'Updating the status of the record in custom table for debrief_line_id:'
    || process_line_rec.debrief_line_id);
    UPDATE xxpowl.XXPOWL_HXT_OTL_INTF
    SET status_flag =
    DECODE (
    l_chr_error_msg,
    NULL, DECODE (
    l_new_timecard_id,
    NULL, 'FAILED',
    DECODE (SIGN (l_new_timecard_id),
    '1', 'SUCESS',
    'FAILED')),
    'FAILED'),
    time_building_block_id = l_new_timecard_id,
    last_update_date = SYSDATE,
    request_id = l_num_request_id,
    last_updated_by = l_num_user_id,
    error_desc = l_chr_error_msg
    WHERE ROWID = process_line_rec.row_id;
    COMMIT;
    EXCEPTION
    WHEN OTHERS
    THEN
    l_chr_error_msg :=
    l_chr_error_msg
    || '.Error while updating the status to SUCCESS.Error: '
    || SQLERRM;
    END;
    END LOOP; --process_line
    EXCEPTION
    WHEN OTHERS
    THEN
    FND_FILE.PUT_LINE (
    fnd_file.LOG,
    'Unknown/Unhandlled Exception Error......' || SQLERRM);
    o_ret_code := 2;
    END main_process;
    SHOW ERR;
    Error Messages:
    1. Error in INSERT API CALL at Step#7 for the debrief line id: 41011.Error:ORA-00001: unique constraint (HXC.HXC_ROLLBACK_TIMECARDS_PK) violated.
    2. Error in INSERT API CALL at Step#7 for the debrief line id: 41011.Error:ORA-00001: unique constraint (HXC.HXC_LATEST_DETAILS_FK) violated
    Thanks a lot for the help!

    Hello
    We will get this error message when we run this from application other than "Time and Labor Engine". So try to run this concurrent program (if you registered as a conc. program) from Time and Labor Engine application.
    --Lokesh                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Error occurred while finding users using API with custom field

    Hi All,
    I am getting the following error while searching user using API with custom attribute. Did anybody faced the same problem before ?
    Hashtable<Object,Object> env = new Hashtable<Object,Object>();
    env.put("java.naming.factory.initial", "weblogic.jndi.WLInitialContextFactory");
    env.put(OIMClient.JAVA_NAMING_PROVIDER_URL, "t3://localhost:14000");
    System.setProperty("java.security.auth.login.config","C:\\Oracle\\Middleware\\Oracle_IDM1\\designconsole\\config\\authwl.conf");
    System.setProperty("OIM.AppServerType", "wls");
    System.setProperty("APPSERVER_TYPE", "wls");
    tcUtilityFactory ioUtilityFactory = new tcUtilityFactory(env, "xelsysadm", "Weblogic123$");
    OIMClient client = new OIMClient(env);
    client.login("xelsysadm", "Weblogic123$".toCharArray());
    SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd");
    tcUserOperationsIntf moUserUtility = (tcUserOperationsIntf)ioUtilityFactory.getUtility("Thor.API.Operations.tcUserOperationsIntf");
    Hashtable mhSearchCriteria = new Hashtable();
    mhSearchCriteria.put("USR_UDF_ACTUALSTARTDATE",formatter.format(date));
    tcResultSet moResultSet = moUserUtility.findAllUsers(mhSearchCriteria);
    printTcResultSet(moResultSet,"abcd");
    log4j:WARN No appenders could be found for logger (org.springframework.jndi.JndiTemplate).
    log4j:WARN Please initialize the log4j system properly.
    Exception in thread "main" Thor.API.Exceptions.tcAPIException: Error occurred while finding users.
    at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:237)
    at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:348)
    at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:259)
    at Thor.API.Operations.tcUserOperationsIntf_e9jcxp_tcUserOperationsIntfRemoteImpl_1036_WLStub.findAllUsersx(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.invoke(RemoteBusinessIntfProxy.java:85)
    at com.sun.proxy.$Proxy2.findAllUsersx(Unknown Source)
    at Thor.API.Operations.tcUserOperationsIntfDelegate.findAllUsers(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at Thor.API.Base.SecurityInvocationHandler$1.run(SecurityInvocationHandler.java:68)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
    at weblogic.security.Security.runAs(Security.java:41)
    at Thor.API.Security.LoginHandler.weblogicLoginSession.runAs(weblogicLoginSession.java:52)
    at Thor.API.Base.SecurityInvocationHandler.invoke(SecurityInvocationHandler.java:79)
    at com.sun.proxy.$Proxy3.findAllUsers(Unknown Source)
    at oim.standalone.code.OIMAPIConnection.usersearch(OIMAPIConnection.java:209)
    at oim.standalone.code.OIMAPIConnection.main(OIMAPIConnection.java:342)
    Caused by: Thor.API.Exceptions.tcAPIException: Error occurred while finding users.
    at com.thortech.xl.ejb.beansimpl.tcUserOperationsBean.findAllUsers(tcUserOperationsBean.java:4604)
    at Thor.API.Operations.tcUserOperationsIntfEJB.findAllUsersx(Unknown Source)
    at sun.reflect.GeneratedMethodAccessor1614.invoke(Unknown Source)
    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.oracle.pitchfork.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:34)
    at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
    at com.oracle.pitchfork.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:42)
    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)
    at com.sun.proxy.$Proxy347.findAllUsersx(Unknown Source)
    at Thor.API.Operations.tcUserOperationsIntf_e9jcxp_tcUserOperationsIntfRemoteImpl.__WL_invoke(Unknown Source)
    at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:40)
    at Thor.API.Operations.tcUserOperationsIntf_e9jcxp_tcUserOperationsIntfRemoteImpl.findAllUsersx(Unknown Source)
    at Thor.API.Operations.tcUserOperationsIntf_e9jcxp_tcUserOperationsIntfRemoteImpl_WLSkel.invoke(Unknown Source)
    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:667)
    at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:230)
    at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:522)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)
    at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:518)
    at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
    Thank you

    Hi J,
    Thanks for the reply. But the code is working fine for OOTB attributes and  for 11g API i am getting permission exception
    Exception in thread "main" oracle.iam.platform.authz.exception.AccessDeniedException: You do not have permission to search the following user attributes: USR_UDF_ACTUALSTARTDATE.
    at oracle.iam.identity.usermgmt.impl.UserManagerImpl.search(UserManagerImpl.java:1465)
    at sun.reflect.GeneratedMethodAccessor1034.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
    at oracle.iam.platform.utils.DMSMethodInterceptor.invoke(DMSMethodInterceptor.java:25)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
    at com.sun.proxy.$Proxy366.search(Unknown Source)
    at oracle.iam.identity.usermgmt.api.UserManagerEJB.searchx(Unknown Source)
    at sun.reflect.GeneratedMethodAccessor1449.invoke(Unknown Source)
    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.oracle.pitchfork.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:34)
    at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
    at com.oracle.pitchfork.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:42)
    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)
    at com.sun.proxy.$Proxy365.searchx(Unknown Source)
    at oracle.iam.identity.usermgmt.api.UserManager_nimav7_UserManagerRemoteImpl.__WL_invoke(Unknown Source)
    at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:40)
    at oracle.iam.identity.usermgmt.api.UserManager_nimav7_UserManagerRemoteImpl.searchx(Unknown Source)
    at oracle.iam.identity.usermgmt.api.UserManager_nimav7_UserManagerRemoteImpl_WLSkel.invoke(Unknown Source)
    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:667)
    at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:230)
    at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:522)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)
    at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:518)
    at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
    Caused by: oracle.iam.identity.exception.SearchAttributeAccessDeniedException: You do not have permission to search the following user attributes: USR_UDF_ACTUALSTARTDATE.
    at oracle.iam.identity.usermgmt.impl.UserManagerImpl.search(UserManagerImpl.java:1462)
    ... 44 more

  • Error retrieving child form data using API in 11g

    Hi,
    I am getting the following error while reading the process form child data from the process task.
    <Jul 25, 2012 11:14:43 PM IST> <Error> <XELLERATE.APIS> <BEA-000000> <tcFormInstanceOperationsBean/isProcessFormChildDataDataUnique: no PRF isKey set up for sdk:45>
    <Jul 25, 2012 11:14:43 PM IST> <Error> <XELLERATE.APIS> <BEA-000000> <tcFormInstanceOperationsBean/isProcessFormChildDataDataUnique: no PRF isKey set up for sdk:45>
    However, the same piece of code works fine from the eclipse. Let me know how to resolve this.
    Thanks in Advance.
    -Hrushi

    I am getting this error if I use Platform class
    java.lang.NoSuchMethodException: com.univar.processtask.updateProcessFormData.<init>()
    at java.lang.Class.getConstructor0(Class.java:2706)
    at java.lang.Class.getConstructor(Class.java:1657)
    at com.thortech.xl.adapterGlue.ScheduleItemEvents.adpUPDATEPROCESSFORM.UPDATEPFOM(adpUPDATEPROCESSFORM.java:105)
    at com.thortech.xl.adapterGlue.ScheduleItemEvents.adpUPDATEPROCESSFORM.implementation(adpUPDATEPROCESSFORM.java:56)
    at com.thortech.xl.client.events.tcBaseEvent.run(tcBaseEvent.java:196)
    at com.thortech.xl.dataobj.tcDataObj.runEvent(tcDataObj.java:2492)
    at com.thortech.xl.dataobj.tcScheduleItem.runMilestoneEvent(tcScheduleItem.java:2938)
    at com.thortech.xl.dataobj.tcScheduleItem.eventPostInsert(tcScheduleItem.java:560)
    at com.thortech.xl.dataobj.tcDataObj.insert(tcDataObj.java:604)
    at com.thortech.xl.dataobj.tcDataObj.save(tcDataObj.java:474)
    at com.thortech.xl.dataobj.tcORC.insertNonConditionalMilestones(tcORC.java:849)
    at com.thortech.xl.dataobj.tcORC.completeSystemValidationMilestone(tcORC.java:1165)
    at com.thortech.xl.dataobj.tcOrderItemInfo.completeCarrierBaseMilestone(tcOrderItemInfo.java:500)
    at com.thortech.xl.dataobj.tcOrderItemInfo.eventPostInsert(tcOrderItemInfo.java:152)
    at com.thortech.xl.dataobj.tcUDProcess.eventPostInsert(tcUDProcess.java:194)
    at com.thortech.xl.dataobj.tcDataObj.insert(tcDataObj.java:604)
    at com.thortech.xl.dataobj.tcDataObj.save(tcDataObj.java:474)
    at com.thortech.xl.dataobj.tcTableDataObj.save(tcTableDataObj.java:2905)
    at com.thortech.xl.ejb.beansimpl.tcFormInstanceOperationsBean.setProcessFormData(tcFormInstanceOperationsBean.java:682)
    at com.thortech.xl.ejb.beansimpl.tcFormInstanceOperationsBean.setProcessFormData(tcFormInstanceOperationsBean.java:398)
    at Thor.API.Operations.tcFormInstanceOperationsIntfEJB.setProcessFormDatax(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)
    at $Proxy384.setProcessFormDatax(Unknown Source)
    at Thor.API.Operations.tcFormInstanceOperationsIntfEJB_h6wb8n_tcFormInstanceOperationsIntfRemoteImpl.setProcessFormDatax(tcFormInstanceOperationsIntfEJB_h6wb8n_tcFormInstanceOperationsIntfRemoteImpl.java:992)
    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 weblogic.ejb.container.internal.RemoteBusinessIntfProxy.invoke(RemoteBusinessIntfProxy.java:84)
    at $Proxy179.setProcessFormDatax(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 org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
    at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:198)
    at $Proxy382.setProcessFormDatax(Unknown Source)
    at Thor.API.Operations.tcFormInstanceOperationsIntfDelegate.setProcessFormData(Unknown Source)
    at com.thortech.xl.webclient.actions.DirectProvisionUserAction.handleVerifyProcessData(DirectProvisionUserAction.java:2072)

  • Error when using API.DataWindow.Utilities.mShellAndWait: File not found

    I am trying to run a simple command using API.DataWindow.Utilities.mShellAndWait, however I am experiencing the following error in FDM web. Strangely, I do not see the same error when the command is run from FDM Workbench:
    Error: File not found
    At Line: ###
    The command is as follows:
    Dim strCMD
    strCMD = "ECHO %DATE% %TIME% >> \\<servername>\<folder1>\<folder2>\File.Log"
    API.DataWindow.Utilities.mShellAndWait strCMD, 0
    This command works fine when run directly from the command line. I am using a UNC path so thought this would have worked. Can anyone please suggest how I can resolve this? I have also tried the following and this results in a similar error:
    Dim strCMD
    strCMD = "ECHO %DATE% %TIME% >> \\<servername>\<folder1>\<folder2>\File.Log"
    Set WshShell = CreateObject("WScript.Shell")
    Set WshShellExec = WshShell.Exec(strCMD)
    Error: The system cannot find the file specified.

    I would expect the issue is due to user access priviledges.
    When you run it through Workbench, the shell and wait is using your (logged on user's) credentials.
    When it operates through the web stie, it is using the service account credentials.
    If the service account does not have permissions, that could explain the 'file not found', though I would expect an access is denied error.
    $.02

  • Projects error out when loading more then 1500 projects, while using api

    Hello,
    I am haivng problem while loading more then 1500 projects, when using api, PA_PROJECT_PUB.CREATE_PROJECT.
    We are on 12.1.3.
    It throws error message ORA-6502 pl/sql numberic error.
    I have changed PA:Debug Mode to No at Resp level also
    FND:Debug Mode to No
    But still encountering same problem. Appreciate any help.
    Regards,
    Sanjay

    I was using a custom Application, which had a id other then 275 (which belongs to Oracle projects)

  • Error in creating Employee using API

    Hi , i am not able to send the data to base table using the below mentioned code for employee using API:
    --Declaration of Variables
    DECLARE
    --l_person_type_id integer;
    l_per_object_version_number number;
    l_asg_object_version_number number;
    l_person_id number;
    l_assignment_id number;
    l_per_effective_start_date date;
    l_per_effective_end_date date;
    l_full_name varchar2(60);
    l_per_comment_id number;
    l_assignment_sequence number;
    l_assignment_number varchar2(30);
    l_name_combination_warning boolean;
    l_assign_payroll_warning boolean;
    l_emp_number varchar2(100);
    v_ogi number;
    v_bgi varchar2(100);
    CURSOR g_valid_emp_cur
    IS
    SELECT *
    FROM xyl_conv_employee_stg
    WHERE error_flag = 'V';
    Begin
    --select business_group_id,organization_id  into v_bgi,v_ogi from hr_operating_units h where h. name=oraganization_name AND TRUNC (NVL (date_to, SYSDATE + 1)) > TRUNC (SYSDATE);
    for valid_rec in g_valid_emp_cur
    loop
    select h.business_group_id,h.organization_id into v_bgi,v_ogi from hr_operating_units h where h.name='Vision Sweden' AND TRUNC (NVL (date_to, SYSDATE + 1)) > TRUNC (SYSDATE);
    -- l_emp_number := valid_rec.employee_number;
    dbms_output.put_line('Business Group Id' || v_bgi);
    begin
    hr_employee_api.create_employee
    (p_validate => false
    ,p_hire_date => to_date(valid_rec.hire_date, 'dd/mon/yyyy')
    ,p_business_group_id => v_bgi
    ,p_last_name => valid_rec.last_name
    ,p_sex => valid_rec.sex
    ,p_date_of_birth => to_date(valid_rec.date_of_birth,'dd/mon/yyyy')
    ,p_employee_number => l_emp_number
    ,p_first_name => valid_rec.first_name
    ,p_nationality => null
    -- p_person_type_id => l_person_type_id
    ,p_person_id => l_person_id
    ,p_assignment_id => l_assignment_id
    ,p_per_object_version_number => l_per_object_version_number
    ,p_asg_object_version_number => l_asg_object_version_number
    ,p_per_effective_start_date => l_per_effective_start_date
    ,p_per_effective_end_date => l_per_effective_end_date
    ,p_full_name => l_full_name
    ,p_per_comment_id => l_per_comment_id
    ,p_assignment_sequence => l_assignment_sequence
    ,p_assignment_number => l_assignment_number
    ,p_name_combination_warning => l_name_combination_warning
    ,p_assign_payroll_warning => l_assign_payroll_warning
    commit;
    EXCEPTION
    WHEN OTHERS THEN
    ROLLBACK;
    dbms_output.put_line(SQLERRM);
    end;
    end loop;
    end;
    SHOW ERR;
    It says enter a person number. Any help would be appreciated.
    Edited by: user8984055 on Feb 9, 2013 4:25 AM

    Hi,
    When you are doing the initial data migration at that stage you should set up the employee numbering and other numbering mechanism to manual. The reason of doing so is that when you are doing migration at that point you have the employee numbers with you for existing employees.
    Once you data migration is done then you have to go to BG information and update the mechanism to Automatic. Also, if you numbering mechanism is automatic and you are not able to change to manual or vice-verse in the BG definition then use will have to use the concurrent program "Change Employee number mechanism". You will have to make the decision of changing from one type to another in a proper way.
    Please find below some related articles on metalink for your reference
    How to Change Employee Numbering from Manual to Automatic?     (Doc ID 292257.1)
    Is it Possible to Update Generate Employee Number Method From Automatic to Manual?     (Doc ID 393827.1)
    Unable to Switch From Auto to Manual for Employee Number Generation in Shared Hr     (Doc ID 452044.1)
    How to control automatic employee numbering?     (Doc ID 473065.1)
    Need To Change The Employee Numbering From Automatic To Manual     (Doc ID 291634.1)
    Hope this helps.
    Thanks,
    Sanjay

  • AP Payment Upload Using API or Interface

    Hi ,
    I had requirement to upload the AP payment information using API or Interface. I have the below code. But is showing some "Unexpected" error.
    declare
    p_num_printed_docs NUMBER;
    p_payment_id NUMBER;
    p_paper_doc_num NUMBER;
    p_pmt_ref_num NUMBER;
    p_return_status VARCHAR2(200);
    p_error_ids_tab IBY_DISBURSE_SINGLE_PMT_PKG.trxnErrorIdsTab;
    p_msg_count NUMBER;
    p_msg_data VARCHAR2(200);
    begin
    MO_GLOBAL.SET_POLICY_CONTEXT('S',84); --- Apps intialize
    fnd_global.apps_initialize(1823,20639,200); --- Apps intialize
    IBY_DISBURSE_SINGLE_PMT_PKG.SUBMIT_SINGLE_PAYMENT(
    p_api_version => 1.0,
    p_init_msg_list => fnd_api.g_false,
    p_calling_app_id => 200,
    p_calling_app_payreq_cd => '13011',
    p_is_manual_payment_flag => 'Y',
    p_payment_function => 'PAYABLES_DISB',
    p_internal_bank_account_id => 10000, -----12001,
    p_pay_process_profile_id => 161,
    p_payment_method_cd => 'CLEARING',
    p_legal_entity_id => 23324,
    p_organization_id => 84,
    p_organization_type => '',
    p_payment_date => sysdate,
    p_payment_amount => 111,
    p_payment_currency => 'USD',
    p_payee_party_id => 91678,
    p_payee_party_site_id => 45272,
    p_supplier_site_id => '',
    p_payee_bank_account_id => '',
    p_override_pmt_complete_pt => 'N',
    p_bill_payable_flag => 'N',
    p_anticipated_value_date => '',
    P_MATURITY_DATE => '',
    p_payment_document_id => 1,
    p_paper_document_number => '',
    p_printer_name => '',
    p_print_immediate_flag => '',
    p_transmit_immediate_flag => '',
    x_num_printed_docs => p_num_printed_docs,
    x_payment_id => p_payment_id,
    x_paper_doc_num => p_paper_doc_num,
    x_pmt_ref_num => p_pmt_ref_num,
    x_return_status => p_return_status,
    x_error_ids_tab => p_error_ids_tab,
    x_msg_count => p_msg_count,
    x_msg_data => p_msg_data
    commit;
    DBMS_OUTPUT.put_line ( p_return_status || '---''---' || p_msg_data || '--''--' || p_msg_count );
    IF p_msg_count = 1 THEN
    DBMS_OUTPUT.put_line ( p_return_status || '---''---' || p_msg_data || '--''--' || p_msg_count );
    ELSIF p_msg_count > 1 THEN
    FOR i IN 1..p_msg_count LOOP
    DBMS_OUTPUT.put_line ( i||'. ' || fnd_msg_pub.get (p_encoded => fnd_api.g_false) );
    END LOOP;
    ELSE
    DBMS_OUTPUT.put_line (p_return_status);
    END IF;
    end;
    If anyone knows the solution please respond quickly. This is quite urgent requirement. If I am not using right API then please suggest as well. This requirement for Oracle Apps R12
    Regards,
    Prakash

    Hi,
    Can you please advise if you had a response for your message.
    Regards,
    Sunil

  • Trying to create Organization in OIM 11g R2 using API

    Hi All,
    I am trying to create Organization in OIM 11g R2 using API's. I able to create a organization with attributes Organization Name and Organization Customer Type but when i am trying to add Parent Organization Name it is throwing me the following error
    Caused by: oracle.iam.platform.entitymgr.UnknownAttributeException: Organization : [Parent Organization Name]
    any help in this regard will be helpful....
    Thanks

    Yes i do have the org with act_key 27
    I have done that changes...still it is throwing the same error
    Exception in thread "main" oracle.iam.identity.exception.OrganizationCreateException: IAM-3056148:act_createby is a System Attribute and cannot be set through API.:act_createby
         at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:237)
         at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:348)
         at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:259)
         at oracle.iam.identity.orgmgmt.api.OrganizationManager_874ar_OrganizationManagerRemoteImpl_1036_WLStub.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 weblogic.ejb.container.internal.RemoteBusinessIntfProxy.invoke(RemoteBusinessIntfProxy.java:85)
         at $Proxy2.createx(Unknown Source)
         at oracle.iam.identity.orgmgmt.api.OrganizationManagerDelegate.create(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 Thor.API.Base.SecurityInvocationHandler$1.run(SecurityInvocationHandler.java:68)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.security.Security.runAs(Security.java:41)
         at Thor.API.Security.LoginHandler.weblogicLoginSession.runAs(weblogicLoginSession.java:52)
         at Thor.API.Base.SecurityInvocationHandler.invoke(SecurityInvocationHandler.java:79)
         at $Proxy3.create(Unknown Source)
         at oracle.iam.ui.custom.Class1.main(Class1.java:108)
    Caused by: oracle.iam.identity.exception.OrganizationCreateException: IAM-3056148:act_createby is a System Attribute and cannot be set through API.:act_createby
         at oracle.iam.identity.orgmgmt.impl.OrganizationManagerImpl.create(OrganizationManagerImpl.java:318)
         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 org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
         at oracle.iam.platform.utils.DMSMethodInterceptor.invoke(DMSMethodInterceptor.java:25)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
         at $Proxy333.create(Unknown Source)
         at oracle.iam.identity.orgmgmt.api.OrganizationManagerEJB.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.oracle.pitchfork.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:34)
         at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
         at com.oracle.pitchfork.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:42)
         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)
         at $Proxy331.createx(Unknown Source)
         at oracle.iam.identity.orgmgmt.api.OrganizationManager_874ar_OrganizationManagerRemoteImpl.__WL_invoke(Unknown Source)
         at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:40)
         at oracle.iam.identity.orgmgmt.api.OrganizationManager_874ar_OrganizationManagerRemoteImpl.createx(Unknown Source)
         at oracle.iam.identity.orgmgmt.api.OrganizationManager_874ar_OrganizationManagerRemoteImpl_WLSkel.invoke(Unknown Source)
         at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:667)
         at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:230)
         at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:522)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)
         at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:518)
         at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
    Caused by: oracle.iam.platform.kernel.ValidationFailedException: IAM-3056148:act_createby is a System Attribute and cannot be set through API.:act_createby
         at oracle.iam.identity.usermgmt.utils.UserManagerUtils.createValidationFailedException(UserManagerUtils.java:337)
         at oracle.iam.identity.usermgmt.utils.UserManagerUtils.createValidationFailedException(UserManagerUtils.java:372)
         at oracle.iam.identity.utils.Utils.checkAllowedAttributes(Utils.java:2523)
         at oracle.iam.identity.orgmgmt.impl.handlers.create.CreateOrganizationValidationHandler.validate(CreateOrganizationValidationHandler.java:102)
         at oracle.iam.platform.kernel.impl.OrchProcessData.validate(OrchProcessData.java:258)
         at oracle.iam.platform.kernel.impl.OrchProcessData.runValidationEvents(OrchProcessData.java:203)
         at oracle.iam.platform.kernel.impl.OrchestrationEngineImpl.validate(OrchestrationEngineImpl.java:699)
         at oracle.iam.platform.kernel.impl.OrchestrationEngineImpl.process(OrchestrationEngineImpl.java:547)
         at oracle.iam.platform.kernel.impl.OrchestrationEngineImpl.orchestrate(OrchestrationEngineImpl.java:485)
         at oracle.iam.platform.kernel.impl.OrchestrationEngineImpl.orchestrate(OrchestrationEngineImpl.java:403)
         at sun.reflect.GeneratedMethodAccessor1171.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
         at oracle.iam.platform.utils.DMSMethodInterceptor.invoke(DMSMethodInterceptor.java:25)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
         at $Proxy251.orchestrate(Unknown Source)
         at oracle.iam.identity.orgmgmt.impl.OrganizationManagerImpl.create(OrganizationManagerImpl.java:306)
         ... 46 more

  • How to obtain Role name in OIM 11g using API's

    Hello,
    I have a scenario in which I create Role/Group in OIM 11g & it gets provisioned in AD [=works fine] & other part is when i delete role in OIM 11g then it should
    get deleted from AD.I have written postprocess event handler to achieve this.
    In role creation part i get all parameters using "orchestration.getParameters();" , but when i delete role then "orchestration.getParameters();" is empty,so i am
    not able to get role name.
    Is there a way to get role name while deleting roles using API ?
    Thanks,
    Rahul Shah

    Hi Raghav,
    Following is my code :
    tcRODetails = orgOpInterface.getObjects(organizationKey);
    for(int i = 0;i < tcRODetails.getRowCount();i++){
    tcRODetails.goToRow(i);
    // resourceName=AD Group
    if(resourceName.equalsIgnoreCase(tcRODetails.getStringValue("Objects.Name"))&&
    tcRODetails.getStringValue("Objects.Object Status.Status").equalsIgnoreCase("Provisioned")||
    tcRODetails.getStringValue("Objects.Object Status.Status").equalsIgnoreCase("Enabled")) {
    System.out.println("<<<FOUND>>>");
    processKey = tcRODetails.getLongValue("Process Instance.Key");
    provisionObjectKey = tcRODetails.getLongValue("Objects.Key");
    tcProcessSet = oimFormUtility.getProcessFormData(processKey);
    for(int j=0;j<tcProcessSet.getRowCount();j++){
    tcProcessSet.goToRow(j);
    if(grpName.equalsIgnoreCase(tcProcessSet.getStringValue("UD_ADGRP_NAME"))){
    System.out.println("MATCH FOUND!!!!!");
    orgOpInterface.removeObjectAllowed(organizationKey,provisionObjectKey);
    break;
    & i get following error :
    <Mar 22, 2012 1:54:43 PM IST> <Error> <XELLERATE.APIS> <BEA-000000> <Class/Method: tcOrganizationOperationsBean/removeObjectAllowed encounter some problems: Object with key=7 is not already set as an allowed object for Organization with key=1>
    Thanks
    Rahul Shah

  • Received HTTP response code 500 : Internal Server Error using connection Fi

    Hi everybody,
    I have configured a file-webservice-file without BPM scenario...as explained by Bhavesh in the following thread:
    File - RFC - File without a BPM - Possible from SP 19.
    I have used a soap adapter (for webservice) instead of rfc .My input file sends the date as request message and gets the sales order details from the webservice and then creates a file at my sender side.
    I monitored the channels in the Runtime work bench and the error is in the sender ftp channel.The other 2 channel status is "not used" in RWB.
    1 sender ftp channel
    1 receiver soap channel
    1 receiver ftp channel.
    2009-12-16 15:02:00 Information Send binary file "b.xml" from ftp server "10.58.201.122:/", size 194 bytes with QoS EO
    2009-12-16 15:02:00 Information MP: entering1
    2009-12-16 15:02:00 Information MP: processing local module localejbs/AF_Modules/RequestResponseBean
    2009-12-16 15:02:00 Information RRB: entering RequestResponseBean
    2009-12-16 15:02:00 Information RRB: suspending the transaction
    2009-12-16 15:02:00 Information RRB: passing through ...
    2009-12-16 15:02:00 Information RRB: leaving RequestResponseBean
    2009-12-16 15:02:00 Information MP: processing local module localejbs/CallSapAdapter
    2009-12-16 15:02:00 Information The application tries to send an XI message synchronously using connection File_http://sap.com/xi/XI/System.
    2009-12-16 15:02:00 Information Trying to put the message into the call queue.
    2009-12-16 15:02:00 Information Message successfully put into the queue.
    2009-12-16 15:02:00 Information The message was successfully retrieved from the call queue.
    2009-12-16 15:02:00 Information The message status was set to DLNG.
    2009-12-16 15:02:02 Error The message was successfully transmitted to endpoint com.sap.engine.interfaces.messaging.api.exception.MessagingException: Received HTTP response code 500 : Internal Server Error using connection File_http://sap.com/xi/XI/System.
    2009-12-16 15:02:02 Error The message status was set to FAIL.
    Please help.
    thanks a lot
    Ramya

    Hi Suraj,
    You are right.The webservice is not invoked.I see the same error in the sender channel and the receiver soap channel status is "never used".
    2009-12-16 15:52:25 Information Send binary file  "b.xml" from ftp server "10.58.201.122:/", size 194 bytes with QoS BE
    2009-12-16 15:52:25 Information MP: entering1
    2009-12-16 15:52:25 Information MP: processing local module localejbs/CallSapAdapter
    2009-12-16 15:52:25 Information The application tries to send an XI message synchronously using connection File_http://sap.com/xi/XI/System.
    2009-12-16 15:52:25 Information Trying to put the message into the call queue.
    2009-12-16 15:52:25 Information Message successfully put into the queue.
    2009-12-16 15:52:25 Information The message was successfully retrieved from the call queue.
    2009-12-16 15:52:25 Information The message status was set to DLNG.
    2009-12-16 15:52:27 Error The message was successfully transmitted to endpoint com.sap.engine.interfaces.messaging.api.exception.MessagingException: Received HTTP response code 500 : Internal Server Error using connection File_http://sap.com/xi/XI/System.
    2009-12-16 15:52:27 Error The message status was set to FAIL.
    what can I do about this?
    thanks,
    Ramya

  • Freight Charges at Header Level using API oe_order_pub

    Hello,
    I am trying to process Header Level Freight Charges using oe_order_pub.process_order api. Please advice me as it is not entering charges. Here is my code. Thanks for your time and appreicate your help.
    ====
    declare
    l_header_rec Oe_Order_Pub.header_rec_type;
    l_header_adj oe_order_pub.Header_Adj_Rec_Type;
    l_header_scredit_tbl Oe_Order_Pub.header_scredit_tbl_type;
    l_header_adj_tbl Oe_Order_Pub.header_adj_val_tbl_type;
    l_action_request_tbl Oe_Order_Pub.request_tbl_type;
    l_line_tbl Oe_Order_Pub.line_tbl_type;
    l_line_adj_tbl Oe_Order_Pub.line_adj_tbl_type;
    l_line_scredit_tbl Oe_Order_Pub.line_scredit_rec_type;
    /*Out Parameters for Order API*/
    l_header_rec_out Oe_Order_Pub.header_rec_type;
    l_header_val_rec_out Oe_Order_Pub.header_val_rec_type;
    l_header_adj_tbl_out Oe_Order_Pub.header_adj_tbl_type;
    l_header_adj_val_tbl_out Oe_Order_Pub.header_adj_val_tbl_type;
    l_header_price_att_tbl_out Oe_Order_Pub.header_price_att_tbl_type;
    l_header_adj_att_tbl_out Oe_Order_Pub.header_adj_att_tbl_type;
    l_header_adj_assoc_tbl_out Oe_Order_Pub.header_adj_assoc_tbl_type;
    l_header_scredit_tbl_out Oe_Order_Pub.header_scredit_tbl_type;
    l_header_scredit_val_tbl_out Oe_Order_Pub.header_scredit_val_tbl_type;
    l_line_tbl_out Oe_Order_Pub.line_tbl_type;
    l_line_val_tbl_out Oe_Order_Pub.line_val_tbl_type;
    l_line_adj_tbl_out Oe_Order_Pub.line_adj_tbl_type;
    l_line_adj_val_tbl_out Oe_Order_Pub.line_adj_val_tbl_type;
    l_line_price_att_tbl_out Oe_Order_Pub.line_price_att_tbl_type;
    l_line_adj_att_tbl_out Oe_Order_Pub.line_adj_att_tbl_type;
    l_line_adj_assoc_tbl_out Oe_Order_Pub.line_adj_assoc_tbl_type;
    l_line_scredit_tbl_out Oe_Order_Pub.line_scredit_tbl_type;
    l_line_scredit_val_tbl_out Oe_Order_Pub.line_scredit_val_tbl_type;
    l_lot_serial_tbl_out Oe_Order_Pub.lot_serial_tbl_type;
    l_lot_serial_val_tbl_out Oe_Order_Pub.lot_serial_val_tbl_type;
    l_action_request_tbl_out Oe_Order_Pub.request_tbl_type;
    /*Local Variables*/
    l_ret_stat VARCHAR2 (1);
    l_msg_cnt NUMBER;
    l_msg_data VARCHAR2 (2000);
    x_return_status VARCHAR2 (1) := '';
    l_order_type VARCHAR2(80);
    l_order_type_id NUMBER;
    l_accounting_rule_id NUMBER;
    l_invoicing_rule_id NUMBER;
    l_price_list_id NUMBER;
    l_header_id NUMBER;
    l_customer_id NUMBER;
    l_order_number NUMBER;
    l_line_xml XMLTYPE;
    icount NUMBER;
    l_item_id NUMBER;
    l_count NUMBER;
    p_status varchar2(10);
    p_header_id number;
    p_error varchar2(1000);
    l_created_by number:=9930;
    BEGIN
    DBMS_APPLICATION_INFO.set_client_info ('104');
    Fnd_Global.apps_initialize (9930,50257,660);
    ---Initialise In Parameters
    l_header_rec := Oe_Order_Pub.g_miss_header_rec;
    l_action_request_tbl (1) := Oe_Order_Pub.g_miss_request_rec;
    l_line_tbl (1) := Oe_Order_Pub.g_miss_line_rec;
    /*required Fields for Header Record*/
    l_header_rec.orig_sys_document_ref :=8089;
    l_header_rec.order_type_id := 1245;
    l_header_rec.sold_to_org_id := 16273647;
    l_header_rec.order_number := 8094; -- Currenlty commented, eventuall we need to use this as this needs be to unique.
    l_header_rec.attribute1 := 8088; -- Currenlty capturing Order Number in ATT1
    l_header_rec.price_list_id := 150022; -- l_price_list_id;
    l_header_rec.payment_term_id := 1040;
    l_header_rec.operation := Oe_Globals.g_opr_create; --'CREATE';
    l_header_rec.flow_status_code := 'ENTERED';
    --l_header_adj  := Oe_Order_Pub.G_MISS_HEADER_ADJ_TBL;
    l_header_adj.header_id := 9584924;
    l_header_adj.automatic_flag :='N';
    l_header_adj.list_header_id :=154010;
    l_header_adj.list_line_id :=150071;
    l_header_adj.list_line_type_code :='FREIGHT_CHARGE';
    l_header_adj.change_reason_code :='MANUAL';
    l_header_adj.change_reason_text :='TEST';
    l_header_adj.updated_flag :='Y';
    l_header_adj.applied_flag :='Y';
    l_header_adj.operand :=10;
    l_header_adj.arithmetic_operator:='LUMPSUMP';
    l_header_adj.charge_type_code :='FREIGHT';
    l_header_adj.modifier_level_code :='ORDER';
    icount :=1;
    -- FOR icount IN 1 .. l_line_tbl.COUNT LOOP
    ---Initialising Line table records
    l_line_tbl (1) := Oe_Order_Pub.g_miss_line_rec;
    /*required Fields for Line Record*/
    l_line_tbl (icount).inventory_item_id := 71161;
    l_line_tbl (icount).operation := Oe_Globals.g_opr_create;
    l_line_tbl (icount).ordered_quantity := 3;
    l_line_tbl (icount).unit_selling_price := 5;
    l_line_tbl (icount).unit_list_price :=5;
    l_line_tbl (icount).calculate_price_flag :='P';
    ---Reset message
    Oe_Msg_Pub.initialize;
    ---Call API to Create Sales order with 2 lines in Entered Status
    --dbms_output.put_line(l_header_rec.order_number||'-'||l_order_number);
    apps.Oe_Order_Pub.process_order
    (p_api_version_number => 1.0
    ,p_header_rec => l_header_rec
    ,p_line_tbl => l_line_tbl
    ,p_action_request_tbl => l_action_request_tbl
    ,x_header_rec => l_header_rec_out
    ,x_header_val_rec => l_header_val_rec_out
    ,x_header_adj_tbl => l_header_adj_tbl_out
    ,x_header_adj_val_tbl => l_header_adj_val_tbl_out
    ,x_header_price_att_tbl => l_header_price_att_tbl_out
    ,x_header_adj_att_tbl => l_header_adj_att_tbl_out
    ,x_header_adj_assoc_tbl => l_header_adj_assoc_tbl_out
    ,x_header_scredit_tbl => l_header_scredit_tbl_out
    ,x_header_scredit_val_tbl => l_header_scredit_val_tbl_out
    ,x_line_tbl => l_line_tbl_out
    ,x_line_val_tbl => l_line_val_tbl_out
    ,x_line_adj_tbl => l_line_adj_tbl_out
    ,x_line_adj_val_tbl => l_line_adj_val_tbl_out
    ,x_line_price_att_tbl => l_line_price_att_tbl_out
    ,x_line_adj_att_tbl => l_line_adj_att_tbl_out
    ,x_line_adj_assoc_tbl => l_line_adj_assoc_tbl_out
    ,x_line_scredit_tbl => l_line_scredit_tbl_out
    ,x_line_scredit_val_tbl => l_line_scredit_val_tbl_out
    ,x_lot_serial_tbl => l_lot_serial_tbl_out
    ,x_lot_serial_val_tbl => l_lot_serial_val_tbl_out
    ,x_action_request_tbl => l_action_request_tbl_out
    ,x_return_status => l_ret_stat
    ,x_msg_count => l_msg_cnt
    ,x_msg_data => l_msg_data
    -- COMMIT;
    DBMS_OUTPUT.PUT_LINE ('Return Status is ' || l_ret_stat);
    DBMS_OUTPUT.PUT_LINE ( 'Order Number in ARB Org is '
    || l_header_rec_out.order_number||'-'||
    l_header_rec_out.header_id
    p_status := l_ret_stat;
    p_header_id := l_header_rec_out.header_id;
    -- p_error := ltrim(rtrim(l_msg_data));
    Xx_Xmldb_Pkg.xx_insert_errors
    ('With or w/o Error After API'
    ,p_error
    ,p_header_id
    ,p_status
    ,SYSDATE
    ,l_created_by
    /*Check Errors */
    IF l_ret_stat <> 'S' THEN
    p_status :='FAILURE';
    IF l_msg_cnt > 0
    THEN
    FOR i IN 1 .. l_msg_cnt
    LOOP
    l_msg_data := Oe_Msg_Pub.get (p_msg_index => i
    ,p_encoded => 'F');
    -- p_error := ltrim(rtrim(l_msg_data));
    DBMS_OUTPUT.PUT_LINE ('Errors ...' || l_msg_data);
    Xx_Xmldb_Pkg.xx_insert_errors
    ('Error After API'
    ,p_error
    ,p_header_id
    ,p_status
    ,SYSDATE
    ,l_created_by
    END LOOP;
    END IF;
    END IF;
    IF l_ret_stat = Fnd_Api.g_ret_sts_success
    THEN
    l_header_rec := Oe_Order_Pub.g_miss_header_rec;
    l_action_request_tbl (1) := Oe_Order_Pub.g_miss_request_rec;
    l_line_tbl (1) := Oe_Order_Pub.g_miss_line_rec;
    ---Book Order
    l_action_request_tbl (1).request_type := Oe_Globals.g_book_order;
    l_action_request_tbl (1).entity_code := Oe_Globals.g_entity_header;
    l_action_request_tbl (1).entity_id := l_header_rec_out.header_id;
    ---Book the order
    /* Oe_Msg_Pub.initialize;
    ---API Call to Book the Order
    Oe_Order_Book_Util.complete_book_eligible
    (1.0
    ,Fnd_Api.g_false
    ,l_header_rec_out.header_id
    ,l_ret_stat
    ,l_msg_cnt
    ,l_msg_data
    -- COMMIT;
    IF l_ret_stat <> 'S' THEN
    p_status :='FAILURE';
    IF l_msg_cnt > 0
    THEN
    FOR i IN 1 .. l_msg_cnt
    LOOP
    l_msg_data :=
    Oe_Msg_Pub.get (p_msg_index => i
    ,p_encoded => 'F');
    DBMS_OUTPUT.PUT_LINE (l_msg_data);
    Xx_Xmldb_Pkg.xx_insert_errors ('Load XML Order Data, After api error .'
    ,l_msg_data
    ,null
    ,NULL
    ,SYSDATE
    ,1124
    END LOOP;
    END IF;
    END IF;
    IF l_ret_stat = Fnd_Api.g_ret_sts_success
    THEN
    x_return_status := l_action_request_tbl (1).return_status;
    END IF;
    ELSE
    DBMS_OUTPUT.PUT_LINE ('Failure');
    p_status :='FAILURE';
    END IF;
    end;
    /

    Hi,
    Can you pls try by passing this parameter value too.
    l_header_adj.adjusted_amount := 5;
    Thanks,
    Praveen

  • Access KM using API as predefined user

    Hello, dear experts!
    Currently I am going to use KM as file storage for my application. I want to prevent direct access to KM content for all users and allow them to upload and download files only using my application.
    The problem is:
    I use not context of current user but some user found in UME.
    IUser user = UMFactory.getUserFactory().getUserByLogonID("Administrator");
    com.sapportals.portal.security.usermanagement.IUser ep5User = portalUserFactory.getEP5User(user);
    context = new ResourceContext(ep5User);
    When I try to operate KM (for instance create new folder) I get error: "User <Administrator> is not authenticated"
    But user "Administrator" has all rights to access KM.
    Is it possible to access KM using API as different user? Or is there another way to solve the problem?
    Best regards,
    Anton.

    Hi, Praveen!
    Thank you for your answer. Your code works fine!
    But when I created my own service user "service_user" under Content Management  -> Utilities -> System Principals I cannot get resource context even after restarting servlet engine.
    I get an exception java.security.PrivilegedActionException: com.sapportals.wcm.repository.ResourceException: User management exception: Could not get service user "service_user".
    This user has the same permissions as "cmadmin_service".
    Also user with the same name was created in UME.
    May be I should execute some additional administrating task?
    Best regards,
    Anton.

Maybe you are looking for

  • Syncing Bookmarks - None Appearing on iphone

    Hi, I am syncing my iphone with my mac via itunes, and after the sync my bookmarks from my mac don't appear on my iphone. All it says for bookmarks under the info tab in itunes is 'your bookmarks are being synced with your iphone over the air from mo

  • Problem using aol mail in mail osx

    hi, my aunt just switched over to the brand new mac mini and she's using her aol screen name for her email in mail osx but for some reason the only person she can't email is me and I have the MobileMe email adress. She can email people with comcast,

  • Importing Main Folders with Sub-folders

    I am a new Mac user and I am trying to import my photos into iPhoto6.0. I have created main folders with sub-folders (eg. Main Folder = Holiday, Sub-folder = Australia Trip) and would like the sub-folders to appear when I open iPhoto. However, I cann

  • Automator. Safari downloaded file

    Hi everybody, first of all, thank you for your time. I would like to use automator to do the following action 1/ When I am on safari visiting 9gag, sometime I download some picture or .gif because they are good. 2/ I would like automator to transfer

  • Can't dial out a specific 800 number

    hello, we have ucm 7.1.3 and a 2921 as a voice gateway when we try to make calls to a specific toll free number we get a fast busy and if i debug the pri this is the reason code of the disconnect *Aug 16 16:29:56.675: ISDN Se0/2/0:23 Q931: RX <- PROG