Oracle Solution for Error ora-39145

Solution for Oracle Error ORA-39145

ORA-39145: directory object parameter must be specified and non-null

What triggered the Error:

No directory object was provided in either an DBMS_DATAPUMP.ADD_FILE API call or to the directory parameter used by the Data Pump command line clients.

What should we do to fix it:

Correct the directory object parameter and retry the operation.