How to fix the Oracle error PLS-00412: list of values not allowed as argument to this function or procedure?
In this post, you’ll learn more about the Oracle ErrorPLS-00412: list of values not allowed as argument to this function or procedure with the details on why you receive this error and the possible solution to fix it.
Oracle Error Description
PLS-00412: list of values not allowed as argument to this function or procedure
Reason for the Error PLS-00412: list of values not allowed as argument to this function or procedure
A parenthesized list of values separated by commas (that is, an aggregate) was used in the wrong context. For example, the following usage is invalid: WHERE (col1, col2) > (SELECT col3, col4 FROM my_table …) However, an equal sign can take a list of values and a subquery as left- and right-hand-side arguments, respectively. So, the following usage is valid: WHERE (col1, col2) = (SELECT col3, col4 FROM my_table …)
How to fix the Error PLS-00412: list of values not allowed as argument to this function or procedure ?
You can fix this error in Oracle by following the below steps
Rewrite the expression. For example, the clause WHERE (col1, col2) > (SELECT col3, col4 FROM my_table …) can be rewritten as WHERE col1 > (SELECT col3 FROM my_table …) AND col2 > (SELECT col4 FROM my_table …)
Leave Your Comment