Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

PLS-00410: duplicate fields in RECORD,TABLE or argument list are not permitted

Rajesh123May 24 2017 — edited May 25 2017

Hi All,

Declared below function in package spec and body.

FUNCTION update_cust_trx (cust_trx_id in number,

                                               p_term_count in number,

                                              P_PRINTING_COUNT  in number,

                                             P_ORIG_DATE in DATE,

                                             P_TERM_SEQ in NUMBER,

                                            P_TRX_TYPE in varchar2,

                                           P_TER_REL_AMT in NUMBER

    )

RETURN varchar2

IS

cust_trx_id  NUMBER;

BEGIN

  UPDATE ra_customer_trx

  SET printing_pending = Decode (P_TRX_TYPE, 'CM', 'N',Decode(p_term_count, Greatest(Nvl(last_printed_sequence_num, 0),P_TERM_SEQ), 'N',

   NULL, 'N',

   1, 'N',

   0, 'N',

   'Y')),

    printing_count = Decode(P_PRINTING_COUNT, NULL, 0, P_PRINTING_COUNT)+ 1,

    printing_last_printed = SYSDATE,

    printing_original_date = Decode(P_PRINTING_COUNT, 0, SYSDATE,P_ORIG_DATE),

    last_printed_sequence_num = Decode(p_term_count, NULL, NULL,Greatest(Nvl(last_printed_sequence_num, 0),P_TERM_SEQ))

  WHERE  customer_trx_id = cust_trx_id;

  commit;

      RETURN 'F' ;

    END IF;

Exception

     when others then

        return NULL;

END;

below is the error i am having.

LINE/COL ERROR

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

328/14   PLS-00323: subprogram or cursor 'UPDATE_CUST_TRX' is declared in

         a package specification and must be defined in the package body

1168/1   PL/SQL: Item ignored

1168/1   PLS-00410: duplicate fields in RECORD,TABLE or argument list are

         not permitted

This post has been answered by Aditi-Oracle on May 24 2017
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 22 2017
Added on May 24 2017
9 comments
25,352 views