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

Undesired change of values with MSAccess Output

$
0
0
I'm trying to extract some data from an excel file and then insert it into a MS Access database. I made a test with a few rows and the transformation went ok. But, when I try to load all the real data (aprox. 52k rows) something happens and Kettle, MS Access or God knows what changes the data, to be exact it changes an Integer column which it is going to fill an Index Column in MS Access (not null and unique if helps), to negative values!

Someone has any idea why this might be happening?

Thanks, in advance.

Classloading issues with Mondrian driver on WildFly 10

$
0
0
Hi,

We are trying to provide connection to Mondrian from Teiid/WildFly using Mondrian server. We have done this successfully in the past with version 3.5. With > 3.5 (tested 3.12) we are seeing a class loading issue with Mondrian driver trying to use a Thread Context Class Loader for what it seems to be its compile time dependencies. Please see this link for further details https://issues.jboss.org/browse/TEIID-4617

Can someone comment on this issue please as to how to correct the behavior? This will be exactly same as creating a JDBC data source connection in the WildFly 10.

Thanks

Ramesh..

Mondrian Test Failures - AssertionFailedError

$
0
0
Hi,


I am trying to build 3.5 branch of Mondrian on Rhel-7.2.
OS: RHEL-7.2
Platform: ppc64le


I cloned the code from github and built it successfully using "ant" command.
Now if I run "ant test" it exits with "build successful" flag, but in log, it shows one failure as follows:

Code:

testMultiSegRollupWithMixOfNullAxisValues(mondrian.rolap.agg.SegmentBuilderTest)junit.framework.AssertionFailedError: Expected double array: [1231.23, 1231.23], but got [1231.2300000000002]
Please let me know if I am missing something.
(I have attached a detailed log here.)


Regards,
Yugandha
Attached Files

CDE Date Range Quarter

$
0
0
Hello,
is it possible to enable a pre-selection on date range component based on last quarter or something like that??

Thanks!

CDE Filter Component Selecting by Groups

$
0
0
Hello,
while using the Filter Component based on Groups, is it possible to select a whole group at once?
Also, how to check all options at start by default?

Thanks!

Change a parameter value on click action

$
0
0
Hello :)

I want to initialize a parameter in CDE by used Click action on a pie chart. I had already done that on a server with pentaho 5.2 and it works fine.
Recently, I installed the new version of Pentaho server 7.0.0.0.25. I did new dashboards and tried to initialize a parameter using the clickAction but it doesn't work... :confused:
I have create a simple parameter "my_parameter" and the following function on the clickAction :
Code:

function f(scene){
    alert("you have clicked on"+" "+ scene.getCategory());
    Dashboards.fireChange('my_parameter',scene.getCategory());
}

And if I want to print the value of 'my_parameter' in the clickAction function, nothing happens. I have the impression that my parameter doesn't exist.

Any help will be greatly appreciated

Saiku Analytics CE (3.8.8-PENTAHO) from Marketplace can't see cubes from a schema

$
0
0
Hi. I'm having problems using some cubes with Saiku Analytics CE on the PUC v6 CE.
I installed the only available CE version of Saiku Analytics on the PUC Marketplace : "3.8.8-PENTAHO (CE)".
The cubes published in a schema (FoodMart) just don't appear.
Any idea how to make this work? Thanks.

Preview Crash on PDI 7.0 64bit

$
0
0
I've just installed PDI 7.0.0.0-25 with jre1.8.0_112 64-bit on Win7 64-bit, but i can't preview my jobs or even excecute it correctly, seems like i had a problem with eclipse swt, this file is included in \pdi-ce-7.0.0.0-25\data-integration\libswt\win64\swt.jar.

This is the log:

2016/12/07 12:55:20 - Spoon - ERROR (version 7.0.0.0-25, build 1 from 2016-11-05 15.35.36 by buildguy) : An unexpected error occurred in Spoon:
2016/12/07 12:55:20 - Spoon - Failed to execute runnable (java.lang.StringIndexOutOfBoundsException: String index out of range: -1)
2016/12/07 12:55:20 - Spoon - ERROR (version 7.0.0.0-25, build 1 from 2016-11-05 15.35.36 by buildguy) : org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.StringIndexOutOfBoundsException: String index out of range: -1)
2016/12/07 12:55:20 - Spoon - at org.eclipse.swt.SWT.error(Unknown Source)
2016/12/07 12:55:20 - Spoon - at org.eclipse.swt.SWT.error(Unknown Source)
2016/12/07 12:55:20 - Spoon - at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Unknown Source)
2016/12/07 12:55:20 - Spoon - at org.eclipse.swt.widgets.Display.runAsyncMessages(Unknown Source)
2016/12/07 12:55:20 - Spoon - at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
2016/12/07 12:55:20 - Spoon - at org.pentaho.di.ui.spoon.Spoon.readAndDispatch(Spoon.java:1359)
2016/12/07 12:55:20 - Spoon - at org.pentaho.di.ui.spoon.Spoon.waitForDispose(Spoon.java:7990)
2016/12/07 12:55:20 - Spoon - at org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:9290)
2016/12/07 12:55:20 - Spoon - at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:685)
2016/12/07 12:55:20 - Spoon - at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2016/12/07 12:55:20 - Spoon - at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
2016/12/07 12:55:20 - Spoon - at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2016/12/07 12:55:20 - Spoon - at java.lang.reflect.Method.invoke(Unknown Source)
2016/12/07 12:55:20 - Spoon - at org.pentaho.commons.launcher.Launcher.main(Launcher.java:92)
2016/12/07 12:55:20 - Spoon - Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
2016/12/07 12:55:20 - Spoon - at java.lang.String.getChars(Unknown Source)
2016/12/07 12:55:20 - Spoon - at org.eclipse.swt.widgets.Table.wmNotifyChild(Unknown Source)
2016/12/07 12:55:20 - Spoon - at org.eclipse.swt.widgets.Control.wmNotify(Unknown Source)
2016/12/07 12:55:20 - Spoon - at org.eclipse.swt.widgets.Composite.wmNotify(Unknown Source)
2016/12/07 12:55:20 - Spoon - at org.eclipse.swt.widgets.Control.WM_NOTIFY(Unknown Source)
2016/12/07 12:55:20 - Spoon - at org.eclipse.swt.widgets.Control.windowProc(Unknown Source)
2016/12/07 12:55:20 - Spoon - at org.eclipse.swt.widgets.Display.windowProc(Unknown Source)
2016/12/07 12:55:20 - Spoon - at org.eclipse.swt.internal.win32.OS.CallWindowProcW(Native Method)
2016/12/07 12:55:20 - Spoon - at org.eclipse.swt.internal.win32.OS.CallWindowProc(Unknown Source)
2016/12/07 12:55:20 - Spoon - at org.eclipse.swt.widgets.Table.callWindowProc(Unknown Source)
2016/12/07 12:55:20 - Spoon - at org.eclipse.swt.widgets.Table.callWindowProc(Unknown Source)
2016/12/07 12:55:20 - Spoon - at org.eclipse.swt.widgets.Control.windowProc(Unknown Source)
2016/12/07 12:55:20 - Spoon - at org.eclipse.swt.widgets.Table.windowProc(Unknown Source)
2016/12/07 12:55:20 - Spoon - at org.eclipse.swt.widgets.Display.windowProc(Unknown Source)
2016/12/07 12:55:20 - Spoon - at org.eclipse.swt.internal.win32.OS.PeekMessageW(Native Method)
2016/12/07 12:55:20 - Spoon - at org.eclipse.swt.internal.win32.OS.PeekMessage(Unknown Source)
2016/12/07 12:55:20 - Spoon - at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
2016/12/07 12:55:20 - Spoon - at org.pentaho.di.ui.core.dialog.PreviewRowsDialog.open(PreviewRowsDialog.java:265)
2016/12/07 12:55:20 - Spoon - at org.pentaho.di.ui.spoon.dialog.EnterPreviewRowsDialog.show(EnterPreviewRowsDialog.java:208)
2016/12/07 12:55:20 - Spoon - at org.pentaho.di.ui.spoon.dialog.EnterPreviewRowsDialog.open(EnterPreviewRowsDialog.java:167)
2016/12/07 12:55:20 - Spoon - at org.pentaho.di.ui.spoon.trans.TransGraph$36.run(TransGraph.java:4367)
2016/12/07 12:55:20 - Spoon - at org.eclipse.swt.widgets.RunnableLock.run(Unknown Source)
2016/12/07 12:55:20 - Spoon - ... 12 more
org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.StringIndexOutOfBoundsException: String index out of range: -1)
at org.eclipse.swt.SWT.error(Unknown Source)
at org.eclipse.swt.SWT.error(Unknown Source)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Unknown Source)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Unknown Source)
at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
at org.pentaho.di.ui.spoon.Spoon.readAndDispatch(Spoon.java:1359)
at org.pentaho.di.ui.spoon.Spoon.waitForDispose(Spoon.java:7990)
at org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:9290)
at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:685)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.pentaho.commons.launcher.Launcher.main(Launcher.java:92)
Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.getChars(Unknown Source)
at org.eclipse.swt.widgets.Table.wmNotifyChild(Unknown Source)
at org.eclipse.swt.widgets.Control.wmNotify(Unknown Source)
at org.eclipse.swt.widgets.Composite.wmNotify(Unknown Source)
at org.eclipse.swt.widgets.Control.WM_NOTIFY(Unknown Source)
at org.eclipse.swt.widgets.Control.windowProc(Unknown Source)
at org.eclipse.swt.widgets.Display.windowProc(Unknown Source)
at org.eclipse.swt.internal.win32.OS.CallWindowProcW(Native Method)
at org.eclipse.swt.internal.win32.OS.CallWindowProc(Unknown Source)
at org.eclipse.swt.widgets.Table.callWindowProc(Unknown Source)
at org.eclipse.swt.widgets.Table.callWindowProc(Unknown Source)
at org.eclipse.swt.widgets.Control.windowProc(Unknown Source)
at org.eclipse.swt.widgets.Table.windowProc(Unknown Source)
at org.eclipse.swt.widgets.Display.windowProc(Unknown Source)
at org.eclipse.swt.internal.win32.OS.PeekMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.PeekMessage(Unknown Source)
at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
at org.pentaho.di.ui.core.dialog.PreviewRowsDialog.open(PreviewRowsDialog.java:265)
at org.pentaho.di.ui.spoon.dialog.EnterPreviewRowsDialog.show(EnterPreviewRowsDialog.java:208)
at org.pentaho.di.ui.spoon.dialog.EnterPreviewRowsDialog.open(EnterPreviewRowsDialog.java:167)
at org.pentaho.di.ui.spoon.trans.TransGraph$36.run(TransGraph.java:4367)
at org.eclipse.swt.widgets.RunnableLock.run(Unknown Source)
... 12 more
2016/12/07 12:55:20 - Spoon - Spoon has ended.
stopping

Thanks you!

Pass dataset to MasterReport instance

$
0
0
Hi everyone.

I have successfully embedded the Pentaho Reporting Engine on a Clojure application. However, I would like to know if exists a way to pass a dataset directly to a MasterReport instance? The example provided on https://help.pentaho.com/Documentation/7.0/0R0/140 explains how to do it using a SQLReportDataFactory (DriverConnectionProvider + SQL query).

For my use case, I can't use a SQL query because the dataset is constructed from many data sources, and then it gets transformed in several steps.

Thanks in advance.

Community Edition vs. Paid Edition

$
0
0
What are the differences and / or limitations of the free community edition of PDI relative to the paid license version ?
Is there no server component ?

Rule Executor - comparing two incoming field values

$
0
0
Hi there,

How do I get Rules Executor (drools) to compare two incoming stream fields?

I have 3 incoming fields:
* update_type
* field_value_int
* current_bedrooms

Pseudocode for my rule is:
WHEN
update_type = "BED" AND field_value_int = current_bedrooms
THEN
[set output_topic, reason, rule_triggered]

It's the "WHEN" part of my rule that is the problem. Simple as it sounds, I can't figure out how to compare two fields!

Here's is my latest attempt:
Code:

rule "Update request is redundant (BED)"   
dialect "mvel"
    when
        Column ( name == "update_type", payload == "BED" )
        $field_value_int : Column ( name == "field_value_int")
        $current_bedrooms : Column ( name == "current_bedrooms")
        $field_value_int == $current_bedrooms
    then
        Column outputTopic = new Column();
        outputTopic.name = "output_topic"
        outputTopic.type = String.class
        outputTopic.payload = "Rejected"
       
        Column reason = new Column();
        reason.name = "reason"
        reason.type = String.class
        reason.payload = "The update request details are the same as current."
       
        Column ruleTriggered = new Column();
        ruleTriggered.name = "rule_triggered"
        ruleTriggered.type = String.class
        ruleTriggered.payload = drools.getRule().getName()
       
        insert(outputTopic);
        insert(reason);
        insert(ruleTriggered);
end

Can anyone point out where I am going wrong?


Cheers,

Stanbridge

how to hide parameter dock on preview Dialog

$
0
0
i tried some code to change this code

final MasterReport report = sample.getCompleteReportDefinition();

// Generate the swing preview dialog
final PreviewDialog dialog = new PreviewDialog();
dialog.setLocation(dim.width/2 -getWidth()/2, dim.height/2 - getHeight()/2);
dialog.setSize(getWidth(), getHeight()-50);
dialog.setReportJob(report);
dialog.setZoom(1.5);
dialog.setModal(true);
dialog.setResizable(true);
dialog.setVisible(true);
dialog.setAlwaysOnTop(true);
dialog.setUndecorated(true);

but i still cannot hide parameter dock..

addd.jpg
Attached Images

PDI 7 does not launch on Mac OS X sierra

$
0
0
I just installed PDI on my Macbook and moved the data-integration folder into the Applications folder. Now, when I double click on Data Integration, the app simply does not start. I get no error messages.
I would provide logs, but I'm not sure how to find them.

Details:
Mac OS X sierra 10.12.1
Pentaho Data Integration 7.0.0.0-25

Any help?

EDIT:
support ticket: http://jira.pentaho.com/browse/PDI-15865?filter=-2

workaround: start spoon.sh from console.

Thank you in advance.

Go back in time for Spoon

$
0
0
Hello guys,

I need inside a Spoon transformation to "go back in time" of 11 months on a date object in the following format


YYYYMM


For example, if the date is valid 201611 I would like the system I would calculate the date 11 months before or that I would restore 201510.


There is an object or one that can JavaScript scripts already used in Spoon You?
Many thanks ;)

Corpie

sun.org.mozilla.javascript.internal.EvaluatorException JSON INPUT

$
0
0
Hai,

sun.org.mozilla.javascript.internal.EvaluatorException: Cannot modify a property of a sealed object: toJSONString. (<Unknown source>#526) in <Unknown source> at line number 526

We failed to initialize at least one step. Execution can not begin!I am running the transformation using java. In my transformation, I have using JSON INPUT while running the transformation. I am facing this issue. Please help me to resolve this. I missed any thing ?


Thanks,
Ganesh
Attached Images

Integrated Version Control vs. External

Execute SQL Script returns 0 results on a query when there are results to return

$
0
0
I am building a quick job that diffs two PostgreSQL tables using 'except' and inserts the result into a temporary table.
As I already have the SQL statements I just want to use the Execute SQL Script Object for this temporary work.

the SQL:
------------------------------------------------
drop table if exists diff_table;
select * into diff_table from
(
select id, prpsl_i, loc_c, proj_type_c, tcpm_proj_i, proj_n, impl_d from fixt_proj
except
select id, prpsl_i, loc_c, proj_type_c, tcpm_proj_i, proj_n, impl_d from fixt_proj_prev
) as diff_result;

------------------------------------------------

This runs perfectly fine from my DB Admin tool (PGAdmin) creating a diff_table with 1852 records.

When run from within the Execute SQL Object in Kettle I receive the following error:
2016/12/08 14:15:19 - SQL - Diff fixt_proj - ERROR (version 7.0.0.0-25, build 1 from 2016-11-05 15.35.36 by buildguy) : An error occurred executing this job entry :
2016/12/08 14:15:19 - SQL - Diff fixt_proj - An error occurred executing SQL:
2016/12/08 14:15:19 - SQL - Diff fixt_proj - select into diff_table from
2016/12/08 14:15:19 - SQL - Diff fixt_proj - (
2016/12/08 14:15:19 - SQL - Diff fixt_proj - select id, prpsl_i, loc_c, proj_type_c, tcpm_proj_i, proj_n, impl_d from fixt_proj
2016/12/08 14:15:19 - SQL - Diff fixt_proj - except
2016/12/08 14:15:19 - SQL - Diff fixt_proj - select id, prpsl_i, loc_c, proj_type_c, tcpm_proj_i, proj_n, impl_d from fixt_proj_prev
2016/12/08 14:15:19 - SQL - Diff fixt_proj - ) as diff_result
2016/12/08 14:15:19 - SQL - Diff fixt_proj - No results were returned by the query.

If I run, in Kettle, without the 'into' statement it returns 1852 records in the logging output:
select * from
(
select id, prpsl_i, loc_c, proj_type_c, tcpm_proj_i, proj_n, impl_d from fixt_proj
except
select id, prpsl_i, loc_c, proj_type_c, tcpm_proj_i, proj_n, impl_d from fixt_proj_prev
) as diff_result;

If I run a count this is also 1852 as would be expected:
select count(*) from
(
select id, prpsl_i, loc_c, proj_type_c, tcpm_proj_i, proj_n, impl_d from fixt_proj
except
select id, prpsl_i, loc_c, proj_type_c, tcpm_proj_i, proj_n, impl_d from fixt_proj_prev
) as diff_result;


I have toggled all combinations of 'Send SQL as a single statement?' and 'Use variable substitution?' as well as trying from a SQL file instead of the SQL Statement Text Area.

Is there something I am missing with the capabilities of the 'Execute a SQL Script' object or has anyone ran into this before?

Again, the statements run successfully from my Database Client Query Tool (PGAdmin).

Thanks,
Ross

Can Kettle/Spoon use Active Directory to login?

$
0
0
My IT security are wanting to use Active Directory as the basis for all programs. Can the builtin security in Spoon be changed to use LDAP/Active Directory like the BI server?

I have just upgraded to 7.0.

Paul

PDI 7 CE error in browse repository connections tab

$
0
0
Hi

we are using the old not supported oracle db repository style. Everything seems to be working, I'm getting an error when trying to look at Connections in Repository explorer.

PDI7.jpg

Anybody know why? How do we convert old repositories into new way? Is there a documentation for this. I assume we would have to run pentaho-ce server. Right?

Thanks
Attached Images

Transform XML to another XML with 100% same structure but enriching only the values

$
0
0
Hey All,

I am new to Pentaho transformations and I am unable to achieve what i believe should be very simple to achieve.

I get an input XML from a source system which I need to send to a target system after enriching few values.

Sample Example. let say i receive the below
Code:

<Event>
  <RetryCount>0</RetryCount>
  <MalwareData>
    <guid>0F00</guid>
    <max_severity>0</max_severity>
  </MalwareData>
</Event>

I need to read this XML and change the value for RetryCount, change the value for max_severity and send it forward to next system in the exact same format as shown below

Code:

<Event>
  <RetryCount>12</RetryCount>
  <MalwareData>
    <guid>0F00</guid>
    <max_severity>95</max_severity>
  </MalwareData>
</Event>

However I am unable to do that.

I have tried using below input and output but none of them give me exact same xml, all of them either remove the main tags, forexample <MalwareData> gets removed, <Event> gets removed , or some would add tags like <row> etc

I have tried using inputs like "Get data from XML", "XML Input Stream" and output like "XML Output"

Can you please let me know how do i achieve this simple transformation?

Regards,
Rohit
Viewing all 16689 articles
Browse latest View live


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