Quantcast
Channel: Pentaho Community Forums
Viewing all articles
Browse latest Browse all 16689

Problem on preview of Table Input

$
0
0
I have this setup on Table Input for testing....

Code:

SELECT 'L' tp_afastamento, regexp_replace(p.nu_cpf, '[^0-9]', '') nr_cpf_magistrado, l.dt_inicio, l.dt_fim
        FROM srh.TB_LICENCA l, srh.TB_PESSOA p, srh.tb_pessoa_complemento pc, sap1.juiz j
        WHERE  p.ID_PESSOA = L.ID_SERVIDOR
            AND p.ID_PESSOA = pc.ID_PESSOA
            AND SUBSTR(pc.NU_MATRICULA,6,4) = j.cd_matricula
            AND ST_LICENCA = 'H'

        UNION

        SELECT 'F' tp_afastamento, regexp_replace(p.nu_cpf, '[^0-9]', '') nr_cpf_magistrado, dt_inicio,dt_fim
        FROM srh.tb_ferias_periodo f,  srh.TB_PESSOA p, srh.tb_pessoa_complemento pc, sap1.juiz j
        WHERE  p.ID_PESSOA = f.ID_SERVIDOR
            AND p.ID_PESSOA = pc.ID_PESSOA
            AND SUBSTR(pc.NU_MATRICULA,6,4) = j.cd_matricula
            AND F.FL_SITUACAO_PERIODO = 'H'
             
        UNION

        SELECT 'V' tp_afastamento, regexp_replace(p.nu_cpf, '[^0-9]', '') nr_cpf_magistrado, TRUNC(DTHR_INICIO) DT_INICIO, TRUNC(DTHR_FIM) DT_FIM
        FROM srh.Tb_Viagem_Servico V, srh.TB_PESSOA p, srh.tb_pessoa_complemento pc, sap1.juiz j
        WHERE  p.ID_PESSOA = v.ID_SERVIDOR
            AND p.ID_PESSOA = pc.ID_PESSOA
            AND SUBSTR(pc.NU_MATRICULA,6,4) = j.cd_matricula
             
        ORDER BY 2,3;-- Ordenado por data inicial

and for some reason, it won't start. If I press preview, it says
Code:

Falhou a inicialização de pelo menos um step. A Execução não pode sere iniciada!
Which means: "We failed to initialize at least one step.  Execution can not begin!"

If I click details, all I get is this
Code:

org.pentaho.di.core.exception.KettleException:
Falhou a inicialização de pelo menos um step. A Execução não pode sere iniciada! ("We failed to initialize at least one step.  Execution can not begin!")

    at org.pentaho.di.trans.Trans.prepareExecution(Trans.java:932)
    at org.pentaho.di.ui.trans.dialog.TransPreviewProgressDialog.doPreview(TransPreviewProgressDialog.java:140)
    at org.pentaho.di.ui.trans.dialog.TransPreviewProgressDialog.access$000(TransPreviewProgressDialog.java:52)
    at org.pentaho.di.ui.trans.dialog.TransPreviewProgressDialog$1.run(TransPreviewProgressDialog.java:85)
    at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)

I've already seen this thread (http://forums.pentaho.com/showthread...-Rows-crashing), but the solution isn't applicable for my problem.

Viewing all articles
Browse latest Browse all 16689

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>