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

Pentaho Report Designer MDX Parameter - ALL


Using a stored procedure in transformation

$
0
0
Hello!
I am trying to convert a stored procedure written in oracle in a transformation. The stored procedure consists of vairable declarations and SQL code consists of an insert into statment which inserts about 300 columns into a table, and then a select statement which selects same number of columns to extract from different tables and insert into the previously mentioned table.

INSERT INTO EQTY_GTR_POSITION_PSA_R
(
PSA_POSITION_ID,
...........................
...........................
..............................
)
SELECT
PSA_POSITION_ID,
................
.................
..................
FROM EQTY_GTR_POSITION_PSA

WHERE MOST_RECENT_POSITION_FL <> 'N'
AND (MOST_RECENT_POSITION_FL = 'Y' OR UPDATE_TS > FROMTSTAMP.

where FROMTSTAMP is a defined variable. When i run this transformation as putting select code in an input table and insert into code in an out table. I get the error, FROMTSTAMP is an invalid idenitifer. Any idea how i can define the definition of FROMTSTAMP in the transformation?

Not able to display CDE dashboard in IE 10

$
0
0
Hi,
I am using pentaho 4.8 CDE dashboard on windows platform. But I am not able to display Dashboards in IE10.
I have tried many options, Updated the all plugin versions also as per defined in previous threads.
But nothing is helping. When I open dashboard in IE10 , only UI is getting loaded , charts are not loading.
Can any one please help me?

Regards,
Neelam

Postgres Query length limit

$
0
0
Hi,

We are writing to a Postgres table, which stores the log text of the kettle job. The problem we are facing is that, whenever we run the job in detailed logging or higher logging mode, the query gets truncated and we get an error saying the syntax is incorrect.

What we want to know is:
- Is there a query size limit in the Postgres driver
- How do we set it in Kettle

Any inputs would be really helpful...

Thanks,
Vinod

change the format of date range input component

$
0
0
How to change the format of date range input component in cde.i am getting the format 'yyyy-mm-dd' but i need to change into 'dd-M-yy'.i have return a function under post execution section :

function()
{
var date1 = Dashboards.getParameterValue("parfromDate").toString();

var date2 = Dashboards.getParameterValue("partoDate").toString();
//alert(date1)
//alert(date2)

format = $.datepicker.formatDate("dd-M-yy",new Date(date1));

format2 = $.datepicker.formatDate("dd-M-yy",new Date(date2));


document.getElementById('render_SelectDate').value=format:format2;

}

the same function was working perfect in date input component but i m facing problem in date range component can any one suggest me where i m doing wrong ..

JDBC-ODBC is definitely over?

$
0
0
Hi everybody,
Oracle with jre/jdk 8 removed jdbc-odbc bridge, before working on the migration of all the transformations made with odbc, are there any workarounds, tips or tricks to use the odbc connection with kettle?

Thanks

ale

Pentaho Contacts

$
0
0
Hi,

Our pen testers have discovered a possible security issue with version 4.5 of the Pentaho server. We don't have a support contract and we're using the CE version of Pentaho. Is there a contact within Pentaho that I can send the details on to?

Ps. I've tried to look on the forums regarding this problem but haven't found anything similar.

Thanks
Ritesh

File and Directory structure in Pentaho BI server ce-5.2

$
0
0
I am successfully using Pentaho BI server ce-5.2 in tomcat. I have installed saiku plugin and saved some .saiku files. But I am not aware of the file structure it is having, in the "browse file" section. So, anyone please tell me how to physically get the file or even at least the directory structure, so that I can fire a web service to saiku with the path like

http://localhost:8080/pentaho/conten...ue#query/open/public%3ASteel%20Wheels%3AAnalysis%3Ademo.saiku

Thanks for any help !

Oracle database connection error

$
0
0
Hai I am using pentaho community edition, I am trying to connect to my oracle database but I could not do it. I downloaded the drivers and placed in lib directory but still I could not connect to the database. THIS IS THE ERROR AM GETTING WHEN I TEST FOR CONNECTION. PLEASE HELP ME OUT. Error connecting to database [oracle_db] : org.pentaho.di.core.exception.KettleDatabaseException: Error occured while trying to connect to the database Error connecting to database: (using class oracle.jdbc.driver.OracleDriver) Listener refused the connection with the following error: ORA-12505, TNS:listener does not currently know of SID given in connect descriptor org.pentaho.di.core.exception.KettleDatabaseException: Error occured while trying to connect to the database Error connecting to database: (using class oracle.jdbc.driver.OracleDriver) Listener refused the connection with the following error: ORA-12505, TNS:listener does not currently know of SID given in connect descriptor at org.pentaho.di.core.database.Database.normalConnect(Database.java:368) at org.pentaho.di.core.database.Database.connect(Database.java:317) at org.pentaho.di.core.database.Database.connect(Database.java:279) at org.pentaho.di.core.database.Database.connect(Database.java:269) at org.pentaho.di.core.database.DatabaseFactory.getConnectionTestReport(DatabaseFactory.java:86) at org.pentaho.di.core.database.DatabaseMeta.testConnection(DatabaseMeta.java:2464) at org.pentaho.ui.database.event.DataHandler.testDatabaseConnection(DataHandler.java:533) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at org.pentaho.ui.xul.impl.AbstractXulDomContainer.invoke(AbstractXulDomContainer.java:329) at org.pentaho.ui.xul.impl.AbstractXulComponent.invoke(AbstractXulComponent.java:139) at org.pentaho.ui.xul.impl.AbstractXulComponent.invoke(AbstractXulComponent.java:123) at org.pentaho.ui.xul.swt.tags.SwtButton.access$500(SwtButton.java:26) at org.pentaho.ui.xul.swt.tags.SwtButton$4.widgetSelected(SwtButton.java:119) at org.eclipse.swt.widgets.TypedListener.handleEvent(Unknown Source) at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source) at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source) at org.eclipse.jface.window.Window.runEventLoop(Window.java:820) at org.eclipse.jface.window.Window.open(Window.java:796) at org.pentaho.ui.xul.swt.tags.SwtDialog.show(SwtDialog.java:378) at org.pentaho.ui.xul.swt.tags.SwtDialog.show(SwtDialog.java:304) at org.pentaho.di.ui.core.database.dialog.XulDatabaseDialog.open(XulDatabaseDialog.java:115) at org.pentaho.di.ui.core.database.dialog.DatabaseDialog.open(DatabaseDialog.java:62) at org.pentaho.di.ui.spoon.delegates.SpoonDBDelegate.newConnection(SpoonDBDelegate.java:493) at org.pentaho.di.ui.spoon.delegates.SpoonDBDelegate.newConnection(SpoonDBDelegate.java:478) at org.pentaho.di.ui.spoon.Spoon.doubleClickedInTree(Spoon.java:2777) at org.pentaho.di.ui.spoon.Spoon.access$1900(Spoon.java:310) at org.pentaho.di.ui.spoon.Spoon$24.widgetDefaultSelected(Spoon.java:5275) at org.eclipse.swt.widgets.TypedListener.handleEvent(Unknown Source) at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source) at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source) at org.pentaho.di.ui.spoon.Spoon.readAndDispatch(Spoon.java:1183) at org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:6968) at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:567) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at org.pentaho.commons.launcher.Launcher.main(Launcher.java:134) Caused by: org.pentaho.di.core.exception.KettleDatabaseException: Error connecting to database: (using class oracle.jdbc.driver.OracleDriver) Listener refused the connection with the following error: ORA-12505, TNS:listener does not currently know of SID given in connect descriptor at org.pentaho.di.core.database.Database.connectUsingClass(Database.java:504) at org.pentaho.di.core.database.Database.normalConnect(Database.java:352) ... 44 more Caused by: java.sql.SQLException: Listener refused the connection with the following error: ORA-12505, TNS:listener does not currently know of SID given in connect descriptor at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:489) at oracle.jdbc.driver.PhysicalConnection.(PhysicalConnection.java:553) at oracle.jdbc.driver.T4CConnection.(T4CConnection.java:254) at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32) at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:528) at java.sql.DriverManager.getConnection(DriverManager.java:664) at java.sql.DriverManager.getConnection(DriverManager.java:208) at org.pentaho.di.core.database.Database.connectUsingClass(Database.java:499) ... 45 more Caused by: oracle.net.ns.NetException: Listener refused the connection with the following error: ORA-12505, TNS:listener does not currently know of SID given in connect descriptor at oracle.net.ns.NSProtocol.connect(NSProtocol.java:399) at oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:1140) at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:340) ... 52 more Hostname : localhost Port : 1521 Database name : hr

Role-Playing dimensions result in "Duplicate Joins detected" error

$
0
0
I want to create a Mondrian Cube in Pentaho for routes with the following information that includes two role-playin dimensions

Facts

  • Number of passengers
  • Income

Dimensions:

  • Country -> City (Role: Route_origin)
  • Country -> City (Role: Route_destination)
  • Year -> Month -> Day

The Pentaho Data Source Wizard ask me about the tables and relationships that need to be used. I tried to create the cube reusing the Country -> City Dimension table but the Wizard complains with the message: Duplicate Joins detected: That join condition already exists. Check the table and join key and try again.



Should I create two different tables with the same data? If not how I am supposed to do it?

Read several ms access files

$
0
0
Hi all,

I am trying to perform a ETL to extract information from several mdb files.
I need to execute the same query over each mdb file. To do this, first I put a Microsoft Access Input with a regular expression .\*.\mdb to obtain all of them from a folder. But now, I don't know how to follow. I am trying to create a ms access connection but I can't.
I am a noob in Pentaho, please can you help me?

Thanks!

dynamic report

$
0
0
Hi all,


as a beginner user(PRD) I am preciously seeking anyone help , to figure out how to make good use of groups to create something like the below example . Bearing in mind i have several queries to create the below sample.

example:

14/01/2014 déc-13
Amounts in [LOCAL CURRENCY] End of current month
Quality of loan portfolio Number Volume %
Total Portfolio 0 0
of which: PAR > 0 - -
of which: PAR > 30 - -
of which: PAR > 90 - -
of which: on time rescheduled loans - -
Loans written off in the month - -
Loans written off since beginning of year
Loans recovered since beginning of year 0,0%
Annualised write-off ratio
Product N.1 0 0
of which: PAR > 0
of which: PAR > 30
of which: PAR > 90
of which: on time rescheduled loans
Loans written off in the month
Loans written off since beginning of year
Loans recovered since beginning of year 0,0%
Annualised write-off ratio
Product N.2 0 0
of which: PAR > 0
of which: PAR > 30
of which: PAR > 90
of which: on time rescheduled loans
Loans written off in the month
Loans written off since beginning of year
Loans recovered since beginning of year 0,0%
Annualised write-off ratio

Basically, i am having issues with the display of several queries in a group. since i am looking at generating individual product with different information in each group as shown above.

I really hope i make sense so far...................

Please all i am depressed and would way much appreciate few advice on this matter.

Thanks in advance

Dynamic Mapping and Lookups

$
0
0
Hi All,

I'm new to Pentaho and would like to know if this is possible.
  1. We have several input files(with different structures), and I would like to know if there is a way to dynamically map the source fields to target fields using a mapping document.
  2. For MDM, we have several lookups as well where the codes need to be standardized.


Is there a dynamic way to lookup and map to the target fields. Following are the use cases:

lookup type sourcefield(SF1) SourceValue(SV1) SF2 SV2 targetfield(TF1) targetvalue
plain mapping
SF1=TF1
sfield1 1 tfield2 1
value(conditional) and mapping sfield2 1 tfield3 Male
value(conditional) and mapping sfield2 0 tfield3 Female
two value(conditional) and mapping sfield4 1 sfield5 4 tfield6 x
Appreciate any suggestions.

Problem with Hierarchies showing duplicate values

$
0
0
Hell all,

I have a hierarchy, Survey Type --> Survey Title --> Question Type --> Question

The hierarchy works fine except it shows duplicate values for the level. For example, if I pull only "Question Type" onto the rows in analyzer, I only want to see one of each question type. What I am getting are question types repeating for each # of Questions there are per type. I noticed this happens in my date hierarchy. The Pentaho sample reports do the same with their date hierarchy.

An illustration
If I drag JANUARY onto analyzer from the date hierarchy, I want to see one value "JANUARY", but what happens is I see JANUARY repeated once for each year.

Anybody know how force mondrian to do select distinct when in a hierarchy?

Modified Javascript Value Steps: compiling error

$
0
0
I tried to validate the javascript, but got the below error. How can i get more detail information instead of only getting the below error.

Thanks

dified Java Script Value.0 - Start Script found!
2015/02/17 21:50:12 - Modified Java Script Value.0 - ERROR (version 3.2.5.9, build 3.2.5.9 from 02/11/2015 by jenkins) : Unexpected error :
2015/02/17 21:50:12 - Modified Java Script Value.0 - ERROR (version 3.2.5.9, build 3.2.5.9 from 02/11/2015 by jenkins) : org.pentaho.di.core.exception.KettleValueException:
2015/02/17 21:50:12 - Modified Java Script Value.0 - ERROR (version 3.2.5.9, build 3.2.5.9 from 02/11/2015 by jenkins) : Couldn't compile javascript:
2015/02/17 21:50:12 - Modified Java Script Value.0 - ERROR (version 3.2.5.9, build 3.2.5.9 from 02/11/2015 by jenkins) : missing ( before condition (script#24)
2015/02/17 21:50:12 - Modified Java Script Value.0 - ERROR (version 3.2.5.9, build 3.2.5.9 from 02/11/2015 by jenkins) :
2015/02/17 21:50:12 - Modified Java Script Value.0 - ERROR (version 3.2.5.9, build 3.2.5.9 from 02/11/2015 by jenkins) : at org.pentaho.di.trans.steps.scriptvalues_mod.ScriptValuesMod.addValues(ScriptValuesMod.java:289)
2015/02/17 21:50:12 - Modified Java Script Value.0 - ERROR (version 3.2.5.9, build 3.2.5.9 from 02/11/2015 by jenkins) : at org.pentaho.di.trans.steps.scriptvalues_mod.ScriptValuesMod.processRow(ScriptValuesMod.java:667)
2015/02/17 21:50:12 - Modified Java Script Value.0 - ERROR (version 3.2.5.9, build 3.2.5.9 from 02/11/2015 by jenkins) : at org.pentaho.di.trans.step.BaseStep.runStepThread(BaseStep.java:2890)
2015/02/17 21:50:12 - Modified Java Script Value.0 - ERROR (version 3.2.5.9, build 3.2.5.9 from 02/11/2015 by jenkins) : at org.pentaho.di.trans.steps.scriptvalues_mod.ScriptValuesMod.run(ScriptValuesMod.java:731)
2015/02/17 21:50:12 - Modified Java Script Value.0 - ERROR (version 3.2.5.9, build 3.2.5.9 from 02/11/2015 by jenkins) : Caused by: org.mozilla.javascript.EvaluatorException: missing ( before condition (script#24)
2015/02/17 21:50:12 - Modified Java Script Value.0 - ERROR (version 3.2.5.9, build 3.2.5.9 from 02/11/2015 by jenkins) : at org.mozilla.javascript.DefaultErrorReporter.runtimeError(DefaultErrorReporter.java:109)
2015/02/17 21:50:12 - Modified Java Script Value.0 - ERROR (version 3.2.5.9, build 3.2.5.9 from 02/11/2015 by jenkins) : at org.mozilla.javascript.DefaultErrorReporter.error(DefaultErrorReporter.java:96)
2015/02/17 21:50:12 - Modified Java Script Value.0 - ERROR (version 3.2.5.9, build 3.2.5.9 from 02/11/2015 by jenkins) : at org.mozilla.javascript.Parser.addError(Parser.java:146)
2015/02/17 21:50:12 - Modified Java Script Value.0 - ERROR (version 3.2.5.9, build 3.2.5.9 from 02/11/2015 by jenkins) : at org.mozilla.javascript.Parser.reportError(Parser.java:160)
2015/02/17 21:50:12 - Modified Java Script Value.0 - ERROR (version 3.2.5.9, build 3.2.5.9 from 02/11/2015 by jenkins) : at org.mozilla.javascript.Parser.mustMatchToken(Parser.java:246)
2015/02/17 21:50:12 - Modified Java Script Value.0 - ERROR (version 3.2.5.9, build 3.2.5.9 from 02/11/2015 by jenkins) : at org.mozilla.javascript.Parser.condition(Parser.java:665)
2015/02/17 21:50:12 - Modified Java Script Value.0 - ERROR (version 3.2.5.9, build 3.2.5.9 from 02/11/2015 by jenkins) : at org.mozilla.javascript.Parser.statementHelper(Parser.java:744)
2015/02/17 21:50:12 - Modified Java Script Value.0 - ERROR (version 3.2.5.9, build 3.2.5.9 from 02/11/2015 by jenkins) : at org.mozilla.javascript.Parser.statement(Parser.java:708)
2015/02/17 21:50:12 - Modified Java Script Value.0 - ERROR (version 3.2.5.9, build 3.2.5.9 from 02/11/2015 by jenkins) : at org.mozilla.javascript.Parser.parse(Parser.java:401)
2015/02/17 21:50:12 - Modified Java Script Value.0 - ERROR (version 3.2.5.9, build 3.2.5.9 from 02/11/2015 by jenkins) : at org.mozilla.javascript.Parser.parse(Parser.java:338)
2015/02/17 21:50:12 - Modified Java Script Value.0 - ERROR (version 3.2.5.9, build 3.2.5.9 from 02/11/2015 by jenkins) : at org.mozilla.javascript.Context.compileImpl(Context.java:2252)
2015/02/17 21:50:12 - Modified Java Script Value.0 - ERROR (version 3.2.5.9, build 3.2.5.9 from 02/11/2015 by jenkins) : at org.mozilla.javascript.Context.compileString(Context.java:1240)
2015/02/17 21:50:12 - Modified Java Script Value.0 - ERROR (version 3.2.5.9, build 3.2.5.9 from 02/11/2015 by jenkins) : at org.mozilla.javascript.Context.compileString(Context.java:1229)
2015/02/17 21:50:12 - Modified Java Script Value.0 - ERROR (version 3.2.5.9, build 3.2.5.9 from 02/11/2015 by jenkins) : at org.pentaho.di.trans.steps.scriptvalues_mod.ScriptValuesMod.addValues(ScriptValuesMod.java:287)
2015/02/17 21:50:12 - Modified Java Script Value.0 - ERROR (version 3.2.5.9, build 3.2.5.9 from 02/11/2015 by jenkins) : ... 3 more

Report Designer's Data Set usage problem

$
0
0
Hi all,
I asked my question in Stackoverflow, and received no reply.
Maybe in this forum somebody will help.

Let me explain my problem,
in Pentaho Report Designer I want to build such a report, where I have one data set, i.e. one request to database

Code:

SELECT code, name FROM EMPLOYEES

and show result of this request NOT in the form of list, but put every result in appropriate place. i.e. like in below picture

prd.jpg

Where field "code" is unique, just one result can be put into red label in picture.

How can I do this in Pentaho Report Designer?

I can solve this problem by creating 3 data set, for each of caption. But what if captions like this will be much more, creating requests for each of this caption will not be so effective.

Hope I could explain my question.
Attached Images

Reporting using HDFS flat files

$
0
0
Hi there,

I have a bunch of flat logfiles that I am want to process for reporting purposes which currently sit on a HDFS cluster.

The intention is to ingest the files, extract its fields (via regex or whatever other method available) and perform some basic reporting like number of hits to a particular page, top visitors, etc.

Prior to looking into PDI I played a bit with Splunk's Hunk. The software works by splitting its jobs across cluster nodes using Yarn, meaning I can have a reasonably lightweight Hunk server that relies on harvesting computing power from the nodes to complete its jobs.


However, after reading the PDI documentation I ended with the impression that while reading the files from HDFS should be trivial, the data and reporting would be read from the HDFS cluster but processed by the Pentaho platform rather than the cluster itself (unless I design this job as a MapReduce job).

Is this understanding correct?

Unique level members

$
0
0
Hi everyone!

I'm having problem with hierarchies in mondrian.
There is a table with some hierarchy, like this:
key l1name l2name l3name prop
1 l1first a
2 l1first l2first b
3 l1first l2second c
4 l1first l2first l3first w
5 l1first l2first l3second x
6 l1first l2second l3third y
7 l1first l2second l3fourth z

Now I need to create an XML schema hierarchy to work with these levels:
Code:

<Hierarchy name="Name" hasAll="true" allMemberName="All" primaryKey="key">
    <Table name="table">
    </Table>
    <Level name="L1" column="l1name" levelType="Regular" type="String">
    </Level>
        <Level name="L2" column="l2name" levelType="Regular" type="String" hideMemberIf="IfBlankName">
    </Level>
        <Level name="L3" column="l3name" levelType="Regular" type="String" hideMemberIf="IfBlankName">
    </Level>
</Hierarchy>

In this case first level will have only 1 member "l1first", second level will have 2 members and so on.
But if i need to write my "param" to member:
Code:

<Level name="L1" column="l1name" levelType="Regular" type="String">
    <Property name="param" column="prop" />
</Level>

then level 1 will have 4 elements with same name. It happens because mondrian wraps level column (and caption too) and each property inside a "GROUP BY" query like
Code:

select "table"."l1name" as "c0", "table"."prop" as "c1" from "table" as "table" group by "table"."l1name", "table"."prop" order by "table"."l1name" ASC NULLS LAST
Here is a question: how can i write my param into member without breaking hierarchy?

kitchen don't run correctly (first time!!)

$
0
0
Hi, i running a kettle job on win2008 / jdk 8_31 / pdi 5.3.
When i launch "kitchen" for first time, the result is wrong .. "unable access to jar luncher": following launch (into same dos box) is run fine!
The explanation is that at first time, it try to reference at system32 path (??), next time "kitchen" reference my path correctly (!) .. and i don't understand why e how fix the problem.
I think that it's a variable problem but i don't have idea exactly.
The problem is present on pdi 5.2 version too, on pdi 5.1 running without problem.
Someone can help me? Thank's in advance.

Debug : Get rows from result/Copy rows to result

$
0
0
Hello everybody,I'm new (french) user (with poor english), to Pentaho Data Integration, and my problem is for use "Get row form result".I have a tranformation, and at the end of this job, I put "Copy row to result",The next job, I put "Get row form result",If I launch the entire Job, It's work, but, for degug, I like preview the result in the transformation, and is not working,The software version is PDI 4.2.1Thank you for your help
Viewing all 16689 articles
Browse latest View live


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