My Oracle Support Banner

R12 AP: Performance problem with Invoice Approval Workflow - It Runs Forever (Doc ID 1632547.1)

Last updated on JANUARY 16, 2018

Applies to:

Oracle Payables - Version 12.1.3 and later
Information in this document applies to any platform.

Symptoms

Invoice Approval Workflow (APXIAWRE) performance issue.
Run the Invoice Approval workflow for an invoice that need to be approved by a user
who has a vacation rule to transfer the responsibility of the approval to another user.
The Invoice Approval workflow runs for ever.

The SQL statement that is taking for ever is the following:

SELECT SUPERVISOR_ID
FROM
PER_ALL_ASSIGNMENTS_F WHERE PER_ALL_ASSIGNMENTS_F.PERSON_ID = :B1 AND
 PER_ALL_ASSIGNMENTS_F.PRIMARY_FLAG = 'Y' AND
 PER_ALL_ASSIGNMENTS_F.ASSIGNMENT_TYPE IN ('E','C') AND
 PER_ALL_ASSIGNMENTS_F.ASSIGNMENT_STATUS_TYPE_ID NOT IN (SELECT
 ASSIGNMENT_STATUS_TYPE_ID FROM PER_ASSIGNMENT_STATUS_TYPES WHERE
 PER_SYSTEM_STATUS = 'TERM_ASSIGN') AND TRUNC(SYSDATE) BETWEEN
 PER_ALL_ASSIGNMENTS_F.EFFECTIVE_START_DATE AND
 PER_ALL_ASSIGNMENTS_F.EFFECTIVE_END_DATE




Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution
References


This document is being delivered to you via Oracle Support's Rapid Visibility (RaV) process and therefore has not been subject to an independent technical review.
My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.