"Kumar, Virendra" <Virendra.Kumar@guycarp.com> writes:
> Here is function code:
Hm, nothing very exciting in there. But the known reasons for this
type of error involve something changing a table rowtype that the
function uses (that is, ALTER TABLE ADD COLUMN or the like). Or
dropping/recreating such a table altogether. Is there any part
of your workflow that redefines the type of
product_owner.external_sys_class_code_pres.audit_update_dt or
product_owner.external_sys_class_code_pres ?
Also, you still didn't tell us the server's version.
regards, tom lane