hr_employee_api.create_employee: ORA-20001: HR_52994_NON_EXIST_SEG_NAME:

Hello


Requirement: I call the hr_employee_api.create_employee API. I need fill a value in any attribute (specific or Global context).

I've defined attribute11 as FDF - global data item. But while calling the API, I get the error message like

ORA-20001: HR_52994_NON_EXIST_SEG_NAME: N, N, SEGMENT, VALUE, ATTRIBUTE11


Thanks in advance,

Arya

I thing you have to insert at least a record of form (Fron end) and then check the value of the ATTRIBUTE_CATEGORY column in the per_all_people_f, may be you do not pass actegoary attribute correct as required for the FDF.

-Try.

Tags: Oracle Applications

Similar Questions

  • ORA-20001: DateTrack update not allowed for a record that started today

    Hello

    We are working on the package of integration of data for employees in our project and we fail to create the back-end employee by calling hr_employee_api.create_employee.

    When we try to update we have a flag that defines datetrack_update_mode as 'UPDATE' flag 'U' and 'CORRECTION' to report as 'C', we call hr_person_api.update_person to add more details of employee.

    I'm trying to update an old record flagged as 'U' and to the below error

    Error in the API in update employee ORA-20001: DateTrack update not allowed for a record that started today
    Cause: You tried to perform an effective update date of registration which begins the same day.
    Action: Change your mode of DateTrack of correction or to change your date of entry into force.

    But I'm trying to update the record with effective date which does not have sysdate and logically I implement to pass the datetrack_update_mode as "UPDATE" fails with the above error.

    Pointers on this is much appreciated.

    Thanks in advance.

    Kind regards
    Rekha.

    OK, so the effective_start_date of the line you are trying to edit is 21/03/2012

    You specify the parameter p_effective_date in 21/03/2012, i.e. the same day!

    So, you cannot use the track date "UPDATE" mode, as the smallest length of the change of the date of the AMT is 1 day. To do this, like Gillies at in an earlier answer, is to use a date-track of "CORRECTION" mode, or use another date for your p_effective_date parameter if it is appropriate.

    When the error message refers to "todays", means in fact "entry into force you have chosen.

    Hope that clarifies things for you.

    Clive

    Published by: clive_t on April 4, 2012 08:40

  • ORA-20001: PAY_7599_SYS_SUP_DT_OUTDATE when you try to create a new employee

    Hello.

    I hope someone can help. My script below takes the records to a temporary table and load it into ORACLE Financials via several API but on an initial test (using 1 NEW Record), it fails with the error message:

    Employee no.: 00020206
    ORACLE file processing error... ORA-20001: PAY_7599_SYS_SUP_DT_OUTDATE

    Ive tried google, the error message but nothing - can suggest someone either what this may be or shsow me another way to get a more specific reason for the problem?
    /* Formatted on 2009/04/29 11:52 (Formatter Plus v4.8.7) */
    SET serveroutput ON SIZE 1000000 FORMAT WRAPPED
    SET verify OFF
    SET feedback OFF
    
    DECLARE
    -- *********
    -- Debugging/error handling
    -- *********
    -- *********
    -- Work variables
    -- *********
    
       l_employ_start_date        DATE:= TO_DATE ('01-APR-1999', 'DD-MON-YYYY');
       v_ora_loc_code number                     := 0;
       p_emp_number                     VARCHAR2 (14);
       v_rec_cnt                        NUMBER                          := 0;
       insert_flag                      VARCHAR2 (8);
       err_num                          NUMBER;
       err_msg                          VARCHAR2 (150);
       err_line                         VARCHAR2 (350);
       err_seq                          NUMBER                          := 0;
       l_validate                       BOOLEAN                     DEFAULT FALSE;
       l_std_business_group_id          NUMBER                          := '0';
       l_default_code_comb_id           NUMBER                        := '218048';
       l_organization_id                NUMBER                          := '0';
       l_set_of_books_id                NUMBER                          := '1';
       l_job_id                         NUMBER                          := '10';
       l_obj                            NUMBER;
       l_datetrack_update_mode          VARCHAR2 (30)             := 'CORRECTION';
       l_assignment_sequence            NUMBER;
       l_name_combination_warning       BOOLEAN                         := FALSE;
       l_assign_payroll_warning         BOOLEAN                         := FALSE;
       l_org_now_no_manager_warning     BOOLEAN;
       l_other_manager_warning          BOOLEAN;
       l_spp_delete_warning             BOOLEAN;
       l_entries_changed_warning        VARCHAR2 (30);
       l_tax_district_changed_warning   BOOLEAN;
       l_person_id                      NUMBER;
       l_assignment_id                  NUMBER;
       l_assignment_id2           NUMBER;  -- := '28262';
       l_special_ceiling_step_id        NUMBER;
       l_per_effective_end_date         DATE:= TO_DATE ('11-Jul-2049', 'DD-MON-YYYY');
       l_people_group_id                NUMBER;
       l_group_name                     VARCHAR2 (30);
       l_assignment_number              VARCHAR2 (35);
       l_effective_end_date             DATE := TO_DATE ('11-Jul-2049', 'DD-MON-YYYY');
       l_date                           DATE                           := SYSDATE;
       ip_p_address_id                  per_addresses.address_id%TYPE;
       ip_p_object_version_number       NUMBER;
       ip_p_party_id                    per_addresses.party_id%TYPE;
       l_per_object_version_number      NUMBER;
       l_asg_object_version_number      NUMBER;
       l_full_name                      VARCHAR2 (240);
       l_per_comment_id                 NUMBER;
       l_per_effective_start_date       DATE;
       l_concatenated_segments          VARCHAR2 (240);
       l_soft_coding_keyflex_id         NUMBER;
       l_comment_id                     NUMBER;
       l_no_managers_warning            BOOLEAN;
    
    -- ***********************************
    -- Get employee details info from work table
    -- ***********************************
       CURSOR get_employee_details
       IS
          SELECT std_hire_date, std_last_name, std_sex, std_date_of_birth,
                 std_email_address, std_emp_status,
                 LPAD (std_employee_number, 8, '0') std_employee_number,
                 std_first_name, std_marital_status, std_middle_names,
                 std_nationality, std_title, std_national_identifier,
                 std_address_line1, std_address_line2, std_address_line3,
                 std_address_line4, std_post_code, std_telephone_1, std_country,
                 std_region, std_location_id, std_organization_id,
                 std_supervisor_id, std_person_id, std_position_id
            FROM SU_TEMPLOYEE_DETAILS;
    
    -- ***********************************
    -- Get EXISTING employee details info from ORACLE tables
    -- ***********************************
       CURSOR get_existing_employee_details
       IS
    
          SELECT per.person_id, per.business_group_id, per.last_name,
                 per.start_date, per.date_of_birth, per.email_address,
                 per.employee_number, per.first_name, per.marital_status,
                 per.middle_names, per.nationality, per.national_identifier,
                 per.sex, per.title, padd.address_id, padd.primary_flag,
                 padd.address_line1, padd.address_line2, padd.address_line3,
                 padd.town_or_city, padd.postal_code, padd.telephone_number_1, paas.assignment_id,
                 paas.assignment_number, paas.object_version_number, paas.EFFECTIVE_START_DATE,
         paas.job_id, paas.position_id, paas.location_id, paas.organization_id, paas.assignment_type, paas.supervisor_id,
                 paas.default_code_comb_id, paas.set_of_books_id, paas.period_of_service_id
          FROM   per_all_people_f per,
                 per_all_assignments_f paas,
                 per_addresses padd
           WHERE 
         per.person_id = padd.person_id
         --        AND paas.person_id(+) = per.person_id;
            AND paas.person_id(+) = per.person_id;
    
    
    
    -- *****************************************
    -- checks employee details info from PER_ALL_PEOPLE_F table
    -- *****************************************
       CURSOR c_check_employee (p_emp_number VARCHAR2)
       IS
          SELECT per.person_id, per.business_group_id, per.last_name,
                 per.start_date, per.date_of_birth, per.email_address,
                 per.employee_number, per.first_name, per.marital_status,
                 per.middle_names, per.nationality, per.national_identifier,
                 per.sex, per.title, padd.address_id, padd.primary_flag,
                 padd.address_line1, padd.address_line2, padd.address_line3,
                 padd.town_or_city, padd.postal_code, padd.telephone_number_1, paas.assignment_id,
                 paas.assignment_number, paas.object_version_number, paas.EFFECTIVE_START_DATE,
         paas.job_id, paas.position_id, paas.location_id, paas.organization_id, paas.assignment_type, paas.supervisor_id,
                 paas.default_code_comb_id, paas.set_of_books_id, paas.period_of_service_id
          FROM   per_all_people_f per,
                 per_all_assignments_f paas,
                 per_addresses padd
           WHERE per.employee_number = p_emp_number
             AND per.person_id = padd.person_id
             AND paas.person_id(+) = per.person_id;
    
       emp_rec                          c_check_employee%ROWTYPE;
    
    -- ***************************************************
    -- Cursor retrieves latest Object Version Number from per_assignments_f table..
    -- ***************************************************
       CURSOR csr_ovn (cp_person_id IN per_all_people_f.person_id%TYPE)
       IS
          SELECT MAX (paas.object_version_number)
            FROM per_assignments_f paas, per_all_people_f per
           WHERE paas.person_id = per.person_id
             AND per.employee_number = paas.assignment_number
             AND per.person_id = cp_person_id;
    
    
    -- ***************************************************
    -- Cursor to get Oracle_Loc_Code from SU CHRIS vs ORACLE Locations Table into a variable..
    -- ***************************************************
    
    CURSOR csr_ora_loc_code (cp_location_id IN SU_TEMPLOYEE_DETAILS.std_location_id%TYPE) 
     IS
          SELECT sil.ORACLE_LOC_CODE
         FROM SU_TEMPLOYEE_DETAILS std, SU_IEXP_LOCATIONS sil
         WHERE std.STD_LOCATION_ID = sil.CHRIS_LOC_code
         AND std.STD_LOCATION_ID = cp_location_id;
    
    
    BEGIN
    -- ***********************************
    -- Process each record in the work table
    -- ***********************************
       FOR v_emp IN get_employee_details
       LOOP
    -- ************************************
    -- determine whether customer already exists
    -- ************************************
          OPEN c_check_employee (v_emp.std_employee_number);
    
          FETCH c_check_employee
           INTO emp_rec;
    
           l_assignment_id2 := emp_rec.assignment_id;
    
          IF v_emp.std_emp_status = 'N' and c_check_employee%NOTFOUND 
          THEN
             insert_flag := 'I';
             DBMS_OUTPUT.PUT_LINE ('Employee No: ' || v_emp.std_employee_number);
    
          ELSIF v_emp.std_emp_status = 'C'
          THEN
    
           -- if c_check_employee%NOTFOUND then raise no_data_found;
            -- elsif l_assignment_id2 is null then
             
             if l_assignment_id2 is null then
              raise_application_error (-20010, 'Employee No: ' || v_emp.std_employee_number  || ' exists but has no assignment id!');
            end if;
    
               DBMS_OUTPUT.PUT_LINE ('Employee No: ' || v_emp.std_employee_number ||  '  already exists, making changes.. '   );
               insert_flag := 'C';
    
          -- RAISE_APPLICATION_ERROR (-20001,  'Employee No: ' || v_emp.std_employee_number  || '  already exists '    );
           END IF;
    
          CLOSE c_check_employee;
    
    -- ************************************
    -- Obtain the most recent Object Version Number..
    -- ************************************
          OPEN csr_ovn (v_emp.std_person_id);
    
          FETCH csr_ovn
           INTO l_obj;
    
          -- IF csr_ovn%NOTFOUND     THEN        RAISE NO_DATA_FOUND;   END IF;
          CLOSE csr_ovn;
    
    -- ************************************
    -- Open Oracle Location Code cursor 
    -- ************************************
    
    OPEN csr_ora_loc_code(v_emp.std_location_id);  
          FETCH csr_ora_loc_code
           INTO v_ora_loc_code;
          CLOSE csr_ora_loc_code;
    
    
    -- ***********************************
    -- Create new PER_ALL_PEOPLE_F and PER_ADDRESSES record from
    --            info in  table record
    -- ***********************************
          IF insert_flag = 'I'
    
          THEN
    --                      -- Importing Employee Procedure --
    
             Hr_Employee_Api.create_gb_employee
                     (p_validate                       => l_validate,
                      p_hire_date                      => l_employ_start_date,
                      p_business_group_id              => l_std_business_group_id,
                      p_date_of_birth                  => v_emp.std_date_of_birth,
                      p_email_address                  => v_emp.std_email_address,
                      p_first_name                     => v_emp.std_first_name,
                      p_middle_names                   => v_emp.std_middle_names,
                      p_last_name                      => v_emp.std_last_name,
                      p_sex                            => v_emp.std_sex,
                      p_ni_number                      => v_emp.std_national_identifier,
                      p_employee_number                => v_emp.std_employee_number,
                      p_person_id                      => l_person_id,
                      p_title                          => v_emp.std_title,
                      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
                     );
             Hr_Person_Address_Api.create_person_address
                                      (p_validate                     => l_validate,
                        --            p_effective_date               => v_emp.std_hire_date,
                                       p_effective_date              =>  l_employ_start_date,
                                       p_pradd_ovlapval_override      => NULL,
                                       p_validate_county              => NULL,
                                       p_person_id                    => l_person_id,
                                       p_primary_flag                 => 'Y',
                                       p_style                        => 'GB_GLB',
                                       p_date_from                    => SYSDATE,
                                       p_date_to                      => NULL,
                                       p_address_type                 => NULL,
                                       p_comments                     => NULL,
                                       p_address_line1                => v_emp.std_address_line1,
                                       p_address_line2                => v_emp.std_address_line2,
                                       p_address_line3                => v_emp.std_address_line3,
                                       p_town_or_city                 => v_emp.std_address_line4,
                                       p_region_1                     => NULL,
                                       p_region_2                     => NULL,
                                       p_region_3                     => NULL,
                                       p_postal_code                  => v_emp.std_post_code,
                                       p_country                      => v_emp.std_nationality,
                                       p_telephone_number_1           => NULL,
                                       p_telephone_number_2           => NULL,
                                       p_telephone_number_3           => NULL,
                                       p_party_id                     => ip_p_party_id,
                                       p_address_id                   => ip_p_address_id,
                                       p_object_version_number        => l_obj
                                      );
             Hr_Assignment_Api.update_emp_asg
                            (p_validate                    => l_validate,
                             p_effective_date              => SYSDATE,  -- l_date,
                             p_datetrack_update_mode       => l_datetrack_update_mode,
                             p_assignment_id               => l_assignment_id,
                             p_object_version_number       => l_obj,
                             p_supervisor_id               => v_emp.std_supervisor_id,
                             p_default_code_comb_id        => l_default_code_comb_id,
                             p_set_of_books_id             => l_set_of_books_id,
                             p_concatenated_segments       => l_concatenated_segments,
                             --IN/OUT
                             p_soft_coding_keyflex_id      => l_soft_coding_keyflex_id,
                             --IN/OUT
                             p_comment_id                  => l_comment_id,
                             --IN/OUT
                             p_effective_start_date        => l_date,     --IN/OUT
                             p_effective_end_date          => l_effective_end_date,
                             --IN/OUT
                             p_no_managers_warning         => l_no_managers_warning,
                             --IN/OUT
                             p_other_manager_warning       => l_other_manager_warning
                            --IN/OUT
                            );
             Hr_Assignment_Api.update_emp_asg_criteria
                 (p_validate                          => l_validate,
                  p_effective_date                    => SYSDATE,       -- l_date,
                  p_datetrack_update_mode             => l_datetrack_update_mode,
                  p_assignment_id                     => l_assignment_id,
                  p_object_version_number             => l_obj,
                  p_organization_id                   => l_organization_id,
                  p_location_id                       => v_ora_loc_code,
                  p_job_id                            => l_job_id,
                  p_position_id                       => v_emp.std_position_id,
                  p_special_ceiling_step_id           => l_special_ceiling_step_id,
                  p_effective_start_date              => l_date,
                  --per_effective_start_date,
                  p_effective_end_date                => l_effective_end_date,
                  --IN/OUT
                  p_people_group_id                   => l_people_group_id,
                  --IN/OUT
                  p_group_name                        => l_group_name,    --IN/OUT
                  p_org_now_no_manager_warning        => l_org_now_no_manager_warning,
                  --IN/OUT
                  p_other_manager_warning             => l_other_manager_warning,
                  --IN/OUT
                  p_spp_delete_warning                => l_spp_delete_warning,
                  --IN/OUT
                  p_entries_changed_warning           => l_entries_changed_warning,
                  --IN/OUT
                  p_tax_district_changed_warning      => l_tax_district_changed_warning
                 --IN/OUT
                 );
             v_rec_cnt := v_rec_cnt + 1;
             DBMS_OUTPUT.PUT (CHR (10));
             DBMS_OUTPUT.PUT_LINE (   'There were '
                                   || v_rec_cnt
                                   || '  records read in..'
                                  );
    
    -- ***********************************
    -- Updating PER_ALL_PEOPLE_F and PER_ADDRESSES record from
    --            info in  table record
    -- ***********************************
    
       ELSE IF insert_flag = 'C'
          THEN
    
    -- ===================================================
    -- these next 6 lines is for the initial mass update of existing employee records only     
    -- ===================================================
    
    /*IF emp_rec.default_code_comb_id is NULL THEN
         l_default_code_comb_id = 218048;
         END IF;     
         IF emp_rec.job_id is NULL THEN
         l_job_id = 10;
         END IF;      */
    
    -- =========
    -- Section end
    -- =========
    
             Hr_Assignment_Api.update_emp_asg
                            (p_validate                    => l_validate,
                    p_effective_date              => emp_rec.EFFECTIVE_START_DATE,
                             p_datetrack_update_mode       => l_datetrack_update_mode,
                             p_assignment_id               => l_assignment_id2,
                             p_object_version_number       => l_obj,
    
                             p_supervisor_id               => v_emp.std_supervisor_id,
    
                             p_default_code_comb_id        => emp_rec.default_code_comb_id,
                             p_set_of_books_id             => emp_rec.set_of_books_id,
                             p_concatenated_segments       => l_concatenated_segments,
                             --IN/OUT
                             p_soft_coding_keyflex_id      => l_soft_coding_keyflex_id,
                             --IN/OUT
                             p_comment_id                  => l_comment_id,
                             --IN/OUT
                             p_effective_start_date        => l_date,     --IN/OUT
                             p_effective_end_date          => l_effective_end_date,
                             --IN/OUT
                             p_no_managers_warning         => l_no_managers_warning,
                             --IN/OUT
                             p_other_manager_warning       => l_other_manager_warning
                            --IN/OUT
                            );
             Hr_Assignment_Api.update_emp_asg_criteria
                 (p_validate                          => l_validate,
                  p_effective_date                    => emp_rec.EFFECTIVE_START_DATE,
                  p_datetrack_update_mode             => l_datetrack_update_mode,
                  p_assignment_id                     => l_assignment_id2,
                  p_object_version_number             => l_obj,
                  p_organization_id                   => emp_rec.organization_id,
    
                  p_location_id                       => v_ora_loc_code,
    
                  p_job_id                            => emp_rec.job_id,
                  p_position_id                       => emp_rec.position_id,
                  p_special_ceiling_step_id           => l_special_ceiling_step_id,
                  p_effective_start_date              => emp_rec.EFFECTIVE_START_DATE,
                  p_effective_end_date                => l_effective_end_date,
                  --IN/OUT
                  p_people_group_id                   => l_people_group_id,
                  --IN/OUT
                  p_group_name                        => l_group_name,    --IN/OUT
                  p_org_now_no_manager_warning        => l_org_now_no_manager_warning,
                  --IN/OUT
                  p_other_manager_warning             => l_other_manager_warning,
                  --IN/OUT
                  p_spp_delete_warning                => l_spp_delete_warning,
                  --IN/OUT
                  p_entries_changed_warning           => l_entries_changed_warning,
                  --IN/OUT
                  p_tax_district_changed_warning      => l_tax_district_changed_warning
                 --IN/OUT
                 );
             v_rec_cnt := v_rec_cnt + 1;
             DBMS_OUTPUT.PUT (CHR (10));
             DBMS_OUTPUT.PUT_LINE (   'There were '
                                   || v_rec_cnt
                                   || '  records read in..'
                                  );
    
             DBMS_OUTPUT.PUT (CHR (10));
    
    -- ******************************
    -- End of customer related details
    -- ******************************
          END IF;
    
          END IF;
    
       END   LOOP;
    
       COMMIT;
    
    EXCEPTION
    
       WHEN NO_DATA_FOUND 
        THEN
         ROLLBACK;
    
          err_num := TO_CHAR (SQLCODE);
          err_msg := SUBSTR (SQLERRM, 1, 150);
          err_line :=   'ORACLE error occurred processing record.. ' ||  err_msg;
          DBMS_OUTPUT.PUT_LINE (err_line);
    
          INSERT INTO SU_ERROR_LOG  VALUES (err_msg, 'TEMPLOYEE_DTLS.sql', SYSTIMESTAMP);
    
        WHEN OTHERS
       THEN
          ROLLBACK;
    
          err_num := TO_CHAR (SQLCODE);
          err_msg := SUBSTR (SQLERRM, 1, 150);
          err_line :=   'ORACLE error occurred processing record.. ' ||  err_msg;
          DBMS_OUTPUT.PUT_LINE (err_line);
    
          INSERT INTO SU_ERROR_LOG  VALUES (err_msg, 'TEMPLOYEE_DTLS.sql', SYSTIMESTAMP);
    
    END;
    /
    
    EXIT;
    Thank you very much

    Steven

    It seems that the employee supervisor is not active for the duration of the employee record.

    Recording using correct supervisor should solve the problem.

  • ORA-20001: System error: procedure sort_segment_order step 40

    ORA-20001: System error: procedure sort_segment_order step 40

    DECLARE

    lc_employee_number per_all_people_f.employee_number%TYPE; -: = "tan_01";

    ln_person_id per_all_people_f.person_id%TYPE;

    ln_assignment_id per_all_assignments_f.assignment_id%TYPE;

    ln_object_ver_number per_all_assignments_f.object_version_number%TYPE;

    ln_address_id PER_ADDRESSES. ADDRESS_ID % TYPE;

    ln_asg_ovn NUMBER;

    ld_per_effective_start_date per_all_people_f.effective_start_date%TYPE;

    ld_per_effective_end_date per_all_people_f.effective_end_date%TYPE;

    lc_full_name per_all_people_f.full_name%TYPE;

    ln_per_comment_id per_all_people_f.comment_id%TYPE;

    ln_assignment_sequence per_all_assignments_f.assignment_sequence%TYPE;

    lc_assignment_number per_all_assignments_f.assignment_number%TYPE;

    lb_name_combination_warning BOOLEAN;

    lb_assign_payroll_warning BOOLEAN;

    lb_orig_hire_warning BOOLEAN;

    -------------------

    -Assignment

    l_assignment_id NUMBER;

    l_effective_date DATE: = NULL;

    l_supervisor_id NUMBER;

    lb_correction BOOLEAN;

    lb_update BOOLEAN;

    lb_update_override BOOLEAN;

    lb_update_change_insert BOOLEAN;

    lc_dt_ud_mode VARCHAR2 (100): = NULL;

    l_obj_version_num NUMBER;

    l_organization_id NUMBER: = 81;

    l_soft_coding_keyflex_id hr_soft_coding_keyflex.soft_coding_keyflex_id%TYPE;

    l_concatenated_segments VARCHAR2 (2000);

    l_comment_id per_all_assignments_f.comment_id%TYPE;

    l_effective_start_date per_all_assignments_f.effective_start_date%TYPE;

    l_effective_end_date per_all_assignments_f.effective_end_date%TYPE;

    l_no_managers_warning BOOLEAN;

    l_other_manager_warning BOOLEAN;

    ERROR_MESSAGE VARCHAR2 (4000): = NULL;

    current_records NUMBER;

    total_records NUMBER;

    error_records NUMBER;

    l_effective_date_valid NUMBER;

    error_message1 VARCHAR2 (4000): = NULL;

    v_ledger_id gl_ledgers.ledger_id%type;

    v_job_definition_id PER_JOB_DEFINITIONS.job_definition_id%type;

    v_position_definition_id per_position_definitions.position_definition_id%type;

    v_location_id hr_locations_all.location_id%type;

    v_emp_count number: = 0;

    -The Variables of the criteria of update for employees Assgment

    -- -------------------------------------------------------------------------------

    -ln_people_group_id NUMBER: = null;   -This will cause the error ORA-20001: System error: procedure step 40

    ln_people_group_id NUMBER: = hr_api.g_number;   -PEOPLE_GROUP_ID

    end;

    ln_special_ceiling_step_id PER_ALL_ASSIGNMENTS_F.SPECIAL_CEILING_STEP_ID%TYPE;

    lc_group_name VARCHAR2 (30);

    ld_effective_start_date PER_ALL_ASSIGNMENTS_F.EFFECTIVE_START_DATE%TYPE;

    ld_effective_end_date PER_ALL_ASSIGNMENTS_F.EFFECTIVE_END_DATE%TYPE;

    lb_org_now_no_manager_warning BOOLEAN;

    lb_other_manager_warning BOOLEAN;

    lb_spp_delete_warning BOOLEAN;

    lc_entries_changed_warning VARCHAR2 (30);

    Entry: HR_ASSIGNMENT_BK3. UPDATE_EMP_ASG_CRITERIA_B 10

    hr_api.validate_commit_unit 10

    Leave: HR_ASSIGNMENT_BK3. UPDATE_EMP_ASG_CRITERIA_B 20

    Enter hr_kflex_utility set_profiles 5

    hr_kflex_utility set_profiles 10

    hr_kflex_utility set_profiles 20

    hr_kflex_utility set_profiles 30

    hr_kflex_utility set_profiles 40

    hr_kflex_utility set_profiles 50

    Leaving hr_kflex_utility set_profiles 100

    Enter hr_kflex_utility set_session_date 5

    hr_kflex_utility set_session_date 30

    Leaving hr_kflex_utility set_session_date 100

    Inbound: upd_or_sel_keyflex_comb 10

    upd_or_sel_keyflex_comb 20

    Inbound: check_ignore_varray 10

    Seg3 $Sys_Def$                                                         101

    Inbound: ins_or_sel_keyflex_comb 10

    ins_or_sel_keyflex_comb 20

    Inbound: check_ignore_varray 10

    ins_or_sel_keyflex_comb 30

    Inbound: sort_segment_order 10

    sort_segment_order 20

    sort_segment_order 30

    sort_segment_order 40

    ins_or_sel_keyflex_comb 100

    Leaving upd_or_sel_keyflex_comb 140

    -RollBack ORA-20001: System error: sort_segment_order procedure step 40

    Cause: The sort_segment_order procedure created a mistake in step 40.

    Action: Contact your system administrator citing the sort_segment_order procedure and 40 of the step.

    Thank you all,

    I found the solution of adding at least one value in the key flexfield: "Flexfield group of people.

    Kind regards

  • "ORA-20001: OTA_443321_EVT_OFF_INVALID_ACT: in the ota_event_api.create_class API

    Hi all

    I write scripts for an Oracle OLM implementation project. Converting data via the API "ota_event_api.create_class", I get the error "ORA-20001: OTA_443321_EVT_OFF_INVALID_ACT: I have looked for help on the forums, but so far I am unable to get any relevant information. On some sites it says that we should pass a value non-zero to 'p_offering_id '. I do the same thing and passing a value to this parameter but I get the same error.

    The script is can be to find the attached word file.

    Kind regards

    Natacha Amal Khan

    Dear Natasha

    • You must ensure that your class shoud be created under a valid course and offer.
    • Further, use Parent_Offering_Id instead of the Offering_Id parameter.

    Make those changes and try again, Hope it works

    Concerning

    Fasquel

  • ORA-20001: you cannot cancel termination that they did not yet end

    Hi all

    I'm trying to rehire an employee who stopped. This is the API that I use:

    declare

    date of ld_hr_termination_date: =' 31-DEC-4712;

    Start

    APPS.hr_ex_employee_api.reverse_terminate_employee

    (p_validate = > false - Boolean false by default)

    p_person_id = > 1059 - number

    , p_actual_termination_date = > ld_hr_termination_date - ld_actual_termination_date - in date

    , p_clear_details = > "n" - in varchar2

    );

    exception

    while others then

    dbms_output.put_line (' error: ' |) SQLERRM);

    end;


    Error: ORA-20001: you cannot cancel termination that they did not yet end

    I checked in hr.per_all_people_f and the employee is laid off.

    I checked in human resources. PER_PERIODS_OF_SERVICE and the ACTUAL_TERMINATION_DATE corresponding to its expiry date in hr.per_all_people_f.

    I checked in hr.per_all_assignments_f and has an effective end date that corresponds.

    Can you please tell me where I could look at to fix this error.

    Thank you

    Harsha.

    Hello

    You will need to move the effective date of the employee for the p_actual_termination_date parameter and not 31-Dec-4712.

    Thank you

    Mudassir

  • error ORA-20001: in the window of the geolocation

    When to access addresses, in packed geolocation application, I receive the following error message:

    ORA-20001: get_dbms_sql_cursor error ORA-00942: table or view does not exist

    Is this a bug in the application packed?

    I use apex.oracle.com to test this packaged application...

    Also not able to save an area of interest with a polygon

    1 error has occurred

    Hello

    In general, it should work - I have also tested the app on apex.oracle.com.

    First question:

    from your description, it seems that the packaged application installation did not create all or part required correctly tables.

    Can you check (via SQL Workshop) that the tables EBA_SPATIAL_ADDRESSES, EBA_SPATIAL_IMAGES and EBA_SPATIAL_AOI exist...?

    If this is not the case, try to remove and reinstall the application. One reason might be that your workspace quota is already maxed out and who

    There is simply no space left for the required tables...

    Question 2: the steps are:

    1) click the icon 'blue' polygon on the map

    2) click on the points of the polygon you want to draw

    3) click 'Finish' in the lower corner of the map

    (4) specify a name for the 'area of interest '.

    5) click "Save".

    Of course, this also requires the tables to be present...

    Hope this helps

    Best regards

    Carsten-

  • Error ORA-20001 while trying to reset the password of Admin 4.2 Apex

    Hello

    I had to reset my password admin apex and tried to launch as below mentioned the apxchpwd.sql script, but I got an ORA-20001.

    I checked in my console (OEM) the status of the user apex_040200 and status is expired, but not locked...

    Any idea of the reason for the error?

    This is the result I got while running the script:

    Connected to:

    Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 - 64 bit Production

    With partitioning, OLAP, Data Mining and Real Application Testing options

    SQL > connect sys@mars as sysdba

    Enter password: *.

    Connected.

    SQL > @apxchpwd

    Syntax: SET SERVEROUTPUT {ON |} {OFF} [SIZE n]

    [[MAST] {WRA [DETERIORATED] |}] WOR [D_WRAPPED] | TRU [NCATED]}]

    Enter a lower value for the password for the user of the Application ADMIN Express.

    Enter a password for the user ADMIN [] *.

    Modified session.

    .. .the ADMIN password

    declare

    *

    ERROR on line 1:

    ORA-20001: password validation failure

    ORA-06512: at line 33 level

    Hello

    In fact, it seems to be a known issue with Apex 4.2.2 and there is a note in Metalink (support.oracle.com) on this subject:Doc ID 1579712.1

    Although it is not documented while the script asks you a new password, you must keep in mind the following:

    Password is not consistent with the rules of this site password complexity.
    * Password must contain at least one alphabetic character ().
    * Password must contain at least one punctuation character ().
    * Password must contain at least one uppercase alphabetic character.
    * Password must contain at least one alphabetic character tiny.

  • ORA-20001: same or similar user password

    Hi all

    here in my iam from Db 11 g setting user password same as username, but not able to set the error.

    Please help on this:

    SQL > ALTER USER IDENTIFIED BY test test;

    ALTER USER IDENTIFIED BY test test

    *

    ERROR on line 1:

    ORA-28003: password for the specified password check failed

    ORA-20001: same or similar user password

    SQL > select profile resource_name, limit of dba_profiles where resource_type = 'PASSWORD ';

    PROFILE RESOURCE_NAME LIMIT

    ------------------------------ -------------------------------- ----------------------------------------

    PROFIL_UTILISATEUR DEFAULT FAILED_LOGIN_ATTEMPTS

    SERVICE_PROFILE FAILED_LOGIN_ATTEMPTS UNLIMITED

    BY DEFAULT, FAILED_LOGIN_ATTEMPTS 10

    USER_PROFILE DEFAULT PASSWORD_LIFE_TIME

    SERVICE_PROFILE PASSWORD_LIFE_TIME UNLIMITED

    BY DEFAULT, PASSWORD_LIFE_TIME 180

    PROFIL_UTILISATEUR DEFAULT PASSWORD_REUSE_TIME

    SERVICE_PROFILE PASSWORD_REUSE_TIME UNLIMITED

    DEFAULT PASSWORD_REUSE_TIME UNLIMITED

    PROFIL_UTILISATEUR DEFAULT PASSWORD_REUSE_MAX

    SERVICE_PROFILE PASSWORD_REUSE_MAX UNLIMITED

    PROFILE RESOURCE_NAME LIMIT

    ------------------------------ -------------------------------- ----------------------------------------

    DEFAULT PASSWORD_REUSE_MAX UNLIMITED

    USER_PROFILE PASSWORD_VERIFY_FUNCTION VERIFY_FUNCTION

    SERVICE_PROFILE PASSWORD_VERIFY_FUNCTION NULL

    PASSWORD_VERIFY_FUNCTION NULL DEFAULT

    USER_PROFILE DEFAULT PASSWORD_LOCK_TIME

    SERVICE_PROFILE PASSWORD_LOCK_TIME UNLIMITED

    BY DEFAULT, PASSWORD_LOCK_TIME 1

    USER_PROFILE DEFAULT PASSWORD_GRACE_TIME

    SERVICE_PROFILE PASSWORD_GRACE_TIME UNLIMITED

    BY DEFAULT, PASSWORD_GRACE_TIME 7

    Hello

    Check the output of the query below.

    Check the resource_name 'PASSWORD_VERIFY_FUNCTION' value, if it is not null (column LIMIT) then change to null.

    Select the profile resource_name, limit of dba_profiles where resource_type = 'PASSWORD ';

    change the default limit of profile PASSWORD_VERIFY_FUNCTION null;

  • Create_collection_from_query_b; ORA-20104 and ORA-20001

    Hi all

    First of all:

    The APEX Version: Application Express 4.2.1.00.08

    SQL-Developer: Version 3.0.04

    Oracle: Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production

    I have an application process, which is expected to generate a collection. If I run this feature in the apex, a collection will be created, but no data.

    If I run this in the SQL-Developer, the

    As a result:

    ORA-20104: create_collection_from_query_b error: ORA-20001: invalid analysis of schema for the current workspace ID

    ORA-06512: in "APEX_040200.WWV_FLOW_COLLECTION", line 1878

    ORA-06512: in "APEX_040200.WWV_FLOW_COLLECTION", line 1915

    Code:

    [...]

    l_query: = ' select pal.valid_from, pal.valid_till, pa.supplier, Pal.Equipment_Type

    of quotation.purchase_agreement pa, quotation.purchase_agree_line pal

    IF APEX_COLLECTION. COLLECTION_EXISTS (p_collection_name = > c_coll_name)

    THEN APEX_COLLECTION. DELETE_COLLECTION (p_collection_name = > c_coll_name);

    END IF;

    APEX_COLLECTION. () CREATE_COLLECTION_FROM_QUERY_B

    p_collection_name = > c_coll_name,

    p_query = > l_query);

    The select statement is correct. (Already checked)

    Why my error occure?

    Thanks for help

    Hello

    First of all: thanks vinc.

    This error occurse just in the sql developer.

    This error is not important for apex.

    If you see this error message in the sql developer, you should omit the collection and "print" query. [dbms_output.put_line (l_query);]

    You copy the result (select... from... where the...) of the dbms_output and run this. I had really no results.  I had just a space after a variable.

    I got the error

    This problem is now resolved.

  • ORA-20001 FLEX-ID DOES NOT EXIST

    Hi Experts,

    Please experience this problem when you run create api Grade for HCM of Oracle EBS.

    When I run this script below for business group (1759 University of Vision or Vision Corporation 202) data is transferred to the per_grades and per_grade_definitions tables

    But when I run this same script pointing to a group of companies (TEST BG 7891) we created by us - even it gives ORA-20001 FLEX-ID DO NOT EXIST error code

    I have a strong feeling that the creation of our group of companies and the setting up of the rank of Flexfield has a problem, but I can ' t trace the fault, am not an expert EBS

    Please can you please advice if mistaken!

    Thank you

    Kwesi

    SCRIPT BELOW:

    Procedure Create_Grade

    is

    l_Validate Boolean: = FALSE;

    l_Business_Group_id Number (15.2);

    l_Date_From Date;

    l_Sequence Number (15.2);

    l_Grade_id Number (15.2);

    l_Object_Version_Number Number (15.2);

    l_Grade_Definition_id Number (15.2);

    l_Name Varchar2 (100);

    l_OVN Number (15.2): = 1;

    I have several;

    Begin

    For Grad In (Select * from chr_Grades where FULL-TIME IN l_OVN) loop

    Begin

    Apps.hr_grade_api. () Create_Grade

    p_Validate = > l_Validate,

    p_Business_Group_id = > 7891,

    p_Date_From = > to_Date(sysdate,'DD-MM-YYYY'),

    p_Sequence = > 11,

    p_Grade_id = > l_Grade_id,

    p_Object_Version_Number = > l_Object_Version_Number,

    p_Grade_Definition_id = > l_Grade_Definition_id,

    p_Name = > l_Name,.

    p_segment1 = > Grad.Grade_id,

    p_segment2 = > Grad.Grade_Name,

    p_segment3 = > Grad.Grade_Description

    );

    Update chr_Grades Set FULL-TIME = 2

    where Grade_id = Grad.Grade_id;

    End;

    End of loop;

    Commit;

    End Create_Grade;

    Well, I found the solution to my problem and is simply create the segment you want to use in your flexfield without VALUESET ALL IN PASSING.

  • Internal error in the routine mru: ORA-20001

    Hello
    I have a tabular presentation, what ointment to data, works very well. But what update of data following error occurs: error in routine internal mru: ORA-20001: current version of the data in the database has changed since the user has launched the process of update. current checksum.
    Thanks for help e time.

    Happy to read that you have solved the problem

    Please, mark the question as answered

  • Interactive report gives ORA - 20001:error

    Hello

    I am reading a table of SQL Server and displays the output in the interactive report. SQL Server read via database public and connected to the database link Oracle via DG4MSQL. The error I get is:
    ORA-20001: get_dbms_sql_cursor error ORA-02070: SQL SERVER database does not COUNT in this context

    However when I run the same report as usual report it works fine.

    The SQL query behind the report is:
    SELECT * FROM TRANSP_COMP_V;
    The code behind the display is:
    CREATE OR REPLACE VIEW TRANSP_COMP_V AS
    (
    select 
    "Usr_Name",
    "Usr_Handle", 
    "BLoc", 
    "SLC_Hand"
    from ord.Req@sqlserver);
    Where @sqlserver is the link of public database to SQL Server 2008 R2.

    I tried the following:

    (1) used instead the name of each column * and got the same result
    (2) Rebult and respected the view several times. No problem during compilation
    (3) tested and ran the view independently and the SQL query in SQL Studio without any problem

    Is there any restriction on the interactive report during playback of the external data source (such as SQL Server through ODBC)? The error itself is confusing, as I'm not using COUNTY anywhere.

    Thank you very much.


    Using APEX 4.1.1 running in the Oracle Database 11 G R2 (windows x 64) (topic 23)

    It may be different depending on the style of the selected candidates paging - as long as total nbr of lines is not indicated, he might be allowed.
    APEX product managers may be able to describe some internal workings that explain why it does not work for an IR.

    It is one of the best examples out there for the pipeline functions. It's just a feeling - something I'll try, but I have not worked with external sources in a long time.
    http://www.Oracle-Developer.NET/display.php?ID=207

    Scott

  • Form master-detail recording detail does not with ORA-20001

    Hello

    I have a master/detail form, the detail record has a timestamp field that I people using systimestamp via the default, it is a single field of view and everthing records very well. But if I change the format of the timestamp field via the DD-MON-YY HH24 attrubutes column, I get the following error on save

    Internal error in the routine mru: ORA-20001: error in MRU: line = 1, ORA-20001: find the invalid timestamp value, please check the timestamp format.

    Someone knows what's goin?

    Thank you...

    Looks like your display only column is based on the database column.
    If this is the case, you have little control for it in ApplyMRU.
    What you need to do is
    a. keep the TimeStamp column hidden with any mask format
    b. Add the form as a table with the format mask you want to display a column of data not

    In a Word, the DB column is in the proper format as required by the ApplyMRU but you display for users of the truncated version of that.

    See you soon,.

  • ORA-20001: unauthorized access (package for the undefined security group variable).

    I'm creating an application that uses the authentication of the APEX and characteristics (work) registration and forgot password forms (does not work).

    My I forgot the password is public (requires authentication). The user provides the user name and a secret answer, which are validated and then provides the new password. I try to use htmldb_util.reset_pw to reset the password of the user, but it does not work.

    I have a process on the new password page call a PL/SQL anonymous block that looks like this (see below), where username = P16_ITEM1 and P18_ITEM1 = new password.

    BEGIN
    apex_040000.htmldb_util.reset_pw (V ('P16_ITEM1'), V ('P18_ITEM1'));
    END;

    I don't know how to send a message of success/failure of such PL/SQL block to the APEX, but that's a separate issue, I guess.

    In any case, during the trial through SQL Developer as the user with APEX_ADMINISTRATOR_ROLE, I get the following error:

    ORA-20001: unauthorized access (package for the undefined security group variable).
    ORA-06512: at "APEX_040000.WWV_FLOW_FND_USER_API", line 22
    ORA-06512: at "APEX_040000.WWV_FLOW_FND_USER_API", line 1220
    ORA-06512: at "APEX_040000.HTMLDB_UTIL", line 1253
    ORA-06512: at line 8 level

    I've searched previous discussions and tried different suggestions with no luck.

    I'm on Oracle DB 11g XE and APEX 4.x.

    Any help will be appreciated. Thank you

    Alex.

    In any case, during the trial through SQL Developer as the user with APEX_ADMINISTRATOR_ROLE, I get the following error:

    ORA-20001: unauthorized access (package for the undefined security group variable).

    When executing code outside the Apex which depends on the security defined Apex group, perform the following steps before your own code:

    wwv_flow_api.set_security_group_id(apex_util.find_security_group_id('YOUR_SCHEMA_NAME'));
    

    Google "wwv_flow_api.set_security_group_id" for more details, like this blog:

    http://www.easyapex.com/index.php?p=502

    -Morten

    http://ORA-00001.blogspot.com

Maybe you are looking for

  • Skype on Mac OS Sierra each too much memory

    Hello I made a bad decision to install Sierra (previously it was El Capitan). The entire system had lower performance (negative) but I know that I have to live with it. However, I have a serious question for Skype running. After starting up it will s

  • Short storage problem

    I have an iphone 6 plus and has a 14 GB memory. Is it possible to add my phone memory to make 32 gd or more? I have a problem of memory shortage. Help, please...

  • Occupy the entire screen to the screen

    My screen was fine before my son used.  The display is now much smaller than the screen.  I checked all the settings and everything seems fine.  I tried the system restore, and it says that it cannot find a restore point.  What can I do?

  • Confirming the Contact to call

    I like having a screen that only has shortcuts to contact my friends I call more often. Since the last update, I have now confirmed with a second tap I want to call someone in particular. Anyone know how to set it up then a simple click on the shortc

  • PhoneCall questin

    Hello I have the following code: PhoneArguments phoneArgs = new PhoneArguments(PhoneArguments.ARG_CALL, "1234567890"); Invoke.invokeApplication(Invoke.APP_TYPE_PHONE, phoneArgs); Now, in the next line, I want to get the instance of the object the ini