Questions tagged [scriptella]
Scriptella is an open source ETL (Extract-Transform-Load) and script execution tool written in Java.
63
questions
0
votes
0
answers
22
views
Scriptella : command not found
After installing scriptella, I get
command scriptella not found.
So I added the <SCRIPTELLA_DIR>/bin to PATH by appending it in ~/.zshrc file to make it permanently and verify that scriptella ...
0
votes
1
answer
117
views
java.lang.NullPointerException: Cannot invoke "jdk.internal.platform.CgroupInfo.getMountPoint()" because "anyController" is null
I have an error when I'm trying to copy data from csv file into mysql database, but when I launch the temps.etl.xml file with java launcher, it gives me an error. I thank that this error occurs ...
1
vote
1
answer
563
views
Scriptella - SQLServerException: A result set was generated for update
I am a first-time user of Scriptella, and am really struggling with getting started.
I seem to be running into the same issue on both SQL Server 2012 as well as MySQL. With both, I am able to CREATE ...
0
votes
0
answers
197
views
Scriptella installation issue - maxOS
I'm having trouble installing and using scriptella on my mac. I downloaded the binary and unzipped it. I ran
export PATH=${PATH}:/Documents/*/*/*/scriptella-1.1/bin
the asterisks are the other ...
0
votes
1
answer
114
views
How to escape special characters in scriptella
Please help!
I need to insert a xml string inside a varchar field in an oracle 8i legacy table.
The insert goes like this:
insert into NUC_LEGACY_2_ANAC values (
...
0
votes
2
answers
107
views
scriptella executor with xml as string instead of file
I am trying to use scriptella in my project to copy data from one db to another, now the application has a frontend which users can use to create mapping between tables and create dynamic queries, now ...
0
votes
1
answer
278
views
Janino scriptella with the use of array List
I am using trying to copying column of an oracle with scriptella , i would like to insert them into an ArrayList combining scriptella and janino , in order to use them and compare them later ,
here ...
0
votes
1
answer
186
views
copy data using scriptella based on if a foreign key exists
i am trying to copy data from a table to another , but before doing it , i need to check whether the selected codearticle exists already as keys in another table.So i will copy them if exists , and i ...
0
votes
1
answer
83
views
test if a column is numeric scriptella
am trying to test if column is numeric to be copied from an oracle database to a postgresql database through scriptella , here what i did for scriptella .
, Any help please , am just new to this
<...
0
votes
1
answer
75
views
test if column type is numeric scriptella
hello guys am using scriptella to copy dara from an oracle database into a postgresql database. i've been able to do but got one problem .i would like to copy a column that is numeric , but i may have ...
0
votes
1
answer
73
views
data type conflict while copying data using apache scriptella
i would like to copy data from an oracle to a postgresql database using scriptella .But i have an column tel ,that has different types in the two database , one is varchar and the other is a big int ,...
0
votes
0
answers
66
views
copy data using scriptella based on a test on special column
I have two databases in postgresql. I want to copy data from database to another based on a condition.I used scriptella but what i want is to copy rows when a column is not empty.But i always have the ...
0
votes
1
answer
170
views
How to handle data migration integrity issues?
I am dealing with a data migration from an old SQL Server 8 database to an Oracle 11g. I am talking about 100 tables more or less and tons of data. I am using Scriptella ETL. The problem is, there ...
-1
votes
2
answers
649
views
Scriptella data copy error on mysql
I am using Scriptella to copy data from one table to another table(different database) on Mysql. For source, I have used table film from Mysql sample database Sakila.
While copying the data I am ...
0
votes
1
answer
133
views
FatalBeanException while using with spring - when calling etlexecutor.execute() - No Internet
I have a spring based app that uses scriptella etl. It works fine when I am connected to internet. If its not, the etlexecutor.execute() throws the below exception saying
org.springframework.beans....
4
votes
3
answers
518
views
Convert XML to CSV with Scriptella, how to get attribute values?
I found an example of converting XML to CSV,In the example used, this structure
<!-- Demo input for ETL -->
<CATALOG>
<CD>
<TITLE>Empire Burlesque</TITLE>
...
0
votes
1
answer
284
views
Scriptella: Simulating Query Inner/Outer Join in ETL script
I have a requirement where my two tables are located into two different databases.
So essentially I cannot write join query. Now the question is how can I write a ETL file which essentially helps me ...
1
vote
1
answer
754
views
Conditional writing to CSV file with Scriptella
I'am working on an ETL script that reads data from an DB, manipulates it using Java and finally writes it to a CSV file. My script looks like this:
<query connection-id="db">
SELECT ...
0
votes
1
answer
239
views
Scriptella - Spring Integration - DB Upgrade How To?
I am currently using Scriptella ETL in Spring. I want to change the db schema and perform an upgrade of the db when i execute my program. I did not find any reference to do this except for a way using ...
0
votes
1
answer
856
views
Transform portion of ETL using Scriptella?
I am trying out Scriptella to see if it will meet my needs. So far, it seems like a great tool. I've spent several hours studying sample scripts, searching forums, and trying to get the hang of nested ...
1
vote
2
answers
1k
views
Scriptella - dynamically name csv file
I would like to create a csv file with a value I get during executing the etl script. E.g. I get a new value from a sequence and want to append it to the name of the csv. Sounds simple, but I'm really ...
1
vote
1
answer
186
views
Sqlsheet formula evaluation
We use sqlsheet library to read data from a excel sheet. The lib works fine but there is a poblem with fields that are calculated by formulas. The values of that cells are always empty.
Is there a ...
3
votes
1
answer
859
views
Scriptella and CSV column headers that contain spaces
I am attempting to move data from CSV files into a database table, and I'd like to use the column header names in the script. For example:
<connection id="csvin" driver="csv" url="/path/to/file....
1
vote
0
answers
819
views
Cannot flush cache error when uploading data with scriptella to Teradata using FASTLOAD
I tried to upload data in a CSV file to an empty table I created. But got the following error:
May 21, 2014 10:18:18 AM <INFO> Execution Progress.Initializing properties: 1%
May 21, 2014 10:18:...
1
vote
1
answer
491
views
Scriptella: XML to DB: Insert Into from XPATH
I have an XML file that looks like this:
<XML>
<Table name='test'>
<Row>
<Field name='key'>1000</Field>
<Field name='text'>Test</Field>
...
0
votes
1
answer
469
views
Scriptella Change delimiter of csv to tab
I am using Sciptella to parse a document and make a csv file. I want the delimiter in csv to be tab. Presently I'm able to change the delimiter to any other printable single character e.g. ;
as
<...
2
votes
1
answer
476
views
Scriptella - DB to DB ETL Script that uses rows from output to populate new table
I need to develop an ETL script (that runs after another one) that reads rows from one database (DB1) and copies them to other one (DB2).
The problem is that the query that selects the rows from DB1 ...
0
votes
1
answer
669
views
How should one load a CSV with NULL values into MySQL using Scriptella?
I have a CSV file I'm trying to load into a MySQL table:
bkpgln,date,aircraft,tailnum,poe,time_out,pod,time_in,stops,inst_app,landings,nitelndgs,nav,se_retrgear,a_sel,a_mel,xc,day,night,act_inst,...
0
votes
2
answers
1k
views
Scriptella - Unable to instantiate driver for class scriptella.driver.xls.Driver
My second question: I'm very newbie with Linux/Java/Scriptella and I'm trying a jdbc connection with scriptella on a xls local file, but I'm receiving the following errors:
4-dic-2013 0.41.46 <...
1
vote
1
answer
766
views
Scriptella and (mysql) Stored Procedures "OUT" Parameter
I'm new to scriptella and have found it to be very useful thus far but have hit the following roadblock. I have an SQL procedure that already exists within a MYSQL database similar to the following.
...
1
vote
2
answers
765
views
Scriptella: ResourceException with Jaybird
I'm very newbie with Linux/Java/Scriptella and I'm trying a jdbc connection with scriptella on a Firebird local database, but I'm receiving the following errors:
2-dic-2013 1.03.34 <INFO> ...
1
vote
2
answers
6k
views
Duplicate Key error when using INSERT DEFAULT
I am getting a duplicate key error, DB2 SQL Error: SQLCODE=-803, SQLSTATE=23505, when I try to INSERT records. The primary key is one column, INTEGER 4, Generated, and it is the first column.
the ...
0
votes
1
answer
795
views
Scriptella - Date format conversion not working
I am having a problem in date format conversion while I am exporting data from MySQL to CSV.
I am using scriptelaa.1.1, the latest one I guess.
Here is my etl.properties file:
driver=mysql
url=jdbc:...
1
vote
1
answer
705
views
Scriptella: get error codes and messages within onerror tag
Using Scriptella ETL, i recently came to know about the onerror tag. It is working fine,but I want to make a generic code which inserts the code and the message into the database whenever any error ...
2
votes
1
answer
796
views
How to default a value of variable if etl.properties do not list a variable
I want to write a ETL for rows in given time duration.
I am thinking of passing start_time and end_time in etl.properties. However I am not sure how do I define the defaults if the properties file do ...
0
votes
1
answer
571
views
MySQL to MySQL data copy in scriptella
I m trying to use a scriptella script to transfer some data to data in one server to another.
The script looks something like this
<!DOCTYPE etl SYSTEM "http://scriptella.javaforge.com/dtd/etl.dtd"...
5
votes
1
answer
1k
views
Is there any way I can pass variables to scriptella e.g. environment or -D parameter?
I need to invoke same xmls with slight variation in certain parameters. I thought of writing etl.properties, but then I realize I have to write the properties file name in the xml and that is not what ...
0
votes
1
answer
240
views
is there any scriptella jruby script sample/example?
I am new scriptella user.
Is there any sample or tutorial to use jruby
as scripting language?
Thanks and Regards,
Manish
== updated after ejboy's suggesstions ==
Copied jruby.jar (1.7.4) in lib.
...
2
votes
1
answer
344
views
How to use scriptella to read files from amazon S3 and load into a database say postgres. Any pointers on how to build a new connector for aws S3 ?
How do I use scriptella to read files from amazon S3. I do not see any S3 connector. In general how a remote set of files can be accessed using http/https. How easy it is to enhance the ...
1
vote
1
answer
895
views
How to run 3 scriptella files one after other from java program?
I have 3 scriptella scripts I want to run from the java program one after another. It is very important, because each xml script uses the results of the previous one. How can I accomplish that?
...
0
votes
1
answer
2k
views
How to use janino script in Scriptella etl?
I have a Scriptella etl file where I parse a csv file and also use a sample janino script. I always get an exception of driver not found for scriptella, although i have it in libs folder.
etl.xml
<!...
1
vote
1
answer
2k
views
Oracle SQL & scriptella: How to do conditional insertion or updation based on select criterion?
I am facing one problem regarding Oracle Sql queries in Scriptella.
My intention is - I have to fetch some column data from PRODUCT_PRICE table for each row (determined using where clause) fetched ...
1
vote
1
answer
798
views
Scriptella: How to handle the error while fetching data from XML through Xpath
i have one query regarding data fetching from XML xpath.
<query connection-id="in">
CommunicationCenter/Response/MenuData/Menu/Noun
<!--something I have to do inside script using the ...
1
vote
2
answers
716
views
Handling empty resultset from a query
I have two databases with the same structure and I want to compare records between databases. The records in second database are copied from the first database, but the copying process sometime doesn'...
1
vote
2
answers
1k
views
Scriptella: How to fetch data dynamicallly from a clob object and then insert it into database?
I am newbie in using Scriptella.
My requirement is something like this :
1) Firstly, I have a few very large xml files, from which I have to insert data into database.
Hence, I decided to insert xml ...
1
vote
1
answer
467
views
Scriptella feature request on onerror: connection-id
This is a feature request, from link below seems like no other workaround yet but to do the operation in the current connection in the context:
https://groups.google.com/forum/?fromgroups=#!topic/...
0
votes
1
answer
487
views
Import fixwidth text files with scriptella
What is the best method to import a fixwidth file into a table with scriptella?
Textfile:
blabla bloblo ble bli
Columnwidth:
(1,7) (8,14) (15,21) (22,24)
Table:
T_IMPORT (
FIELD1 VARCHAR(8),...
1
vote
1
answer
196
views
scriptlla concurrency issues?
I use "antcall" scriptlla concurrent invocations, but appear "javax.mail. Management InstanceNotFoundException".
I set up 10 concurrent, sometimes can be 10, sometimes only a few can rise.
<...
1
vote
1
answer
214
views
INSERT INTO with unknown number of column in scriptella
I have to back up a table, which can change number of column. When my etl script starts it doesn't know the number of column. How can I create INSERT INTO table VALUES (?1, ?2, ...) script on the fly?
...
0
votes
0
answers
295
views
How to set the path of velocity templates?
I try to make a report with scriptella and velocity. There is only one example with velocity in the scriptella distribution. There, the header and footer, are the current path. But how I can set up ...