Hello!

I get this error running Spoon 304 : I am not a specialist so if someone can help me, it will be great.

2008/08/29 14:30:43 - Add sequence Vehicle ID.0 - Finished processing (I=0, O=0, R=122, W=122, U=0, E=0)
2008/08/29 14:30:43 - Transform Vehicle model name.0 - Value #27 - [VEHICULE_TYPE] is used in the script.
2008/08/29 14:30:43 - Transform Vehicle model name.0 - Value #38 - [C_VEHICLE_MODEL_NAME] is used in the script.
2008/08/29 14:30:43 - Transform Vehicle model name.0 - This script is using 2 values from the input stream(s)
2008/08/29 14:30:43 - Transform Vehicle model name.0 - No starting Script found!
2008/08/29 14:30:43 - Transform Vehicle model name.0 - No tran_Status found. Transformation status checking not available.
2008/08/29 14:30:43 - Transform Vehicle model name.0 - ERROR (version 3.0.4, build 54 from 2008/06/27 10:23:40) : Unexpected error :
2008/08/29 14:30:43 - Transform Vehicle model name.0 - ERROR (version 3.0.4, build 54 from 2008/06/27 10:23:40) : org.pentaho.di.core.exception.KettleValueException:
2008/08/29 14:30:43 - Transform Vehicle model name.0 - ERROR (version 3.0.4, build 54 from 2008/06/27 10:23:40) : Javascript error:
2008/08/29 14:30:43 - Transform Vehicle model name.0 - ERROR (version 3.0.4, build 54 from 2008/06/27 10:23:40) :
2008/08/29 14:30:43 - Transform Vehicle model name.0 - ERROR (version 3.0.4, build 54 from 2008/06/27 10:23:40) : C_VEHICLE_MODEL_NAME - : We can't convert original data type String to a primitive data type
2008/08/29 14:30:43 - Transform Vehicle model name.0 - ERROR (version 3.0.4, build 54 from 2008/06/27 10:23:40) :
2008/08/29 14:30:43 - Transform Vehicle model name.0 - ERROR (version 3.0.4, build 54 from 2008/06/27 10:23:40) :
2008/08/29 14:30:43 - Transform Vehicle model name.0 - ERROR (version 3.0.4, build 54 from 2008/06/27 10:23:40) : at org.pentaho.di.trans.steps.scriptvalues_mod.ScriptValuesMod.addValues(ScriptValuesMod.java:443)
2008/08/29 14:30:43 - Transform Vehicle model name.0 - ERROR (version 3.0.4, build 54 from 2008/06/27 10:23:40) : at org.pentaho.di.trans.steps.scriptvalues_mod.ScriptValuesMod.processRow(ScriptValuesMod.java:738)
2008/08/29 14:30:43 - Transform Vehicle model name.0 - ERROR (version 3.0.4, build 54 from 2008/06/27 10:23:40) : at org.pentaho.di.trans.steps.scriptvalues_mod.ScriptValuesMod.run(ScriptValuesMod.java:798)
2008/08/29 14:30:43 - Transform Vehicle model name.0 - ERROR (version 3.0.4, build 54 from 2008/06/27 10:23:40) : Caused by: org.pentaho.di.core.exception.KettleValueException:
2008/08/29 14:30:43 - Transform Vehicle model name.0 - ERROR (version 3.0.4, build 54 from 2008/06/27 10:23:40) : C_VEHICLE_MODEL_NAME - : We can't convert original data type String to a primitive data type
2008/08/29 14:30:43 - Transform Vehicle model name.0 - ERROR (version 3.0.4, build 54 from 2008/06/27 10:23:40) :
2008/08/29 14:30:43 - Transform Vehicle model name.0 - ERROR (version 3.0.4, build 54 from 2008/06/27 10:23:40) : at org.pentaho.di.core.row.ValueMeta.getValueData(ValueMeta.java:3284)
2008/08/29 14:30:43 - Transform Vehicle model name.0 - ERROR (version 3.0.4, build 54 from 2008/06/27 10:23:40) : at org.pentaho.di.trans.steps.scriptvalues_mod.ScriptValuesMod.addValues(ScriptValuesMod.java:401)
2008/08/29 14:30:43 - Transform Vehicle model name.0 - ERROR (version 3.0.4, build 54 from 2008/06/27 10:23:40) : ... 2 more
2008/08/29 14:30:43 - SICAR DW - Statement canceled!



Script : Transform Vehicle model name

if(C_VEHICLE_MODEL_NAME.getString() != null)
C_VEHICLE_MODEL_NAME.setValue("NOT SPECIFIED");
else
if(VEHICULE_TYPE.getString() != null)
C_VEHICLE_MODEL_NAME.setValue(VEHICULE_TYPE.getString());
else
C_VEHICLE_MODEL_NAME.setValue("NOT SPECIFIED");



________
Thanks !

Lfa