Buggy code:
if ( ! ( inputFile . exists ( ) ) ) { logger . println ( ( ( "Error:<seq2seq4repair_space>File<seq2seq4repair_space>{" + ( inputFile . getAbsolutePath ( ) ) ) + "}<seq2seq4repair_space>not<seq2seq4repair_space>found" ) ) ; throw new DatasetLoaderException ( ( ( "File<seq2seq4repair_space>{" + ( inputFile . getAbsolutePath ( ) ) ) + "}<seq2seq4repair_space>not<seq2seq4repair_space>found" ) ) ; } if ( ( inputFile . length ( ) ) == 0 ) { logger . println ( ( ( "Error:<seq2seq4repair_space>File<seq2seq4repair_space>{" + ( inputFile . getAbsolutePath ( ) ) ) + "}<seq2seq4repair_space>is<seq2seq4repair_space>empty" ) ) ; throw new DatasetLoaderException ( ( ( "Error:<seq2seq4repair_space>File<seq2seq4repair_space>{" + ( inputFile . getAbsolutePath ( ) ) ) + "}<seq2seq4repair_space>is<seq2seq4repair_space>empty" ) ) ; } if ( ( datasetAlias == null ) || ( datasetAlias . trim ( ) . isEmpty ( ) ) ) { throw new DatasetLoaderException ( "datasetAlias<seq2seq4repair_space>cannot<seq2seq4repair_space>be<seq2seq4repair_space>null" ) ; } String santizedDatasetName = ExternalFileSchema . createDevName ( datasetAlias , "Dataset" , 1 , false ) ; if ( ! ( datasetAlias . equals ( santizedDatasetName ) ) ) { logger . println ( "\n<seq2seq4repair_space>Warning:<seq2seq4repair_space>dataset<seq2seq4repair_space>name<seq2seq4repair_space>can<seq2seq4repair_space>only<seq2seq4repair_space>contain<seq2seq4repair_space>alpha-numeric<seq2seq4repair_space>or<seq2seq4repair_space>\'_\',<seq2seq4repair_space>must<seq2seq4repair_space>start<seq2seq4repair_space>with<seq2seq4repair_space>alpha,<seq2seq4repair_space>and<seq2seq4repair_space>cannot<seq2seq4repair_space>end<seq2seq4repair_space>in<seq2seq4repair_space>\'__c\'" ) ; logger . println ( ( ( "\n<seq2seq4repair_space>changing<seq2seq4repair_space>dataset<seq2seq4repair_space>name<seq2seq4repair_space>to:<seq2seq4repair_space>{" + santizedDatasetName ) + "}" ) ) ; datasetAlias = santizedDatasetName ; } if ( ( datasetAlias . length ( ) ) > 80 ) throw new DatasetLoaderException ( ( ( "datasetName<seq2seq4repair_space>{" + datasetAlias ) + "}<seq2seq4repair_space>should<seq2seq4repair_space>be<seq2seq4repair_space>less<seq2seq4repair_space>than<seq2seq4repair_space>80<seq2seq4repair_space>characters" ) ) ; if ( ! ( DatasetLoader . checkAPIAccess ( partnerConnection , logger ) ) ) { logger . println ( "Error:<seq2seq4repair_space>you<seq2seq4repair_space>do<seq2seq4repair_space>not<seq2seq4repair_space>have<seq2seq4repair_space>access<seq2seq4repair_space>to<seq2seq4repair_space>Analytics<seq2seq4repair_space>Cloud<seq2seq4repair_space>API.<seq2seq4repair_space>Please<seq2seq4repair_space>contact<seq2seq4repair_space>salesforce<seq2seq4repair_space>support" ) ; throw new DatasetLoaderException ( "Error:<seq2seq4repair_space>you<seq2seq4repair_space>do<seq2seq4repair_space>not<seq2seq4repair_space>have<seq2seq4repair_space>access<seq2seq4repair_space>to<seq2seq4repair_space>Analytics<seq2seq4repair_space>Cloud<seq2seq4repair_space>API.<seq2seq4repair_space>Please<seq2seq4repair_space>contact<seq2seq4repair_space>salesforce<seq2seq4repair_space>support" ) ; } if ( session == null ) { <START_BUG> session = Session . getCurrentSession ( partnerConnection . getUserInfo ( ) . getOrganizationId ( ) , datasetAlias ) ; <END_BUG>

Fix:
session = Session . getCurrentSession ( partnerConnection . getUserInfo ( ) . getOrganizationId ( ) , datasetAlias , false ) ;