ORA-06573: Function string modifies package state, cannot be used here
What triggered the Error:
There are two possible causes for this message:What should we do to fix it:
If the function is a packaged, PL/SQL function: Recreate the function and include a pragma containing the 'Write no Package State' (WNPS). If the function is a stand-alone, PL/SQL function: Delete the function from the SQL statement.