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

Calling web API from report

$
0
0
Hello, hoping someone can answer a question as I'm very new to javascript and even programming in general. Our company has a web api that is used in other reporting tools to figure out the number of business days between two dates. I am able to call this in a Pentaho Dashboard already, but I would like to use it in a report also but don't know how. Here's the function that is used in our Pentaho dashboard, normally in the post-fetch of some query object to manipulate the data...

function getBusinessDays(startDate, endDate) {

var startDateNew = startDate.replace(/\//g, ".");
var endDateNew = endDate.replace(/\//g, ".");
var result = 0;
var url = 'http://mycompany/api/totbusinessdays/' + startDateNew + '/' + endDateNew;
$.getJSON(url, function(data){
result = data[0].BusinessDays;
});
return result;
}

But now I would like to use this functionality in a Pentaho Report, but I have no idea how to do any type of custom coding in Report Designer. Any suggestions or advise? Is this even possible in Report Designer? Ideally users would enter the start and end dates for each report before running, and the business days would be used in a parameter-like fashion in various expressions. I hope this can be done as I would very much like to use Pentaho for both dashboards and reports, I'm just not very knowledgeable about how to get this working in a report though. Any help would be greatly appreciated!

Set variables writes values in log

$
0
0
Hi, all.

I'm having problems with Set variables step. It is writing the values asigned in the log, and one of them is a password. I've try disabling logging in the transformation, but it is writing in the log anyway.

Does anyone know how to avoid that this step writes in the log?

Thank you in advance.

Agile BI plugin / Perspective in PDI 6.

$
0
0
Will the pmv or agilebi plugin be made available again for version 6 of CE?

Rest Client truncating result

$
0
0
I have developed the following transformation:

wholeProcess.jpg

It almost works perfectly, however the result of the Rest Client is being truncated.
I created a simple Web Service to test this process and it returns the following JSON:

browserOut.png

When the previewed the Rest Client shows that field9 and the closing bracket are missing.

I output the result of the Web Service to a field called result.

restClientEdit.jpg

Is there a size limit to the output field? Is there a way to change the size of the field? Is there a better way of handling this?
Attached Images

Copy table(s) wizard does not allow to specify a schema?

$
0
0
Greetings all,

I am new to Kettle, I am exploring its use to do an Oracle to Postgres migration. I was able to copy a large table using a dummy schema and database on the target and source. But when I went to run a more real world test using the real application schemas, I discovered on the target (Postgres) side I'm not able to specifiy the correct schema and it looks for everything in public.

So my question is can we provide a target schema in a database somehow? One the source (Oracle) side, I have no problems.

Thanks.
Alex

New Ctools Releases - 16.01.22: Commencing Countdown, Engines on

$
0
0
Commencing countdown, engines on

Can you imagine something more absolutely and completely boring than a product changelog? An endless list of jira numbers, bug fixes, features and improvements whose sight alone makes the brain cringe?


Well, think again. This is Pentaho.
Even when the task at hand seems completely disheartening, with some sleight of hand, irreverence and imagination it's possible to bring color into the otherwise black and white scene of technology.




This was exactly what the Pentaho UX team did with the latest Ctools release changelog. If you take a look, you'll find this:




Now, this is undoubtedly a really cool site. But as we all know, the devil is in the details. And there's a tiny, tiny detail here that, at least for me, turned an informative navigation into an emotional experience.
While browsing the site, make sure to pay attention to the fact that there's a star waiting in the sky. And I'm willing to bet that at least some of you won't be able to hold back a genuine smile when clicking there.




So simple. So easy. So impactful. Hats off to them.
Now, what if the rest of us could bring some of this type of magic to what we do on a daily basis? Can you just imagine what we could all achieve regardless of the task at hand? Yes?


So let's do it.


More...

Pentaho CDE Sunburst chart - valuesFont & valuesLabelStyle setting

$
0
0
Hi All,I

am working on a sunburst chart.
I need to know is there any options to set the background color of the values font. because some slices in the chart has black font & some are having white.
I want it to be uniform & able to set/change by developer.
I have tried extension points, valuesFont, valuesLabelFillStyle but nothing worked out.

Also is the any property in sunburst chart to link the labels outside of the slice? if so, how to do it? I have tried 'valuesLabelStyle' from pie chart but it is not working.

Thanks,
Lourdhu.A

Unable to create the report from HDFS

$
0
0
Hi,

I'm using the pentaho reorting designer version 6.0, i have created the ktr file and uploaded into the report designer for this i have followed below link
http://wiki.pentaho.com/display/BAD/...HDFS+File+Data

the steps are working fine up to creating ktr file. after that when i import into report designer, I am unable to view the data,getting headers only.
In logs it throwing error
2016/02/18 10:46:34 Dispatching started for transformation
2016/02/18 10:46:34 - cldb_ip_list - Shutting down heartbeat signal for cldb_ip_list

please help me out to solve the issue.

thank you.

Creating tables dynamically from a bunch of 40 different .csv files

$
0
0
Hi I'm using PDI 5.2.0 kettle, I have 40 different .csv files with different number of columns, I want to create tables from those 40 .csv files in a single transformation, is there any way to do this
Thanks in advance!!!

MetaData Injection and variables

$
0
0
We regularly use the metaData Injection step in our ETL programming and i have some issues when we use variables as database connections.
It seems that the variables are kept in-memory somewhere when using the injection step.

I thought that when using the injection step, a temporary file is made and that is executed. Is it possible that that temp file is not deleted when the job is run again from spoon?

The problem was that the database (sqlite file) wasn't found. When testing the variable is getting injected but not used in the connection part.
To resolve this, i need to restart spoon.

Can anyone explain this behaviour?

SCD and columnar databases

$
0
0
Hi there,

has anybody made experiences using the Dimension lookup/update step with columnar databases like Exasol, Vertica ...
I wonder whether the databases like ( in respect of performance ) the row-wise handling or not.

In case they don't - is there any known attempt to implement generic jobs using batch-sql to do that sort of stuff ?

Regards
Peter

S3 bucket object list

$
0
0
I need a get a list of all the objects inside a S3 bucket. After I have that I need to filter them down based on regex and date modified. Then download the remaining files using copy to local file system. Anyone of any idea on how to get the list of objects in a bucket?

Run multiple versions of PDI and Java

$
0
0
We are wanting to migrate our current environment PDI 4.4.x to 6.x. We want to keep our current environment 4.4 running while we port each Job/transformation to 6.x. The 4.4.x is using an older version of Java and the 6.x will be using the latest version of java. This will be happening on the same box (Windows).

The only gotcha that we can see is there are two hidden folders in windows called .Pentaho and .Kitchen that hold specifics to pentaho.

If anyone has done this or has recommendations on how to implement this it would be greatly appreciated.

JSON input field information

$
0
0
I am attempting to get values from a JSON file using JSON input.

Below is my JSON
Code:

{
    "indexConfig": {
        "system": {
            "precedenceRules": {
            },
            "searchIndexConfig": {
                "isWildcardEnabledInDimensionSearch": true,
                "spellingDictMaxWordLength": 16,
                "spellingDictMinNumWordOccurrences": 1,
                "spellingDictMinWordLength": 3
            },
            "attributes": {
                "Sample": {
                    "displayOrder": 1,
                    "multiSelectType": "OR",
                    "jcr:primaryType": "dimension",
                    "isAutogen": true
                }
            }
        }
    }
}

Here is my Fields tab in Pentaho


but it says "Sorry, no rows found to be previewed" when I try and preview my file. I even tried to have String type or no type at all with the same result.


Any assistance would be great.

Thanks!

Help on Line Chart no data available only first time

$
0
0
Hi everyone!! I need your help, I'm working on biserver 5.4 and CDE up to date.
My dashboard has a table which datasource gets changed depending on which button the user clicks, taking int 2 params. That's working nice.
From that table, i've defined a clickAction which alters a chart definition, taking the same 2 int params plus the table series selected.
The thing is, the first time a user clicks on that table i've got a "no data available" message, only the fist time, then if the table is show again and clicks on any series, the chart is displayed nice.

What am i doing wrong??

Table clickAction:
function g(a){
Dashboards.fireChange('PARAM1',a.series);
}
The chart listens to PARAM1
chart preExecution partial:
function a() {
render_Depto_x_Periodo.chartDefinition.title = Dashboards.getParameterValue("PARAM1");
render_Depto_x_Periodo.chartDefinition.titleFont = "bold 16px Verdana, Geneva, sans-serif";
render_Depto_x_Periodo.chartDefinition.path = "/public/Indicadores.cda";

render_Depto_x_Periodo.chartDefinition.orthoAxisTitle='Porcentaje';
render_Depto_x_Periodo.chartDefinition.orthoAxisFixedMax=100;

render_Depto_x_Periodo.chartDefinition.ortho2AxisTitle='Absoluto';
render_Depto_x_Periodo.chartDefinition.ortho2AxisPosition='right';
render_Depto_x_Periodo.chartDefinition.plot2=true;
render_Depto_x_Periodo.chartDefinition.plot2OrthoAxis=2;

switch (Dashboards.getParameterValue("Indicador")){
case "C" :
render_Depto_x_Periodo.chartDefinition.dataAccessId = "dsKettle_C";
render_Depto_x_Periodo.chartDefinition.plot2Series=['TOTAL'];
render_Depto_x_Periodo.chartDefinition.dimensions= {
series: {
formatter: function(v) {
switch(v) {
// a few case for names display
default: return v+'';
}
return v + '';
}
}
}
break;

}
}
break;
default:
break;
}
}

cde dashboards select component muiltiple dropdown

$
0
0
I wonder if you can use select component muiltiple with dropdown , like a select standard component but can select multiple fields

Call DB Procedure on SQL Server not find stored procedure

$
0
0
I have a stored proc on Sql Server where it takes 0 or 1 as input parameter and, it will output 5 fields as output. When I click on “Find it…” button, I am able to find the stored procedure and select it. But, when I am running, it is erroring out saying that it is not able to find the same stored procedure. This is the first time I am using this particular step and I am not sure if I am missing anything [Attached Image]. Also, can you please let me know whether the way I am providing parameters looks fine or not. Are we supposed to define the out parameters before calling this step?

[Environment: Pentaho 4.4 on windows server 2012]StoredProc.jpg
Attached Images

A newbie question

$
0
0
I have a reporting requirement that needs to to write back comments on the report sections in the database via a report. Can this be done via Pentaho and whats the best way - the database is mysql.

JOIN with ON conditions involving STRINGs and NOT EQUAL

$
0
0
I'm trying a self JOIN on a data set on multiple fields including strings. I find it so restricting and wonder if there is a better JOIN add on for:
1. Strings have to be Sorted (what do I do with multiple string fields?)
2. I want to specify a condition where LeftID != RightID (I'm doing a self join and don't want similar records to be compared).
Is there a better way of doing it? Thanks - Asim

Problem querying MonetDB, but connection test is fine

$
0
0
Hello, I am having trouble running an ETL job that uses a Table input to query MonetDB. Testing the Monet connection works fine and I can explore the database structure in Spoon just fine, but when I try to query anything it returns a KettleDatabaseException. The same query works fine in mclient and Pentaho BA Server can successfully query Monet using the same driver and connection details.

The full error when previewing is:

2016/02/18 19:50:05 - General - Logging plugin type found with ID: CheckpointLogTable
2016/02/18 19:51:01 - /Transformation 1 - Dispatching started for transformation [/Transformation 1]
2016/02/18 19:51:02 - Table input.0 - ERROR (version 5.2.0.0, build 1 from 2014-09-30_19-48-28 by buildguy) : Unexpected error
2016/02/18 19:51:02 - Table input.0 - ERROR (version 5.2.0.0, build 1 from 2014-09-30_19-48-28 by buildguy) : org.pentaho.di.core.exception.KettleDatabaseException:
2016/02/18 19:51:02 - Table input.0 - An error occurred executing SQL:
2016/02/18 19:51:02 - Table input.0 - SELECT *
2016/02/18 19:51:02 - Table input.0 - FROM dim_date_hour
2016/02/18 19:51:02 - Table input.0 -
2016/02/18 19:51:02 - Table input.0 -
2016/02/18 19:51:02 - Table input.0 - Error determining value metadata from SQL resultset metadata
2016/02/18 19:51:02 - Table input.0 - current transaction is aborted (please ROLLBACK)
2016/02/18 19:51:02 - Table input.0 -
2016/02/18 19:51:02 - Table input.0 -
2016/02/18 19:51:02 - Table input.0 - at org.pentaho.di.core.database.Database.openQuery(Database.java:1731)
2016/02/18 19:51:02 - Table input.0 - at org.pentaho.di.trans.steps.tableinput.TableInput.doQuery(TableInput.java:224)
2016/02/18 19:51:02 - Table input.0 - at org.pentaho.di.trans.steps.tableinput.TableInput.processRow(TableInput.java:138)
2016/02/18 19:51:02 - Table input.0 - at org.pentaho.di.trans.step.RunThread.run(RunThread.java:62)
2016/02/18 19:51:02 - Table input.0 - at java.lang.Thread.run(Unknown Source)
2016/02/18 19:51:02 - Table input.0 - Caused by: org.pentaho.di.core.exception.KettleDatabaseException:
2016/02/18 19:51:02 - Table input.0 - Error determining value metadata from SQL resultset metadata
2016/02/18 19:51:02 - Table input.0 - current transaction is aborted (please ROLLBACK)
2016/02/18 19:51:02 - Table input.0 -
2016/02/18 19:51:02 - Table input.0 - at org.pentaho.di.core.row.value.ValueMetaBase.getValueFromSQLType(ValueMetaBase.java:4630)
2016/02/18 19:51:02 - Table input.0 - at org.pentaho.di.core.database.Database.getValueFromSQLType(Database.java:2300)
2016/02/18 19:51:02 - Table input.0 - at org.pentaho.di.core.database.Database.getRowInfo(Database.java:2246)
2016/02/18 19:51:02 - Table input.0 - at org.pentaho.di.core.database.Database.openQuery(Database.java:1727)
2016/02/18 19:51:02 - Table input.0 - ... 4 more
2016/02/18 19:51:02 - Table input.0 - Caused by: java.sql.SQLException: current transaction is aborted (please ROLLBACK)
2016/02/18 19:51:02 - Table input.0 - at nl.cwi.monetdb.jdbc.MonetConnection$ResponseList.executeQuery(MonetConnection.java:2535)
2016/02/18 19:51:02 - Table input.0 - at nl.cwi.monetdb.jdbc.MonetConnection$ResponseList.processQuery(MonetConnection.java:2284)
2016/02/18 19:51:02 - Table input.0 - at nl.cwi.monetdb.jdbc.MonetStatement.internalExecute(MonetStatement.java:508)
2016/02/18 19:51:02 - Table input.0 - at nl.cwi.monetdb.jdbc.MonetStatement.execute(MonetStatement.java:349)
2016/02/18 19:51:02 - Table input.0 - at nl.cwi.monetdb.jdbc.MonetStatement.executeQuery(MonetStatement.java:525)
2016/02/18 19:51:02 - Table input.0 - at nl.cwi.monetdb.jdbc.MonetDatabaseMetaData.getColumns(MonetDatabaseMetaData.java:1746)
2016/02/18 19:51:02 - Table input.0 - at nl.cwi.monetdb.jdbc.MonetResultSet$1.getColumnResultSet(MonetResultSet.java:1391)
2016/02/18 19:51:02 - Table input.0 - at nl.cwi.monetdb.jdbc.MonetResultSet$1.getPrecision(MonetResultSet.java:1179)
2016/02/18 19:51:02 - Table input.0 - at org.pentaho.di.core.row.value.ValueMetaBase.getOriginalColumnMetadata(ValueMetaBase.java:4650)
2016/02/18 19:51:02 - Table input.0 - at org.pentaho.di.core.row.value.ValueMetaBase.getValueFromSQLType(ValueMetaBase.java:4609)
2016/02/18 19:51:02 - Table input.0 - ... 7 more
2016/02/18 19:51:02 - /Transformation 1 - ERROR (version 5.2.0.0, build 1 from 2014-09-30_19-48-28 by buildguy) : Something went wrong while trying to stop the transformation: org.pentaho.di.core.exception.KettleDatabaseException:
2016/02/18 19:51:02 - /Transformation 1 - Error cancelling statement
2016/02/18 19:51:02 - /Transformation 1 - Query cancelling is currently not supported by the DBMS.
2016/02/18 19:51:02 - /Transformation 1 - ERROR (version 5.2.0.0, build 1 from 2014-09-30_19-48-28 by buildguy) : org.pentaho.di.core.exception.KettleDatabaseException:
2016/02/18 19:51:02 - /Transformation 1 - Error cancelling statement
2016/02/18 19:51:02 - /Transformation 1 - Query cancelling is currently not supported by the DBMS.
2016/02/18 19:51:02 - /Transformation 1 -
2016/02/18 19:51:02 - /Transformation 1 - at org.pentaho.di.core.database.Database.cancelStatement(Database.java:697)
2016/02/18 19:51:02 - /Transformation 1 - at org.pentaho.di.core.database.Database.cancelQuery(Database.java:678)
2016/02/18 19:51:02 - /Transformation 1 - at org.pentaho.di.trans.steps.tableinput.TableInput.stopRunning(TableInput.java:287)
2016/02/18 19:51:02 - /Transformation 1 - at org.pentaho.di.trans.Trans.stopAll(Trans.java:1889)
2016/02/18 19:51:02 - /Transformation 1 - at org.pentaho.di.trans.step.BaseStep.stopAll(BaseStep.java:2866)
2016/02/18 19:51:02 - /Transformation 1 - at org.pentaho.di.trans.step.RunThread.run(RunThread.java:93)
2016/02/18 19:51:02 - /Transformation 1 - at java.lang.Thread.run(Unknown Source)
2016/02/18 19:51:02 - /Transformation 1 - Caused by: java.sql.SQLException: Query cancelling is currently not supported by the DBMS.
2016/02/18 19:51:02 - /Transformation 1 - at nl.cwi.monetdb.jdbc.MonetStatement.cancel(MonetStatement.java:298)
2016/02/18 19:51:02 - /Transformation 1 - at org.pentaho.di.core.database.Database.cancelStatement(Database.java:691)
2016/02/18 19:51:02 - /Transformation 1 - ... 6 more
2016/02/18 19:51:02 - Table input.0 - Finished reading query, closing connection.
2016/02/18 19:51:02 - iis_data_mart - ERROR (version 5.2.0.0, build 1 from 2014-09-30_19-48-28 by buildguy) : Error disconnecting from database:
2016/02/18 19:51:02 - iis_data_mart -
2016/02/18 19:51:02 - iis_data_mart - Error comitting connection
2016/02/18 19:51:02 - iis_data_mart - COMMIT: failed
2016/02/18 19:51:02 - iis_data_mart - ERROR (version 5.2.0.0, build 1 from 2014-09-30_19-48-28 by buildguy) : org.pentaho.di.core.exception.KettleDatabaseException:
2016/02/18 19:51:02 - iis_data_mart - Error comitting connection
2016/02/18 19:51:02 - iis_data_mart - COMMIT: failed
2016/02/18 19:51:02 - iis_data_mart -
2016/02/18 19:51:02 - iis_data_mart - at org.pentaho.di.core.database.Database.commit(Database.java:769)
2016/02/18 19:51:02 - iis_data_mart - at org.pentaho.di.core.database.Database.commit(Database.java:741)

I'm at a loss here, the exact same setup works fine on other servers, so I believe it may be an environment issue. Does anybody have any ideas for me to try?

Thank you.
Viewing all 16689 articles
Browse latest View live


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