{"record":{"id":"6d6f71a86635511b","repo":"pentaho/pentaho-kettle","slug":"we-can-t-convert-data-type-to-an-original-v2-value","errorCode":null,"errorMessage":" : We can't convert data type  to an original (V2) Value","messagePattern":" : We can't convert data type  to an original \\(V2\\) Value","errorType":"exception","errorClass":"KettleValueException","httpStatus":null,"severity":"error","filePath":"core/src/main/java/org/pentaho/di/core/row/value/ValueMetaBase.java","lineNumber":4254,"sourceCode":"          value.setValue( getNumber( data ).doubleValue() );\n          break;\n        case TYPE_INTEGER:\n          value.setValue( getInteger( data ).longValue() );\n          break;\n        case TYPE_DATE:\n          value.setValue( getDate( data ) );\n          break;\n        case TYPE_BOOLEAN:\n          value.setValue( getBoolean( data ).booleanValue() );\n          break;\n        case TYPE_BIGNUMBER:\n          value.setValue( getBigNumber( data ) );\n          break;\n        case TYPE_BINARY:\n          value.setValue( getBinary( data ) );\n          break;\n        default:\n          throw new KettleValueException( toString() + \" : We can't convert data type \" + getTypeDesc()\n              + \" to an original (V2) Value\" );\n      }\n    }\n    return value;\n  }\n\n  /**\n   * Extracts the primitive data from an old style Value object\n   *\n   * @param value\n   *          the old style Value object\n   * @return the value's data, NOT the meta data.\n   * @throws KettleValueException\n   *           case there is a data conversion problem\n   */\n  @Override\n  public Object getValueData( Value value ) throws KettleValueException {\n    if ( value == null || value.isNull() ) {","sourceCodeStart":4236,"sourceCodeEnd":4272,"githubUrl":"https://github.com/pentaho/pentaho-kettle/blob/f3058517a153da500bf4551f46d79b91bf8ec552/core/src/main/java/org/pentaho/di/core/row/value/ValueMetaBase.java#L4236-L4272","documentation":"Default-branch sentinel in ValueMetaBase.getLegacyValue(): this value's storage metadata type matches none of the cases that can be mapped onto the legacy (V2) Value object, so the old-style Value cannot be built. The input at fault is the value's unsupported/unknown type code.","triggerScenarios":"Thrown at core/src/main/java/org/pentaho/di/core/row/value/ValueMetaBase.java:4254 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Avoid serializing this field to the legacy V2 Value format; use modern row serialization","Change the field to one of the supported types (String, Number, Integer, Date, Boolean, BigNumber, Binary)"],"exampleFix":null,"handlingStrategy":"validation","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"}