Error al importar datos de RHUN

Buenos días,

les comento, estamos teniendo un error al intentar importar los datos de RHUN en SIU-WICHI (versión 5.4.0).

ERROR 30-03 10:59:19,481 - Cargar/Actualizar dimensión - java.lang.RuntimeException: Error serializing row to byte array at org.pentaho.di.core.row.RowMeta.extractData(RowMeta.java:848) at org.pentaho.di.trans.steps.dimensionlookup.DimensionLookup.addToCache(DimensionLookup.java:1464) at org.pentaho.di.trans.steps.dimensionlookup.DimensionLookup.lookupValues(DimensionLookup.java:677) at org.pentaho.di.trans.steps.dimensionlookup.DimensionLookup.processRow(DimensionLookup.java:234) at org.pentaho.di.trans.step.RunThread.run(RunThread.java:50) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.RuntimeException: orden String(2147483647) : There was a data type error: the data type of java.lang.Long object [1] does not correspond to value meta [String(2147483647)] at org.pentaho.di.core.row.ValueMeta.writeData(ValueMeta.java:2066) at org.pentaho.di.core.row.RowMeta.writeData(RowMeta.java:478) at org.pentaho.di.core.row.RowMeta.extractData(RowMeta.java:841) ... 5 more

Esto surge al querer actualizar los datos de un periodo de prueba cargado inicialmente. La carga inicial si funcionó correctamente pero hubo un error de encoding y entonces en la DB están todos los acentos mal (sin percatarnos, en el script de carga que desarrollamos tenía un paso previo que es la conversión de LATIN1 a UTF8 que no era necesario).

Dando vueltas en la web, pareciera que el error de tipo de dato surge al querer asignar un string a un tipo de dato numérico… alguna sugerencia?

Gracias!

PD: si limpiando los datos previamente importados se puede solucionar… ¿cual sería el paso para realizar un reseteo para este sistema fuente y comenzar desde cero?

Hola. Seguramente va a ser más fácil borrar todos los datos de Rhun y comenzar de nuevo.
Se hace de la siguiente manera:

 TRUNCATE TABLE rhun.d_agrupamiento_no_docente;
 TRUNCATE TABLE rhun.d_anios_de_antiguedad;
 TRUNCATE TABLE rhun.d_antiguedad_docente;
 TRUNCATE TABLE rhun.d_cargo_por_persona;
 TRUNCATE TABLE rhun.d_categoria_conicet;
 TRUNCATE TABLE rhun.d_categoria_incentivo;
 TRUNCATE TABLE rhun.d_categoria_universidad;
 TRUNCATE TABLE rhun.d_concepto;
 TRUNCATE TABLE rhun.d_edad;
 TRUNCATE TABLE rhun.d_equivalencia_cargo;
 TRUNCATE TABLE rhun.d_escalafon;
 TRUNCATE TABLE rhun.d_estado_cargo;
 TRUNCATE TABLE rhun.d_estado_civil;
 TRUNCATE TABLE rhun.d_estado_laboral;
 TRUNCATE TABLE rhun.d_fuente_financiamiento;
 TRUNCATE TABLE rhun.d_hora_dedicacion;
 TRUNCATE TABLE rhun.d_nacionalidad;
 TRUNCATE TABLE rhun.d_nivel_educacion;
 TRUNCATE TABLE rhun.d_nivel_ensenianza;
 TRUNCATE TABLE rhun.d_objeto_del_gasto;
 TRUNCATE TABLE rhun.d_ona_jerarquia;
 TRUNCATE TABLE rhun.d_ona_tipo_titulo;
 TRUNCATE TABLE rhun.d_periodo_retroactivo;
 TRUNCATE TABLE rhun.d_persona;
 TRUNCATE TABLE rhun.d_sistema_previsional;
 TRUNCATE TABLE rhun.d_situacion_laboral;
 TRUNCATE TABLE rhun.d_tipo_cargo_asociado;
 TRUNCATE TABLE rhun.d_tipo_grupo_concepto;
 TRUNCATE TABLE rhun.d_tipo_planta;
 TRUNCATE TABLE rhun.d_unidad_academica;
 TRUNCATE TABLE rhun.ft_cargo_liquidado;
 TRUNCATE TABLE rhun.ft_cargos_planta;
 TRUNCATE TABLE rhun.ft_datos_personales_planta;
 TRUNCATE TABLE rhun.ft_detalle_liquidacion_haberes;
 TRUNCATE TABLE rhun.ft_detalle_liquidacion_haberes_por_grupo;
 TRUNCATE TABLE rhun_dsa.d_agrupamiento_no_docente;
 TRUNCATE TABLE rhun_dsa.d_anios_de_antiguedad;
 TRUNCATE TABLE rhun_dsa.d_antiguedad_docente;
 TRUNCATE TABLE rhun_dsa.d_cargo_por_persona;
 TRUNCATE TABLE rhun_dsa.d_categoria_conicet;
 TRUNCATE TABLE rhun_dsa.d_categoria_incentivo;
 TRUNCATE TABLE rhun_dsa.d_categoria_universidad;
 TRUNCATE TABLE rhun_dsa.d_concepto;
 TRUNCATE TABLE rhun_dsa.d_edad;
 TRUNCATE TABLE rhun_dsa.d_equivalencia_cargo;
 TRUNCATE TABLE rhun_dsa.d_escalafon;
 TRUNCATE TABLE rhun_dsa.d_estado_cargo;
 TRUNCATE TABLE rhun_dsa.d_estado_civil;
 TRUNCATE TABLE rhun_dsa.d_estado_laboral;
 TRUNCATE TABLE rhun_dsa.d_fuente_financiamiento;
 TRUNCATE TABLE rhun_dsa.d_hora_dedicacion;
 TRUNCATE TABLE rhun_dsa.d_nacionalidad;
 TRUNCATE TABLE rhun_dsa.d_nivel_educacion;
 TRUNCATE TABLE rhun_dsa.d_nivel_ensenianza;
 TRUNCATE TABLE rhun_dsa.d_objeto_del_gasto;
 TRUNCATE TABLE rhun_dsa.d_ona_jerarquia;
 TRUNCATE TABLE rhun_dsa.d_ona_tipo_titulo;
 TRUNCATE TABLE rhun_dsa.d_periodo_retroactivo;
 TRUNCATE TABLE rhun_dsa.d_persona;
 TRUNCATE TABLE rhun_dsa.d_sistema_previsional;
 TRUNCATE TABLE rhun_dsa.d_situacion_laboral;
 TRUNCATE TABLE rhun_dsa.d_tipo_cargo_asociado;
 TRUNCATE TABLE rhun_dsa.d_tipo_grupo_concepto;
 TRUNCATE TABLE rhun_dsa.d_tipo_planta;
 TRUNCATE TABLE rhun_dsa.d_unidad_academica;
 TRUNCATE TABLE rhun_dsa.ft_cargo_liquidado;
 TRUNCATE TABLE rhun_dsa.ft_cargos_planta;
 TRUNCATE TABLE rhun_dsa.ft_datos_personales_planta;
 TRUNCATE TABLE rhun_dsa.ft_detalle_liquidacion_haberes;
 TRUNCATE TABLE rhun_dsa.ft_detalle_liquidacion_haberes_por_grupo;
 TRUNCATE TABLE rhun_tmp.ft_cargos_liq;
 TRUNCATE TABLE rhun_tmp.ft_cargos_planta;
 TRUNCATE TABLE rhun_tmp.ft_datos_personales_planta;
 TRUNCATE TABLE rhun_tmp.ft_detalles_liquidaciones_haberes;
 TRUNCATE TABLE rhun_tmp.ft_detalles_liquidaciones_haberes_por_grupos;
 TRUNCATE TABLE rhun_tmp.lt_agrupamientos_nd;
 TRUNCATE TABLE rhun_tmp.lt_categorias_univ;
 TRUNCATE TABLE rhun_tmp.lt_conceptos_liq;
 TRUNCATE TABLE rhun_tmp.lt_conicet;
 TRUNCATE TABLE rhun_tmp.lt_datos_personales_liq;
 TRUNCATE TABLE rhun_tmp.lt_equivalencias_cargos;
 TRUNCATE TABLE rhun_tmp.lt_escalafones;
 TRUNCATE TABLE rhun_tmp.lt_estados_cargos;
 TRUNCATE TABLE rhun_tmp.lt_estados_civiles;
 TRUNCATE TABLE rhun_tmp.lt_estados_laborales;
 TRUNCATE TABLE rhun_tmp.lt_fuentes_financiamiento;
 TRUNCATE TABLE rhun_tmp.lt_instituciones;
 TRUNCATE TABLE rhun_tmp.lt_nacionalidades;
 TRUNCATE TABLE rhun_tmp.lt_niveles_educacion;
 TRUNCATE TABLE rhun_tmp.lt_niveles_ensenianza;
 TRUNCATE TABLE rhun_tmp.lt_objeto_del_gasto;
 TRUNCATE TABLE rhun_tmp.lt_ona_jerarquias;
 TRUNCATE TABLE rhun_tmp.lt_ona_tipos_titulos;
 TRUNCATE TABLE rhun_tmp.lt_ona_titulos;
 TRUNCATE TABLE rhun_tmp.lt_ona_unidades_academicas;
 TRUNCATE TABLE rhun_tmp.lt_rango_antiguedad;
 TRUNCATE TABLE rhun_tmp.lt_rango_antiguedad_docente;
 TRUNCATE TABLE rhun_tmp.lt_sexos;
 TRUNCATE TABLE rhun_tmp.lt_sistema_previsional;
 TRUNCATE TABLE rhun_tmp.lt_situaciones_laborales;
 TRUNCATE TABLE rhun_tmp.lt_tipo_cargo_asociado;
 TRUNCATE TABLE rhun_tmp.lt_tipos_conceptos;
 TRUNCATE TABLE rhun_tmp.lt_tipos_grupos_conceptos;
 TRUNCATE TABLE rhun_tmp.lt_tipos_planta;

Excelente.

He vuelto a cargar sin mayores inconvenientes (eliminé de public.d_unidad las que estaban cargadas para rhun).

Por otro lado, ingresando directamente a los cubos de RHUN, no pareciera que estén bien puesto que no cargan ni cuando se ingresa a editarlos desde SAIKU. De todas formas, si selecciono el cubo respectivo y trabajo con las dimensiones, puedo ver los datos.

Saludos!

Hola Sergio, buenísimo que lo hayas solucionado.
No alcanzo a entender el problema que planteas ahora. Luego de la carga hay que refrescar la cache. Si el problema es otro, si te parece lo seguimos por GDS.

Saludos.