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

how to add an one more column to the existing file

$
0
0
Hi ,

how to add an one more column to the existing file wit out check the source file structure ?

for example:do not use the text input/csv input to get structure , just know the file location the ETL is to add a column

Difference between Unique Rows and Unique Rows ( Hashset)

$
0
0
Hi,

I would like to know, in brief, difference between Unique Rows and Unique Rows (Hashset).

Thank You,
Sandeep

Loading complete Oracle package from Kettle

$
0
0
So hello everybody that's my first post here in this forum.

I just started to work with "Kettle" and now I'm stuck.
I have written a complete Oracle package (defining cursor, functions and procedures). But I found no way how to start this package from Kettle.
I can call wiht DB CALL PROCEDURE a single procedure. I can also call a function inside the package.. but not the whole package.

My idea is now, write the package as a global function and call this function from Kettle... but I am curious if there is a possibilty to call a complete package.

Thanks in advance...
Robert

Problem with Lookup

$
0
0
Hi,

I have one txt file processing and taking output in jason format.
However everyday my text file get updated. I need to compare input file with output file and check the records which are added or deleted into input file.
only new record should be added to output file.

Can anyone share the sample transformation for help and understanding with samples files too.
Help would be appreciated.

Thanks in advance. :) ;)

getFileSize in Modified JS Issue

$
0
0
Though alert shows the File size in Bytes as expected, Currently getting this error.

var Final_Size = getFileSize(fname_FINAL.getString());
var Org_Size = getFileSize(filename.getString());


Alert ( Org_Size+":"+ Final_Size);



015/03/12 09:32:03 - Modified Java Script Value.0 - ERROR (version 5.2.0.0, build 1 from 2014-09-30_19-48-28 by buildguy) : Unexpected error
2015/03/12 09:32:03 - Modified Java Script Value.0 - ERROR (version 5.2.0.0, build 1 from 2014-09-30_19-48-28 by buildguy) : org.pentaho.di.core.exception.KettleValueException:
2015/03/12 09:32:03 - Modified Java Script Value.0 - Javascript error:
2015/03/12 09:32:03 - Modified Java Script Value.0 - org.mozilla.javascript.EvaluatorException: The function call getFileSize is not valid. (script#6) (script#6)
2015/03/12 09:32:03 - Modified Java Script Value.0 -
2015/03/12 09:32:03 - Modified Java Script Value.0 - at org.pentaho.di.trans.steps.scriptvalues_mod.ScriptValuesMod.addValues(ScriptValuesMod.java:477)
2015/03/12 09:32:03 - Modified Java Script Value.0 - at org.pentaho.di.trans.steps.scriptvalues_mod.ScriptValuesMod.processRow(ScriptValuesMod.java:715)
2015/03/12 09:32:03 - Modified Java Script Value.0 - at org.pentaho.di.trans.step.RunThread.run(RunThread.java:62)
2015/03/12 09:32:03 - Modified Java Script Value.0 - at java.lang.Thread.run(Unknown Source)

Filtering report by the number of occurrences of a column

$
0
0
I've setup a Count Distinct (Running) function within my report named ColCnt, that points to my column [KEY]. My goal is to filter out records where there are multiple records containing the [KEY] value. In the Details tab attributes, I've setup an open formula for the visible property to as following:

=if(ColCnt >1;1;0)

In the prd log I'm seeing "Failed to compute the regular value [if(ColCnt >1;1;0)". This isn't acting as expected. Any ideas?

PDI & BA Repositories: Merging into single repository?

$
0
0
We are currently developing w/Pentaho to utilize PDI transformations which create a dataset that will be used in reports by BA.

Currently we have what appears to be a split repository, but we would definitely prefer to have all BA & PDI data in a single repository!

Any advice on how to do this, did I simply configure something incorrectly or has this been done before?

Thanks in advance!

Mitchell

moveFile in JavaScript Component Issue

$
0
0
HI,

Any reason it works in one directory and doesn't work in another directory?
Line 27# moveFile(filename.getString(),fname_BAD_Move.getString(),false);

2015/03/12 16:27:03 - ALL DQ checks.0 - ERROR (version 5.2.0.0, build 1 from 2014-09-30_19-48-28 by buildguy) : org.pentaho.di.core.exception.KettleValueException:
2015/03/12 16:27:03 - ALL DQ checks.0 - Javascript error:
2015/03/12 16:27:03 - ALL DQ checks.0 - org.mozilla.javascript.EvaluatorException: The function call moveFile throw an error : org.apache.commons.vfs.FileSystemException: Could not rename "file:///C:/ETL/Src_Files/HGP/FILE_NAME.txt" to "file:///C:/ETL/Src_Files/HGP/Bad/FILE_NAME.txt". (script#27) (script#27)
2015/03/12 16:27:03 - ALL DQ checks.0 -
2015/03/12 16:27:03 - ALL DQ checks.0 - at org.pentaho.di.trans.steps.scriptvalues_mod.ScriptValuesMod.addValues(ScriptValuesMod.java:477)
2015/03/12 16:27:03 - ALL DQ checks.0 - at org.pentaho.di.trans.steps.scriptvalues_mod.ScriptValuesMod.processRow(ScriptValuesMod.java:715)
2015/03/12 16:27:03 - ALL DQ checks.0 - at org.pentaho.di.trans.step.RunThread.run(RunThread.java:62)
2015/03/12 16:27:03 - ALL DQ checks.0 - at java.lang.Thread.run(Unknown Source)
2015/03/12 16:27:03 - ALL DQ checks.0 - Caused by: org.mozilla.javascript.EvaluatorException: org.mozilla.javascript.EvaluatorException: The function call moveFile throw an error : org.apache.commons.vfs.FileSystemException: Could not rename "file:///C:/ETL/Src_Files/HGP/FILE_NAME.txt" to "file:///C:/ETL/Src_Files/HGP/Bad/FILE_NAME.txt". (script#27) (script#27)
2015/03/12 16:27:03 - ALL DQ checks.0 - at org.mozilla.javascript.DefaultErrorReporter.runtimeError(DefaultErrorReporter.java:109)
2015/03/12 16:27:03 - ALL DQ checks.0 - at org.mozilla.javascript.Context.reportRuntimeError(Context.java:945)
2015/03/12 16:27:03 - ALL DQ checks.0 - at org.mozilla.javascript.Context.reportRuntimeError(Context.java:1001)
2015/03/12 16:27:03 - ALL DQ checks.0 - at org.pentaho.di.trans.steps.scriptvalues_mod.ScriptValuesAddedFunctions.moveFile(ScriptValuesAddedFunctions.java:2561)
2015/03/12 16:27:03 - ALL DQ checks.0 - at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2015/03/12 16:27:03 - ALL DQ checks.0 - at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
2015/03/12 16:27:03 - ALL DQ checks.0 - at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2015/03/12 16:27:03 - ALL DQ checks.0 - at java.lang.reflect.Method.invoke(Unknown Source)
2015/03/12 16:27:03 - ALL DQ checks.0 - at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:161)

strange array behavior in modified javascript step

$
0
0
var my_array = [];


for (i=0;i<2;i++){

my_array.push("mike");
}


finaly i am ending 20 elements in my_array because i have 10 rows to process, i am expecting only two elements from the array because my_array= []. why i got 20 elements, don't understand.

WekaScoring Plugin + Additional Output Info

$
0
0
Hi guys,

I am using the weka scoring plugin and everything works fine. The issue is that I want to be able to extract in the results information about the result and the probabilities that are ok, but I will like to include more information contained in PMML file, like "NodeID" in tree classifier.

I think one needs to modify a little the plugin to be able to do this, any suggestions on how to do it or to hom I can speak about this?

Regards,

Benjamin

PENTAHO CE 5.3: Pentaho Initialization Exception

$
0
0
Hi everybody.
I've install pentaho ce 5.3 on my windows.
When I want to browse the server, I got this error massage:

The following errors were detected
One or more system listeners failed. These are set in the systemListeners.xml.
org.pentaho.platform.api.engine.PentahoSystemException: PentahoSystem.ERROR_0014 - Error while trying to execute startup sequence for org.pentaho.platform.repository2.unified.BackingRepositoryLifecycleManagerSystemListener

Please see the server console for more details on each error detected.


This is my pentaho.log error:
Caused by: org.pentaho.platform.api.engine.PentahoSystemException: PentahoSystem.ERROR_0014 - Error while trying to execute startup sequence for org.pentaho.platform.repository2.unified.BackingRepositoryLifecycleManagerSystemListener
at org.pentaho.platform.engine.core.system.PentahoSystem$2.call(PentahoSystem.java:430)
at org.pentaho.platform.engine.core.system.PentahoSystem$2.call(PentahoSystem.java:412)
at org.pentaho.platform.engine.core.system.PentahoSystem.runAsSystem(PentahoSystem.java:391)
at org.pentaho.platform.engine.core.system.PentahoSystem.notifySystemListenersOfStartup(PentahoSystem.java:412)
at org.pentaho.platform.engine.core.system.PentahoSystem.access$000(PentahoSystem.java:77)
at org.pentaho.platform.engine.core.system.PentahoSystem$1.call(PentahoSystem.java:343)
at org.pentaho.platform.engine.core.system.PentahoSystem$1.call(PentahoSystem.java:340)
at org.pentaho.platform.engine.core.system.PentahoSystem.runAsSystem(PentahoSystem.java:391)
at org.pentaho.platform.engine.core.system.PentahoSystem.notifySystemListenersOfStartup(PentahoSystem.java:340)
... 27 more

Did anyone have the error like me before. I already uninstall and delete the files, then I install again, but still got the same error. What should I do?

Thanks.

Concatenating field values with a Group by

$
0
0
Dear all,

I have a requirement where I have to concatenate the payment types of an order_id.

Using the flow where:

Tableinput -> sort-> group by-> sort

Assuming i have the following sample data for the same order_id:

Ord_payment_method_type, ord_id, ord_sku
palpal, ord1234, 2920-01
giftcertificate, ord1234, 2762-01
giftcertificate, ord1234, 6453-01
paypal, ord1234, 7654-01


When I run the transformation on dropbox; https://www.dropbox.com/s/owqx1kzo1q...up_by.ktr?dl=0

I get incorrect results:
ord_id, ord_payment_method_type, ord_sku
1234, [giftcertificate , giftcertificate , paypal, paypal], 2920-01, 2762-01, 6453-01, 7654-01

I expected to get something like
ord_id, ord_payment_method_type, ord_sku
1234, [giftcertificate , paypal], 2920-01, 2762-01, 6453-01, 7654-01

Is there anything I am doing wrong here?

I appreciate in advance for any piece of advice.

Thanks,

Ron

Pentaho User Console A login error occured

$
0
0
Hi, I'm new to pentaho. I facing an issue where I not able login successful into pentaho console. I try login as an Evaluator but failed.

Kindly help and advise how to overcome this issue. Thank in advance.
Attached Images

Dynamic DB Connection to Transformation

$
0
0
Hi all,

I want to give Dynamic DB connection to Transformation through excel file.
I tried using set variables but it works in JOB level, but i want it on transformation level.
Can anybody help?

retrieve 2 dimensioons arrays

$
0
0
Hello
I am new to pentaho and want to retrieve from a xls file a array of 2 dimensions (rows ansd column) but i don't know how to do it

SOCKS ERROR Connection to MSSQL server

$
0
0
When I try to connect to an MS SQL server installation, I get the following error

"Error connecting to database: (using class net.sourceforge.jtds.jdbc.Driver) Network error IOException: Malformed reply from SOCKS server"

I am using Windows 8, MS SQL server installed on the local workstation, Latest version of Kettle (just installed). After I installed the latest version of Kettle (PDI), I started to get the SOCKS error after waiting 3-5 minutes for the error message.

I am assuming that this is a proxy related issue. So the question is, how do I turn off the function that causes PDI to attempt connecting to MS SQL server via Proxy?

This is really hard to be really productive one day this week!

Thanks
Ray

Link to PRPT on BI server

$
0
0
Hello everyone,

I am wondering if anyone has done a dashboard with a link that shoots the user off to a semi-unrelated PRPT file on the BI-Server. We have a dashboard that takes in the parameters of "Business Unit" (called para_bus_unit in the dashboard, string) and "Week of the year" (called week_o_year is the dashboard, integer) and it gives them all the happy information that they want. Typically they open the dashboard in a new window and maximize it, for greater viewing pleasure. However, they've indicated to us that there are some PRPT reports on the same BI-Server that they'd like to quickly get to from the dashboard. These reports (made up names) are in the solution folder "Group of Units" and under the folders "Tactical Forecast \ Out Going Funds". These reports are called (made up names) "Slush Funds.prpt", "Pork Funds.prpt", and "Green Energy Funds.prpt"

With the description of what we have complete, what we'd like to do is include some simple links from the dashboard to those reports. Nothing fancy, just your standard "a" tag that sends them off to the report. However, one caveat. We'd like to keep the dashboard around, in that when we send them off to the PRPT file, the report opens in a new tab or new window. Additionally, we need to pass to the PRPT file the two parameters that we got from the dashboard. Any help in getting this kind of link would be awesome!

Thanks!

Mondrian SCD Type II

$
0
0
Hi,

I've made a cube that is using an Employee Type II SCD:

SK Employee_Number Has_Children Name Date From Date To
1 100 N John 1900-01-01 2014-01-01
2 100 Y John 2014-01-01 2199-12-31

Dimension in Mondrian:

Code:

 
<Dimension type="StandardDimension" visible="true" highCardinality="false" name="dim_employee">
  <Hierarchy name="Employee" visible="true" hasAll="true" primaryKey="sk">
      <Table name="dim_employee">
      </Table>
      <Level name="Children" visible="true" column="has_children" type="String" uniqueMembers="true" levelType="Regular" hideMemberIf="Never">
      </Level>
      <Level name="Name" visible="true" column="name" type="String" uniqueMembers="false" levelType="Regular" hideMemberIf="Never">
      </Level>
      <Level name="Number" visible="true" column="number" type="String" uniqueMembers="false" levelType="Regular" hideMemberIf="Never">
      </Level>
    </Hierarchy>
  </Dimension>

When I place the Employee_Number in analyzer, I get two records. Is there a way to sum up measures for this level?

Regards!

Issue with drill down in pentaho 5 CDE

$
0
0
Hi,

I am using code as given below for drill down,

function sendParameter(scene){
var url='?solution=Dashboards&path=%2FHide+Next+Levels%2FDashboard+Levels&file=Performance_Dashboard_LOB.wcdf&lobParam=';
var vars = scene.vars;
var c = vars.tick.value;
window.location=url+c;
}

Then on second level, using custom parameter as given below,

function sendParam()
{
return Dashboards.getQueryParameter("lobParam");

}


It was working earlier with older version of CDE may be version which supports pentaho 4.

But, since upgrading to latest version of CDE, drill down is not working.

Url path for first level of dashboard formed is :

http://xx.x.xxx.xx:8080/VD/api/repos...neratedContent

When I click on drill down it opens same level and not next level with url as:

http://xx.x.xxx.xx:8080/VD/api/repos...f&lobParam=CFG

You can see here, path of second level is getting concatenated to second level path.

One strange thing is, if I open dashboard in edit mode and preview it, then drill down is working.

Please help.

Pentaho BI CE 5.2 Fusion Charts Plugin installed through Marketplace Breaks Pentaho

$
0
0
I installed the Fusion Charts Plugin through Marketplace. Then as per the message in Marketplace I restarted Pentaho/Tomcat then when I went to login to the PUC I got a HTTP Status 404 Error.

When I looked in the log files I see this error:

2015-03-13 10:33:42,838 ERROR [org.pentaho.platform.util.logging.Logger] misc-cl
ass org.pentaho.platform.plugin.services.pluginmgr.DefaultPluginManager: PluginM
anager.ERROR_0011 - Failed to register plugin fusion_plugin
org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Config
uration problem: Unexpected failure during bean definition parsing
Offending resource: file [/u01/local/pentaho/5.2/biserver-ce/pentaho-solutions/s
ystem/fusion_plugin/plugin.spring.xml]
Bean 'xfusion'; nested exception is java.lang.UnsupportedClassVersionError: com/
xpandit/fusionplugin/pentaho/content/FusionContentGenerator : Unsupported major.
minor version 51.0

Luckily I was able to easily manually remove the Fusion plugin directory and restart Tomcat and everything is back to normal, phew!

Anyone else had this problem? I did a quick search and did not get any immediate relevant hits for a fix.

I think Marketplace is awesome, yet a lil disappointed now that the Fusion Charts Plugin through Marketplace has not been thoroughly tested with 5.2 . . .

Thanks in advance for any assistance!

Brig
Viewing all 16689 articles
Browse latest View live


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