Message Oracle ORA-39159 - cannot call this function from a non-Data Pump process

ERRORcannot call this function from a non-Data Pump process
CAUSECalled a Data Pump process model function from a process which is not a Data Pump process.
ACTIONRefer to any other error messages for additional information. If this error occurs from a Data Pump client (e.g. expdp or impdp), try the operation again. If the error occurs again, contact Oracle Customer Support and report the error.