DBMS_DATAPUMP error: The current API cannot be executed because of inconsistencies between the API and the current definition of the job
Your versions differ between source and destination.

hdnl := DBMS_DATAPUMP.OPEN( operation =&gt; 'IMPORT', job_mode =&gt; 'SCHEMA', job_name=&gt;null, version=&gt;'COMPATIBLE');


Oh, the bad news: you need this for the expdp too.