Fusion Global Payroll: Fast Formula Compilation Throws Local Variable Initialization Error when Using in a WHILE LOOP (Doc ID 2110013.1)

Last updated on FEBRUARY 24, 2016

Applies to:

Oracle Fusion Global Payroll Cloud Service - Version 11.1.10.0.0 and later
Oracle Fusion Global Payroll - Version 11.1.10.0.0 and later
Information in this document applies to any platform.

Symptoms

When attempting to compile a custom Batch Loader type Fast Formula, the following error occurs:
Formula XXSC_PAY_PLM_000PYLD2_PM_PM_WITHOUT_LDG_FF, line 328, a local variable was used before being initialized

The issue can be reproduced at will with the following steps:
1. Create Batch Loader type Fast Formula with following WHILE LOOP
 /* START OF WHILE LOOPING*/

  LC_PAYROLL_RLNSHIP_ID= GET_VALUE_SET('XXSC_GET_PAYROLL_RLNSHIP_ID','|P_PERSON_ID='''||LC_PERSON_ID||'''')
  LC_PRIORITY_CNT= GET_VALUE_SET('XXSC_GET_PRIORITY_CNT','|=P_PAYROLL_RLNSHIP_ID ='''||LC_PAYROLL_RLNSHIP_ID||'''')
  LC_PRIORITY_CNT1 = TO_NUMBER(LC_PRIORITY_CNT)
  

  IF LC_PRIORITY1=1 THEN
  (
  Effective_As_Of_Date= LC_EFF_END_DATE
  TASKACTION = LC_TASKACTION2
  
  LC_PRIORITY_CNT1= A.FIRST(0)
  WHILE A.EXISTS (LC_PRIORITY_CNT1) LOOP
  (
  Effective_As_Of_Date= LC_EFF_END_DATE
  TASKACTION = LC_TASKACTION2
  IF TASKACTION ='End Date Personal Payment Method' THEN
  (
  Payment_Amount_Type = LC_DEPOSIT_TYPE
  IF LC_DEPOSIT_TYPE = 'M' THEN
  (
  RETURN TASK
  ,TASKACTION
  ,LINESEQUENCE
  ,Assignment_Number
  ,Name
  ,Effective_As_Of_Date
  ,MESSAGE
  ,MESSAGELEVEL

2. Click the Compile button
Note compilation error


Cause

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms