EAP: "Invalid SQLExec Update for This Type of PeopleCode Program" Error When Clicking On "Preview Approval" Hyperlink From Voucher If There is No Valid Approver (Doc ID 2138077.1)

Last updated on MAY 20, 2016

Applies to:

PeopleSoft Enterprise FIN Payables - Version 9.2 to 9.2 [Release 9]
Information in this document applies to any platform.

Symptoms

When there is no Approver for Voucher, clicking on 'Preview Approval' results in error.

Steps:
----------
1) Create a approval process setup for Vouchers.
2) Ensure there are no users with the required role for the Vouchers to be routed for approval.
3) Add a Voucher and save.
4) Click on Preview Approval hyperlink.

Error:
--------
"Invalid SQLExec update for this type of PeopleCode program. (2,146) EOAW_CORE.ENGINE.Thread.OnExecute Name:AddComments PCPC:44723 Statement:578
Called from:EOAW_CORE.ENGINE.StepInst.OnExecute Name:AddErrorComment Statement:553
Called from:EOAW_CORE.ENGINE.DefPathInst.OnExecute Name:AddAdminOnError Statement:106
Called from:EOAW_CORE.ENGINE.DefPathInst.OnExecute Name:InstantiateSteps Statement:74
Called from:EOAW_CORE.ENGINE.DefPathInst.OnExecute Name:Instantiate Statement:27
Called from:EOAW_CORE.ENGINE.StageInst.OnExecute Name:InstantiatePaths Statement:5
SQLExec commands with UPDATE, INSERT, or DELETE statements are only allowed in SavePreChange, SavePostChange, and Workflow type PeopleCode programs."


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