{"record":{"id":"18156a36a9bab10a","repo":"pentaho/pentaho-kettle","slug":"error-skipping-bytes-to-the-next-block-of-data","errorCode":null,"errorMessage":"Error skipping  bytes to the next block of data","messagePattern":"Error skipping  bytes to the next block of data","errorType":"exception","errorClass":"KettleException","httpStatus":null,"severity":"error","filePath":"engine/src/main/java/org/pentaho/di/trans/steps/parallelgzipcsv/ParGzipCsvInput.java","lineNumber":211,"sourceCode":"            return true; // nothing more to be found in the file, stop right here.\n          }\n          bytesSkipped += n;\n        }\n\n        data.fileReadPosition += bytesSkipped;\n\n        // Now we need to clear the buffer, reset everything...\n        //\n        clearBuffer();\n\n        // Now get read until the next CR:\n        //\n        readOneRow( false );\n\n        return false;\n\n      } catch ( IOException e ) {\n        throw new KettleException( \"Error skipping \" + bytesToSkip + \" bytes to the next block of data\", e );\n      }\n    } else {\n      // this situation should never happen.\n      //\n      return true; // stop processing the file\n    }\n  }\n\n  private void getFilenamesFromPreviousSteps() throws KettleException {\n    List<String> filenames = new ArrayList<String>();\n    boolean firstRow = true;\n    int index = -1;\n    Object[] row = getRow();\n    while ( row != null ) {\n\n      if ( firstRow ) {\n        firstRow = false;\n","sourceCodeStart":193,"sourceCodeEnd":229,"githubUrl":"https://github.com/pentaho/pentaho-kettle/blob/f3058517a153da500bf4551f46d79b91bf8ec552/engine/src/main/java/org/pentaho/di/trans/steps/parallelgzipcsv/ParGzipCsvInput.java#L193-L229","documentation":"Wrapper error in ParGzipCsvInput.skipToNextBlock: an IOException occurred while skipping bytesToSkip bytes over the compressed stream to reach the next block boundary (the loop that accumulates bytesSkipped failed). The number of bytes and the cause are included.","triggerScenarios":"Thrown at engine/src/main/java/org/pentaho/di/trans/steps/parallelgzipcsv/ParGzipCsvInput.java:211 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the gzip file for truncation or corruption; a broken stream surfaces here during block seeking","Verify the file is a block-oriented parallel gzip file, not a plain gzip stream","Inspect the chained IOException for the underlying read failure"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"f3058517a153da500bf4551f46d79b91bf8ec552","analyzedAt":"2026-09-13T14:04:16.340Z","contentChangedAt":"2026-09-13T14:04:16.340Z","schemaVersion":2},"datasetVersion":"2026-09-20T23:17:15.980Z"}