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

CDE with MS SQL server geometry data type

$
0
0
Hello All,

I am using sql server 2013 with data type as geometry (map stored in binary data). I am trying display this geometry data type data in cde component so how could I use.

Currently it is showing me error for geometry data type.

Thanks & Regards

Nitesh

Help / Ideas on Parsing an XML Child Node and Adding Parent Node value to the Output

$
0
0
Hi All,

Thanks for looking at the post. I having been racking my brain on how to add the Order ID value to child node rows. I've been reviewing many of the samples provided which has helped me a bunch on other areas. It just seems I can't find a decent solution to this issue.

Background: I am receiving an XML-based Order Status file. The file contains a "shipmentpackagesitems" node that is nested within the "order" node. My idea was to loop through the shipmentpackagesitems, add the Order ID to each row output and then use the Order ID and Item ID as unique identifiers to update my Order_Items Table with the tracking numbers. I'm stuck on how I can add the Order Id.


Any thoughts would be greatly appreciated.
Thanks,
Mike


Below is the XML:
Code:

<?xml version="1.0" encoding="ISO-8859-1"?>
<content>
    <orders>
        <order>
            <orderid>8263634738</orderid>                   
            <clientid>9999</clientid>
            <clientstoreid>999</clientstoreid>               
            <orderstatus>Shipped</orderstatus>
            <orderpausestatus>None</orderpausestatus>
            <orderactions>               
                <actionitem>
                <orderactionid> </orderactionid>
                    <orderactiondescription> </orderactiondescription>
                </actionitem>                   
            </orderactions>
            <refordernumber>13</refordernumber>
            <genericshippingmethodid>6</genericshippingmethodid>
            <orderdate></orderdate>
            <ordertime></ordertime>
            <shipments>                                   
                <shipment>
                    <shipmentid>66863</shipmentid>
                    <shipmentstatus>Shipped</shipmentstatus>
                    <shipmentcarrier>USPS Endicia</shipmentcarrier>
                    <shipmentmethod>Media Mail</shipmentmethod>           
                    <shipmenttrackingnumber> </shipmenttrackingnumber>           
                    <shipmentdate></shipmentdate>               
                    <shipmenttime></shipmenttime>               
                    <shipmentcharges>                           
                        <publishedrate>2.57</publishedrate>               
                    </shipmentcharges>                       
                    <shipmentpackages>                       
                            <shipmentpackagesitems>
                                <shipmentpackagetrackingnumber>9102148600230663610</shipmentpackagetrackingnumber>               
                                <shipmentpackageitemsku>SE-23823-08-3</shipmentpackageitemsku>       
                                <shipmentpackageitemquantity>2</shipmentpackageitemquantity>
                                <shipmentpackageitemid>39238</shipmentpackageitemid>
                                <shipmentpackagestatus>Closed</shipmentpackagestatus>
                                <shipmentpackageweight>0.5 </shipmentpackageweight>
                                <shipmentpackageid>206544</shipmentpackageid>
                            </shipmentpackagesitems>
                            <shipmentpackagesitems>
                                <shipmentpackagetrackingnumber>910214800230663610</shipmentpackagetrackingnumber>
                                <shipmentpackageitemsku>SE-2ER-62-3</shipmentpackageitemsku>
                                <shipmentpackageitemquantity>1</shipmentpackageitemquantity>
                                <shipmentpackageitemid>39241</shipmentpackageitemid>
                            <shipmentpackagestatus>closed</shipmentpackagestatus>
                                <shipmentpackageweight>0.5 </shipmentpackageweight>
                                <shipmentpackageid>206544</shipmentpackageid>
                        </shipmentpackagesitems>                   
                    </shipmentpackages>
                </shipment>                                           
            </shipments>               
        <backordereditems>
            <backorderitem>
                <backordersku> </backordersku>
                <backorderitemid> </backorderitemid>
                <backorderquantity> </backorderquantity>
            </backorderitem>
        </backordereditems>                       
    </order>
  </orders>
</content>

regarding saiku options

$
0
0
Hi all

I am new to saiku analytics please tell me how can we use "all" option in dimensions tab efficiently what is the functionality of that all option.

i stucked here please help me out.


Thanks
phani

Multiple paramaters inside SQL datasource

$
0
0
Hi !

someone knows what's the way to insert multiple parameters inside a SQL query ?
that's my query working with just one parameter:
select dateid,camionero,residente,noresidente
from dbo.quien_es_cliente_tipo_table
WHERE linea in (${ch_canariasParameter})
group by dateid,camionero,noresidente,residente

but I would need something like that:

select dateid,camionero,residente,noresidente
from dbo.quien_es_cliente_tipo_table
WHERE linea in (${ch_canariasParameter}, ${ch_balearesParameter}, ${ch_surParameter})
group by dateid,camionero,noresidente,residente

Thanks !

Formatting message-field in Group Header

$
0
0
Hi.

I have a little doubt: I created a OpenFormula to calculate the percentage of a profit, and am using a message-field to display the formatted value and the symbol "%" as 10.0%.
So I did the message-field like this: $(FormulaProfit, number, #,##0.00)%.

Problem: If I put that message-field in the group header or header details, an error occurs when generating the report: "java.lang.IllegalArgumentException: Cannot format given Object as a Number"
Is there any way to show this message-field in the format #, ##?

Enterprise BI Platform: Adding addition prompt (or parameter)

$
0
0
New to the Ent. BI platform. I was given a link https://subdom.maindomain.com/pentaho/Home
There, I log in as admin.

There is a dashboard now that the user can select a date field (day logged) prompt and all relevant objects will be populated. How does one then change the behavior of this prompt so that user can constraint between 2 dates -- e.g. start date , and end date?

Screenshot from 2015-02-19 16:52:14.png

Here I've simply added another prompt but it only takes the first prompt and parse to the reports. Can anyone help?

Apologies if this post is not in the correct forum category. Kindly move to its appropriate place.
Attached Images

Close a tab in javascript

$
0
0
Anyone know how to close a mantle tab in js?

Easy enough to use the mantle_x functions to open various tabs...but I can't find a way to close a tab.

error when using the mail in transformation

$
0
0
Hey guys!

I'm starting this universe and I have a little problem.

I'm using "get variable" and seting the field "porta" as "integer", but when I set this variable in the "port" of step mail the following error occurs:

error.jpg

erro2.jpg

I've tried to put as "string" and did not work.

Thanks!!! :cool:
Attached Images

Setting repeated values to empty string

$
0
0
Hi all!

I have a csv file that looks like this:

Record_Num Name Email Email_Type
1 Pat pat@a.com home
1 Pat pat@b.com work



Now, what I need to do is to set to empty string certain fieds that are repeated (in this case name). As long as the Record_Num is the same, I don't want the name to repeat. So the file looks like this


Record_Num Name Email Email_Type
1 Pat pat@a.com home
1 pat@b.com work


Not sure if this can be done inside of a Modified JavaScript Value step.

Any pointers are highly appreciated.

Thanks in advance!

Martin

Error when using "mail" in the transformation

$
0
0
Hello! :cool:

I'm new in this universe and I'm having trouble using email processing, have a "get variable" with this variable "integer" and then in step "set variable" put as 587 the value of the variable

error.jpg

dasdad.jpg

In my email I put the variable step "porta" in port but the following error occurs:

eee.png


erro2.jpg

Thanks!! ;)
Attached Images

Concurrent Sessions localhost

Delete attachment - Get mails (POP3/IMAP

$
0
0
Hi


I use Kettle 5.2. I use “Get mails (POP3/IMAP)” and successfully connect to the email account both with IMAP settings. If you download an attachment and the attachment has the same name with an already downloaded file Kettle creates the new attachment with a different name. Can somehow change this behavior? For example overwrite the file?



Thanks.

PDI - Metadata Injection - Do we have to specify all metadata?

$
0
0
I want to use Metadata Injection to inject some information into Excel Input step.
Right now I'm injecting everything that can be injected (fields config, sheets config, file names lines config). If I omit any field I get an error:

Code:

2015/02/19 21:10:18 - ETL Metadata Injection.0 - ERROR (version 5.3.0.0-213, build 1 from 2015-02-02_12-17-08 by buildguy) : Unexpected error2015/02/19 21:10:18 - ETL Metadata Injection.0 - ERROR (version 5.3.0.0-213, build 1 from 2015-02-02_12-17-08 by buildguy) : java.lang.NullPointerException
2015/02/19 21:10:18 - ETL Metadata Injection.0 -        at org.pentaho.di.trans.steps.excelinput.ExcelInputMetaInjection.injectStepMetadataEntries(ExcelInputMetaInjection.java:177)
2015/02/19 21:10:18 - ETL Metadata Injection.0 -        at org.pentaho.di.trans.steps.metainject.MetaInject.processRow(MetaInject.java:221)
2015/02/19 21:10:18 - ETL Metadata Injection.0 -        at org.pentaho.di.trans.step.RunThread.run(RunThread.java:62)
2015/02/19 21:10:18 - ETL Metadata Injection.0 -        at java.lang.Thread.run(Thread.java:745)

Do I really have to always inject data into every possible field, even when some of them are constant?

merge step

$
0
0
i have two outputs from the transformations:

one output :

key zip1 zip2 zip3 zip4 zip5 zip6 zip7 zip8 zip9 zip10

1 111 222 333 333 444 888 999 900 000 444
2 222 333 444 555 666 777 777 666 444 555
second output from the transformation:

key zip1 zip2 zip3 zip4 zip5 zip6 zip7 zip8 zip9 zip10

1 totally different codes other than the zipcode
2

questions: 1 may I change the columns to the second output to something below

key zip1_enhanced zip2_enhanced zip3_enhanced zip4_enhanced zip5_enhanced zip6_enhanced zip7_enhanced zip8_enhanced zip9_enhanced zip10_enhanced
2. May i do a SAS similar merge or the generic merge by using common key and output something as below:



key zip1 zip2 zip3 zip4 zip5 zip6 zip7 zip8 zip9 zip10 zip1_enhanced zip2_enhanced zip3_enhanced zip4_enhanced zip5_enhanced zip6_enhanced zip7_enhanced zip8_enhanced zip9_enhanced zip10_enhanced

thanks,

kettle cant auto detect date input in format dd/mm/yy. CSV INPUT step

$
0
0
I have a csv file with some rows with this format of date '30/06/14' and when I push 'get fields' in csv input step, it returns date mask 'yyyy/mm/dd' with a result of the previw files as 0030/06/14

Is there any configuration file where i can change the priority of autodetected dates?

I don't want to change the date manually through select values.

It is strange that the result of get fields returned this:

Date format : yyyy/MM/dd
WARNING: More then 1 date format seems to match all sampled records:
Date format : yyyy/MM/dd HH:mm:ss.SSS
Minimum value : Tue Dec 31 23:59:59 CET 2199
Maximum value : Mon Jan 01 00:00:00 CET 1900
Date format : yyyy/MM/dd HH:mm:ss
Minimum value : Tue Dec 31 23:59:59 CET 2199
Maximum value : Mon Jan 01 00:00:00 CET 1900
Date format : yyyyMMddHHmmss
Minimum value : Tue Dec 31 23:59:59 CET 2199
Maximum value : Mon Jan 01 00:00:00 CET 1900
Date format : yyyy/MM/dd
Minimum value : Tue Dec 31 23:59:59 CET 2199
Maximum value : Mon Jan 01 00:00:00 CET 1900
Date format : yyyy-MM-dd
Minimum value : Tue Dec 31 23:59:59 CET 2199
Maximum value : Mon Jan 01 00:00:00 CET 1900
Date format : yyyy-MM-dd HH:mm:ss
Minimum value : Tue Dec 31 23:59:59 CET 2199
Maximum value : Mon Jan 01 00:00:00 CET 1900
Date format : yyyyMMdd
Minimum value : Tue Dec 31 23:59:59 CET 2199
Maximum value : Mon Jan 01 00:00:00 CET 1900
Date format : MM/dd/yyyy
Minimum value : Tue Dec 31 23:59:59 CET 2199
Maximum value : Mon Jan 01 00:00:00 CET 1900
Date format : MM/dd/yyyy HH:mm:ss
Minimum value : Tue Dec 31 23:59:59 CET 2199
Maximum value : Mon Jan 01 00:00:00 CET 1900
Date format : MM-dd-yyyy
Minimum value : Tue Dec 31 23:59:59 CET 2199
Maximum value : Mon Jan 01 00:00:00 CET 1900
Date format : MM-dd-yyyy HH:mm:ss
Minimum value : Tue Dec 31 23:59:59 CET 2199
Maximum value : Mon Jan 01 00:00:00 CET 1900
Date format : MM/dd/yy
Minimum value : Tue Dec 31 23:59:59 CET 2199
Maximum value : Mon Jan 01 00:00:00 CET 1900
Date format : MM-dd-yy
Minimum value : Tue Dec 31 23:59:59 CET 2199
Maximum value : Mon Jan 01 00:00:00 CET 1900
Date format : dd/MM/yyyy
Minimum value : Tue Dec 31 23:59:59 CET 2199
Maximum value : Mon Jan 01 00:00:00 CET 1900
Date format : dd-MM-yyyy
Minimum value : Tue Dec 31 23:59:59 CET 2199
Maximum value : Mon Jan 01 00:00:00 CET 1900
Nr of null values : 0

.

And dd/mm/yy format doesn't appear available. I think that this date format is not incuded in the conversin algorithm. So maybe i can edit some cfg file to include it?

I'm using spoon 5.2

trouble loading a tab separated file

$
0
0
Hi,


I am having trouble loading a tab separated file but I am new to Pentaho so was hoping sombody could correct my ways.


The files are delimited by tab and text fields enclosed in quotes. I have tried both 'CSV file input'
and 'text file input'.
I have tried several ways to specify the delimiter eg pasting in a tab, pressing the 'Insert TAB' button
the result is the same. the 'Get fields' just finds one string.
The scan results shows 'maximum value' as the content of the 1st column.
A preview,obviously, just reads the one column. So its kind of detecting the column but seeing the next one


Do I need to hold my mouth a funny way or something?



Thanks
JC
Attached Files

Overlapping Bar Charts in CDE

$
0
0
Hi All,


Can anyone please let me know how to achieve overlapping bar charts in pentaho CDE. We have item-margin available in pentaho report designer to achieve the overlapping but didn't see anything.Tried using item_margin as extension type in cde but didnt find any luck. Can some one please help me with this. Any help is highly appreciated.


Thanks,
Santosh :)

Parameters and Table Input

$
0
0
Quote:

Originally Posted by lukolap View Post
With "Execute SQL script" you can:
- perform queries as INSERT, UPDATE, DELETE...
- write multiple statements separated by ;
- specify optional fileds that contain the number of rows affected by each operation (insert, update, delete, read)
- execute the script only once regardless of the number of rows in the stream
or execute the script for each row

In this last case the script can be parameterized using the input row fields, for example:
input row fields: date_from | date_to | city

script parameters (the order is important):
city
date_from
date_to

script:
UPDATE ... SET ... WHERE city = ? AND date BETWEEN ? AND ?


How to use same parameter multiple times in a query e.g,

SELECT city, date_from, date_to, city

How to write this in Execute Sql Script?

Market Basket Analysis?

$
0
0
I am trying to create a Mondrian cube which can handle market basket analysis cross-tabs. For example, we need to place a product on the rows of a cross-tab and a product on the columns of the cross-tab. The measure will then count all customers who have bought both products. In other tools I would create the following join:

Orders1.CustomerID = Orders2.CustomerID
Orders1.ProductID <> Orders2.ProductID

I created a view in the database to do this type of join and it works well with small amounts of data. The problem is, we have 150 million rows to add and this type of join, in the database, creates more than a trillion records because the view is being pulled before filtering.

Is there some way in Pentaho Mondrian to do this type of join in the tool so filtering happens? I want to avoid having the join happen via a view in the database.

Carte HTTP Trace

$
0
0
Hi

Any one has idea on how to disable hTTP trace on Carte ?

I added code to BaseHttpServet but no luck there

protectedvoid doTrace(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException
{
resp.sendError(HttpServletResponse.SC_METHOD_NOT_ALLOWED);
}


Thanks
Viewing all 16689 articles
Browse latest View live


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