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

Regex Evaluation (group capturing) documentation error?

$
0
0
Hi all,

I'm quite new to PDI and I ran into something unexpected using the Regex Evaluation step in PDI (5.4.0.1-130, Windows 10)
The goal was to capture a piece of a large string, hence the Regex Eval/ Capture Group step.
The documentation page shows this example to isolate two groups from one input string:
^"([^"]*)" - (\d*) posts$
I could not get this to work until I changed the first character to a backslash instead of the caret.
\"([^"]*)" - (\d*) posts$

Is this an error in the documentation, or am I missing something else? First thought was a version difference, but the behavior is the same on a RegEx learing/testing page. Slash works, caret does not. And this is probably more of a question to ask in the documentation wiki comments; doesn't look like I can use the forum login for that. Or does it take a while for those to get synchronized?

Thanks.

Report designer, subreport does not appear in pdf report

$
0
0
Hi,

Pentaho version: 5.4/6.0.1 EE
OS: Redhat Enterprise Edition 7/Ubuntu 14.04/CentOS 6

I have created a report that it is referenced by a Pentaho Report Output step in a kettle transformation. The report has been generated without any problems at my design environment (Ubuntu/Pentaho 5.4 EE) but it fails to load a sub-report section at the two production environments (RH 7/Pentaho 6.0.1 EE, CentOS 6/Pentaho 5.4 EE). I would provide more information but i am not able to find any form of logs regarding the generation of the report, apart from the kettle logs that doesn't give any information regarding that.

Sending Email Alerts (success/ failure) -- do you need real email sender?

$
0
0
Hi there --

I'm pretty green/ new when it comes to things related to mail servers, etc.

I was told by our tech team that an actual email address is not required to send emails (only to receive them perhaps) --- perhaps some sort of alias can simply send alerts.


Anyway within the context of Pentaho Data Integrations "Send Mail" job entry --- in which I've typically been entering SMTP Server info + user authentication + password ---- well I guess what I'm asking is, what's the best practice here in terms of sending alerts for success/ failure for ETL jobs?

Like, I wouldn't feed in my personal email address to send alerts, right? It would be prudent to set up a dummy or 'no-reply' email address, correct? But do I just set up a traditional corporate/ whatever email address for this purpose?

Any thoughts welcome -

database and table mapping

$
0
0
How to change the database and table names in a report or subreport in my code?

Examples


Code:


SELECT
DISTINCT "DB_DEVELOPER"."T_123456789"."VAL_FFIELD"
FROM "DB_DEVELOPER"."T_123456789"



to

Code:


SELECT
DISTINCT "DB_CUSTOMER"."T_ABCDEFG"."VAL_FFIELD"
FROM "DB_CUSTOMER"."T_ABCDEFG"

I tried this with Parameters ${db} and ${table} but this does not work.

Sub-transformation/Mapping Question

$
0
0
Hello All,

I have a requirement to use files across multiple transformations. These transformations are to be used in various jobs.
For this reason, I intend to write the transformation which will do operations on the file (Say Load-Transformation). This Load-Transformation shall be used in another transformation where the fields are to be used.
How can this be achieved? I have tried to use sub-transformation (mapping) but could not understand how to use for this scenario.

Regards,
Purvesh Kulkarni.

Get orthoaxis value to use in Extension points

$
0
0
hello.

Is there any way to get the max value of a numeric orthoaxis?

Thanks

Help reading variable lenth record files into tree database tables

$
0
0
Hello everyone,

Being new on Kettle and i'm studying it and looking for hints.

I have to put the attacched files into three database tables.

The information are organized into different blocks starting with a line start label ST001 and ending with ED001.

You may thus consider ST001 and ED001 like headers and footers of a unique block of information.

The other records within this block start with a block line sequential number (7 bytes) + a 3 bytes record type.

For each block I have to populate 3 databases related tables:

table_1 ---->> contains header
table_2 ---->> contains record type 001
table_3 ---->> contains record type from 002 to 006

table_1 is related with table_2 (table_2.id_table_1 = table_1.id)
table_2 is related with table_3 (table_3.id_table_2 = table_2.id)

Can you provide information about the steps of the transformation process?

Thanks a lot,


Best regards
Attached Files

Reading JSON file using http Post

$
0
0
I am trying to read JSON file with the API key using HTTP Post request but somehow it is not working:

Details:

File location:
URL : http://prelive.viatorapi.viator.com/service/directory
When we go to that URL it is located under: /service/search/products
In the Transformation, I am using HTTP Post to JSON Input (Kindly see the Main.jpeg attached)
I use the API key to access this JSON file, so I am inserting this information in HTTPPOST Fields Tab. (screenshot attached).

After that I am trying read the JSON Fields data from HTTP POST to JSON Input.

Somehow, this HTTP Post option does not read the data.

Can you kindly help me how to use this HTTP POST? I need simple example to use this HTTP Post, will be gld if someone can provide more information on that?

HTTPPOST_Fields.jpgHTTPPOST_Genaral.jpgMain.JPG

Regards,
Krishna
Attached Images

Calculated Columns

$
0
0
Hi,
I have created a table and as a datasource I have a mdx query, I would like to add a column where the value is a simple formula (Column A - Column B).
When I try to do this, I do not see any additional column.
Would someone know how to explain this property?
Thanks in advance to those who will help me.

PS

This is the MDX Query:
WITH
SET [~COLUMNS] AS
{[Anno].[Anno].Members}
SET [~ROWS] AS
{[Regime Ricovero].[Day Hospital]}
SELECT
NON EMPTY CrossJoin([~ROWS], {[Measures].[Numero di Casi], [Measures].[Numero di Pazienti Ricoverati], [Measures].[Accessi Medi], [Measures].[Numero di Interventi]}) ON ROWS,
NON EMPTY [~COLUMNS] ON COLUMNS
FROM [Cubo Virtuale Report Dati Attività]

and this the relative table:
Screenshot from 2016-02-16 15:37:13.png
Attached Images

Fixed columns size in dynamic report

Read file on PDI Server (linux) from Windows PDI client

$
0
0
I have a CSV file on LINUX (my PDI server is on Linux) and I have PDI / Spoon client on Windows.

How to read the CSV file on located in server / LINUX from PDI / Spoon on Windows ?

Plz lemme know.

creating multiple tabs within a report

$
0
0
Hello. I'm new to Pentaho. Is it possible to save multiple reports (or "tabs") within one report? Thanks!!

Field Type for different Data types

$
0
0
Hi

I have a report sql with columns of different data types.

Please let me while designing the report in Details section what field type should I add for clob data type.

Also for the columns as Big Decimal, Integer and Number type I am using the same number-field in Details section. Will it be fine?. I am not sure for Integer and Big Decimal since both classes are different.

Please let me know in case you have faced any issues with these fields.

Thanks,
Megha

Data validator halts execution when reaching invalid field.

$
0
0
Hello everyone. I'm a new Pentaho user and have gotten stuck on an error handling issue for a simple ETL routine. Here are the details of my setup:

  • I am writing a transformation to read a csv-formatted table, check that all the row entries are formatted properly, and write out to a database.
  • I am using the Data Validator for the middle step, to verify that the data type of the first field ("rim_no") in the csv table is a number.
  • I have enabled error handling from the Data Validator, with provision to write out bad rows to a text file.


Here is the problem:
  • The first time it comes to a row with an invalidly formatted first field (for example, a string rather than an integer), the transformation halts execution with the following error:


2016/02/17 00:59:06 - Data Validator.0 - Read row #505 : [40229], [2013-04-26 00:00:00], [10], [Active ], [95], [2013-04-26 00:00:00], ...2016/02/17 00:59:06 - Data Validator.0 - Wrote row #0 : [40229], [2013-04-26 00:00:00], [10], [Active ], [95], [2013-04-26 00:00:00], ...
2016/02/17 00:59:06 - Data Validator.0 - ERROR (version 6.0.1.0-386, build 1 from 2015-12-03 11.37.25 by buildguy) : Unexpected error
2016/02/17 00:59:06 - Data Validator.0 - ERROR (version 6.0.1.0-386, build 1 from 2015-12-03 11.37.25 by buildguy) : org.pentaho.di.core.exception.KettleValueException:
2016/02/17 00:59:06 - Data Validator.0 - Unexpected conversion error while converting value [rim_no String] to an Integer
2016/02/17 00:59:06 - Data Validator.0 -
2016/02/17 00:59:06 - Data Validator.0 - rim_no String : couldn't convert String to Integer
2016/02/17 00:59:06 - Data Validator.0 -
2016/02/17 00:59:06 - Data Validator.0 - rim_no String : couldn't convert String to number : non-numeric character found at position 2 for value [1) 3 to 5 for PPBACL]
2016/02/17 00:59:06 - Data Validator.0 -
2016/02/17 00:59:06 - Data Validator.0 -

I have read everything I can in the forums, and on Google, about this and related issues.
Here is my question:
  • Why does Data Validator abort the transformation when it comes across a badly formatted entry? I thought this was precisely what it was designed to handle. And why is it trying to convert the bad format (String) to an Integer, instead of triggering the error handler?
Attached Images

how to use the parameter in the HTML of layout panel?

$
0
0
I add a html page in the pentaho cde layout panel like the following, but i want to replace the ip(localhost) to a simpler parameter which in the component panel. how to do that?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html ng-app="app">
<head>
<meta charset="utf-8" />
<title>dashboard</title>
<meta http-equiv="X-UA-Compatible" content="IE=9" />
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" />
</head>
<body>
<div class="header" style="color: rgb(255, 255, 255); background: rgb(0, 44, 95);">
<div class="adaptive-image parbase parent section"> </div>


<ul class="nav nav-pills pull-right">
<li><a href="http://localhost:8080/index.html#/" style="height: 38px;">Home</a></li>


</ul>
</div>
</body>
</html>

Does PRD support MySQL aes_decrypt?

$
0
0
Hello,

I have tried to use aes_decrypt in a MySQL query but the decryption doesn't work properly. That query works if it's executed directly in MySQL Workbench. So, is it possible to use it in PRD?

Thank you.

Currency Convertion

$
0
0
Hi ,

I need to convert amount from USD to INR using PDI on daily basis. I have tried. But the value of result is -1. Please anyone help me

Sort columns

$
0
0
How do I sort a column in a table as it is ordered in Saiku?
In schema workbench I used ordinal column to sort by the id, but in the dashboard sort by alphabetical order.
Thanks in advance to those who will help me.

Line Breaking in Line Chart

$
0
0
Hi All,

I am new to pentaho dashboard.
I am creating line chart but the lines in this chart is breaking.
I mean i am not getting consistent lines.
Chart created using pentaho:
getting.PNG

I don't know what might be the reason of it.
does anyone know how can i get consistent lines?
Chart Required:
required.PNG
Thank you
Preeti Agrawal
Attached Images

CDE Responsive Datatables with Bootstrap

$
0
0
Hi forums,


I'm new in CDE and I need your help.


My problem is that I'm trying to do a responsive dashboard, for that I followed this tutorial : http://pedroalves-bi.blogspot.fr/201...orial-and.html


The dashboard was already created in blueprint and I want to switch it in bootstrap, and almost everything is responsive, except the most important things in the Dashboard the Data-tables. The Data-tables keep the same size and I don't know why. I've tried a lot of things, but nothing seems to work.


Can someone help me please ?
Viewing all 16689 articles
Browse latest View live


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