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

Log error if Sheet/Tab is missing in the input excel file

$
0
0
Hi All,

How can I log error in a text file if in case my input excel file does not contain the required Sheet/Tab in it?
I want to log error in a text file with a error message for example "SheetName is missing in your input excel file" or in Generic way "Some Sheets/tabs are missing in your input file". I am using excel input step to read the input file in Pentaho 7.1 community edition.

Please help

Thanks
Ajinkya

PRD : space between word missing on excel 2007 output

$
0
0
i'm using PRD 7.1 and never encounter this error before.
my header looks like this on PRD preview :




and on excel output run from PRD still okay :



======================
but after i put it on server and run from there, the output become like this :



========================

need help please

parameters element '::group-0' references invalid field

$
0
0
Hi...I'm following the excercises in PENTAHO 5.0 REPORTING BY EXAMPLE BEGINNERS GUIDE book...I´m in chapter7 adding parameters...after defining the main report, this runs well, but after adding the parameters there are the following errors:

ERROR: The query 'RatingFilms' did not execute successfully. The reason given was: 'org.pentaho.reporting.engine.classic.core.ReportDataFactoryException: Failed at query: SELECT film.rating, film.title, SUM(payment.amount) AS sum_amount, COUNT(1) AS count_rental FROM payment INNER JOIN rental ON rental.rental_id=payment.rental_id INNER JOIN inventory ON inventory.inventory_id=rental.inventory_id INNER JOIN film ON film.film_id=inventory.film_id WHERE film.rating IN (${SelectRating}) AND YEAR(payment.payment_date) = 2005 AND MONTH(payment_date) = 6 GROUP BY film.film_id ORDER BY film.rating, film.title'
WARNING: Element '::group-0' references invalid field 'rating' in attribute 'group'.
WARNING: Element '' references invalid field 'rating' in attribute 'field'.
WARNING: Element '' references invalid field 'title' in attribute 'field'.
WARNING: Element '' references invalid field 'sum_amount' in attribute 'field'.
WARNING: Element '' references invalid field 'count_rental' in attribute 'field'.


Any clue to solve this problem will be welcome...

Thanks
Eric Rosales

PDI Development Environment

$
0
0
Anyone have a quick tutorial on setting up PDI Development Environment? I want to develop some of my own PDI "Steps". Particularly I want to fix the Tableau Data Extractor step in the market place. It works in 8.0, but fails in 8.1. Ideally I'd like an example setup with Eclipse.

Continue transformation flow even if Table Input has no rows

$
0
0
Hi,

I struggle with following scenario:
In transformation I have table input step. If there are some rows then I count them using Memory Group By and make some calculation. But if there are no rows, step Memory Group By will return nothing and Filter Rows will not trigger. I can use Detect Empty stream and it helps to trigger filter. BUT, this step will set ALL fields to null so in next step I have no parameters.
How to deal with it? I cannot use two transformations and job because I pass through all rows from first step. There is some step that will save parameters at the beginning of the flow to use them in the further part of the transformation?
Set session and get session works only in two separate transformations?
I can play with temp table (insert and get) or temp file but this costs a time...

Inserts on production enviroment concurrently

$
0
0
Good morning, I need your help.


I am working with 3 tables in my BBDD production enviroment in Mysql.


In those tables do inserts from several systems concurrently, and one of them is through pentaho PDI.


I would like to know the best way to avoid having problems by updating the table concurrently from various origins and other tables related to them also in production.

how to use text component , text input component

$
0
0
Hi,
i want to display the table on selected column value in pentaho cde dashboard. So can you please explain how to use this text component and text input component .

pls ping me.

Mysql Timeout

$
0
0
Dears, good morning!

I am having problems with timeout in mysql. I have already made the settings below, but nothing solves


Windrose diagram for dashboard

$
0
0
Hi All,

I'm trying to create a windrose diagram for a dashboard in pentaho (v7 or v8) but I don't know if is possible.

Im talking something like this more or less :

Cannot commit post execution when open child table (Pentaho 7.x)

$
0
0
Halo everyone
I had a parent table (which receive param from a combo box that select month) expand on click with child table data.
Both table had different datasource, whenever I open child table and change the select month, the child table cannot commit post execution function
Is there anyone had this issue or had the solution please help me
I'm working with Pentaho 7.x
Thanks in advance

I cannot post image so I uploaded it to imgur
https://imgur.com/a/byRZgbb


Windrose chart for dashboard

$
0
0
Hi All,

I'm trying to create a windrose chart for a dashboard in pentaho (v7 or v8) but I don't know if is possible.

Im talking something like this more or less :

Row_number Over inside a transformation

$
0
0
Hi.

I have to create transformation and I need to create a sequence number that will get reset after x amount of rows. On SQL I would use a row_number() over (partition by... order by) function, but not sure how to create this on pentaho?

Ex:
Source data
login -- role -- sequence (row number) that i need to generate
1 -- a -- 1
1 -- b -- 2
2 -- c -- 1
2 -- r -- 2
2 -- a -- 3
3 -- a -- 1
4 -- a -- 1
4 -- b -- 2
5 -- a -- 1

I have tried the "group by" step but it doesn't have an option to reset the count

Any help will be appreciated.

Christiam

Organize more Measures in cube

$
0
0
I have installed pentaho ce 8.1 and I have installed saiku. Now i'm writing the structure of my schema and a cube have many measure. I wish I organize these in folder. I have try with and with and no result. How can I do that? Thanks Vcat

Change default logging in spoon

$
0
0
Every time Spoon is opened, the log level is set to Basic. Is it possible to change this default log level permanently?

Saiku with Pentaho 8

$
0
0
Hello,
I have Saiku plugin (3.90 CE) on my Pentaho 8 and almost everything works fine. But when I try to save a query or open a query I can only see home folder and public folder but I can't see subfolders.
Anyone else facing this issue ?
How can I solve it ?

Thank you,
Nicolas

Cut in string at X characters but not inside words

$
0
0
Hello all,

I'm looking to do a certain transformation to a long string text. I have a string of for example 70+ Characters and want to limit it to always maximum 70 characters. If there are more characters it should split it to the next row and continue to do so until the string is cut in lengths of 70 characters max.

This is not difficult to do with a cut in strings step, however the cut in string step could potentially cut in the middle of a word. I do not want this. It should break up the string after a space, so in my case the first space at the end before 70 characters. This way words will not be broken up and all sentences are nicely split.

Could anyone give an example of this with one of the steps, or a javascript for this?

Thanks in advance!

Mail Validator

$
0
0
Hi All,

I am using Mail validator step in pentaho pdi 8.

The step is outputting "Connection Refused: Connect" as ErrorMessage while validating xyz@mgail.com email address. Given the not so descriptive error message, I am struggling to find the real reason of this error message.

Any thoughts?

XML generation

$
0
0
Hi all,
I am new to xml and need to produce an xml output from pentaho like below.


<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<crewDetails>
<crewInfo crewId="45345345">
<personalInfo>
<searchName>sert tyur</searchName>
<firstName>GTYH</firstName>
</personalInfo>
</crewInfo>
</crewDetails>


i used add ml and xml joints to produce the output.


In the first xml join i get the output : <?xml version="1.0" encoding="UTF-8"?><crewDetails><crewInfo crewId="789456"/></crewDetails>
XPath statement //crewDetails


In the second xml join , i am getting error :XPath statement returned no result
Xpath statement tried :
1. XPath statement returned no result [//crewInfo[@crewId]]
2. XPath statement returned no result [/crewDetails/crewInfo[@crewId]]


I have no clue how to put complex join here.

My pentaho transformation is like below.

input xmladd (<crewDetails/>)
input xmladd2(crewid) xmljoin
input xmladd3(personalInfo) xmljoin2


Anyhelp is appreciated.





Thank You,
Vini

Problems with Timestamp with Time Zone

$
0
0
I'm reading two identical tables from two different sources. One is a Postgres table, the other one is Oracle.

One column (let's say COL1) is a TIMESTAMP WITH TIME ZONE.

I want to compare the content of the two tables, in order to see if there are missed rows. So, I'm using a "Merge Rows (diff)" step. The problem is that the "Table Input" step reads correctly COL1 from PostgreS as a timestamp ('2018/08/20 06:43:40.000000000'), but it reads COL1 from Oracle as a String ('2018-08-20 06:43:40.0 CET').

Is there a way to read COL1 as a TIMESTAMP WITH TIME ZONE also from Oracle?

Thank you!

Write sorted rows output into multiple excel files

$
0
0
Hi

I have a transformation, which sorts data in ascending order based on multiple fields.
Now while writing these rows into excel output file, I want to create 3 output excel files. Rows should be evenly distributed in all 3 output excel files.
Rows should be in sorted order in these output files.

Please help!!

Thanks
Viewing all 16689 articles
Browse latest View live


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