Duplicate variable 'altova:table' definition
I have a little class that I wrote to apply a XSLT file to a XML using Oracle XML Parser.
Here is the code:
XSLProcessor processor = new XSLProcessor();
String sInputXSL = "d:/xsl.xsl";
String sInputXML = "d:/xml.xml";
File fXSL = new File(sInputXSL);
URI uri = fXSL.toURI();
URL url = uri.toURL();
XSLStylesheet stylesheet = processor.newXSLStylesheet(url); (*)
When I execute it, I get the following error on the line (*)
XML-22050: (Error) Duplicate variable 'altova:table' definition.
XML-22050: (Error) Duplicate variable 'altova:table' definition.
XML-22050: (Error) Duplicate variable 'altova:table' definition.
oracle.xml.xslt.XSLException: XML-22050: (Error) Duplicate variable 'altova:table' definition.
at oracle.xml.xslt.XSLStylesheet.flushErrors(XSLStylesheet.java:1848)
The XSL file is a XSL file that was generated by Altova Stylevision.
I opened the XSL to watch is content and there is in dead several declarations of altova:table variable:
<xsl:variable name="altova:table">:
The XSLT is valid because when I execute the transformation with java.xml.Transformer class it works.
What can I do to solve the problem?
Please don't cross-post your questions.
Similar Messages
-
Substr in external table definition
Hi Guys,
I have an external table where I am loading a txt file. The issue being, in the txt file I have a column with a variable length. This column houses the application/website link that is not of a fixed length. My external table field width is 100, but the txt file value is more than that. Now, I want to only insert this field for the 100 characters.
I tried using substr as shown in the example below, but it fails. Any idea what could be the alternative or if I am doing it right?
Here's my external table properties (access parameters) and I am trying to use 'substr' on field4
records delimited BY NEWLINE
badfile BAD_DIR:'email_events%a_%p.bad'
LOGFILE LOG_DIR:'email_events%a_%p.log'
fields terminated by '\t'
missing field values are null
event_type,
cm_timestamp,
issue_id,
cm_uid,
field1,
field2,
field3,
field4 "substr(:field4,1,100)",
field5,
field6,
field7,
field8,
field9,
field10,
field11,
field12,
field13,
field14
)Just set your external table definition to query the full thing and then when you come to insert that data to a real table from the external table you can apply the substr in that query.
-
Exporting and importing just table definitions
Hi,
I have this production database that has a huge amount of data in it. I was asked to set up a test database based on the exact same schema as the live database. When I tried to do an export (from live) and import (to test), with the parameters rows=N and compress=y, the target (test database) data file will still grow enormously, presumably because of the huge number of extents already allocated to the table in the live database. My test database of course, has a limited hard-disk space.
Is there a way to export and import the table definitions without having the target database experiencing a huge growth in the size of the tablespace?
Thanks,
Chris.If an export with compress=n is still creating initial extents that a too large, you can still build with the import file but it will take a little work.
run imp with indexfile=somefile.sql
when imp is finished, edit somefile.sql by:
1. remove all the REM statements.
2. remove all the storage clauses (tables and indexes)
Make sure your tablespaces have a small (say 1k) default initial extent.
run imp again with rows=n
All your tables and indexes will be created with the default tablespace initial extent. -
How to count number of Relational Table definitions?
Hi,
How can I get the number of tables existing in a particular container? some thing similar to 'select count(1) from tab'. Thanks,No, you don't have to be the repository owner or SYS (very bad idea to log in as SYS to do anything except things that ONLY SYS can do, like upgrade the database). You can be any user that has been granted access to the repository via the repository administration utility. With one caveat:
Before you execute any queries on the CI views, you really ought to activate a workarea with jr_context.set_workarea (workarea_name). This will be GLOBAL_SHARED_WORKAREA if you do not use version control. You must be authorized for the workarea, and will only be able to count table definitions that are in the current workarea. -
Deleting Duplicates from a table
Its a huge table with 52 fields and 30k rows. I need to delete the duplicates based on one of the fields. GROUP BY is taking a lot of time. Is there a quicker way to delete the duplicates using SQL.
Thanks.How many duplicates have you got? Do you have even a vague idea? 1%? 20%? 90%?
One way would be to add a unique constraint on the column in question. This will fail, of course, but you can use the EXCEPTIONS INTO clause to find all the ROWIDs which have duplicate values. You can then choose to delete those rows using a variant on teh query already posted. You may need to run %ORACLE_HOME%\rdbms\admin\utlexcptn.sql to build the EXCEPTIONS table first.
This may seem like some unnecessary work, but the most effective way of deleting duplicates from a table is to have relational integrity constraints in place which prevent you having duplicates in the first place. To paraphrase Tim Gorman, you can't get faster than zero work!
Cheers, APC -
Hii ..
need help on this ..
This what I am doing ..
I am using a DATAEXPORT function to export level0 data from my essbase 11.1.2.2 to Microsoft SQL 2008 tables.
So what I did first I exported the level0 data to a flat file using DATAEXPORT and the created the SQL columns by the same in that order only in my SQL table.
When I run it fails with this error:
ODBC Layer Error: [21S01] ==> [[DataDirect][ODBC SQL Server Wire Protocol driver][Microsoft SQL Server]Column name or number of supplied values does not match table definition.]
[Tue Jul 23 18:26:07 2013]Local/dataexp/dataexp/admin@Native Directory/1209813312/Info(1021014)
ODBC Layer Error: Native Error code [213]
[Tue Jul 23 18:26:07 2013]Local/dataexp/dataexp/admin@Native Directory/1209813312/Error(1012085)
Unable to export data to SQL table [dataexp]. Check the Essbase server log and the system console to determine the cause of the problem.
[Tue Jul 23 18:26:07 2013]Local/dataexp/dataexp/admin@Native Directory/1209813312/Info(1021002)
SQL Connection is Freed
[Tue Jul 23 18:26:07 2013]Local/dataexp/dataexp/admin@Native Directory/1209813312/Warning(1080014)
Transaction [ 0x1c50001( 0x51ee7d66.0x80342 ) ] aborted due to status [1012085].
[Tue Jul 23 18:26:07 2013]Local/dataexp/dataexp/admin@Native Directory/1209813312/Info(1012579)
Total Calc Elapsed Time for [test.csc] : [1.44] seconds
=============================================================
I did a simple test on my Sample.basic application then ..
loaded the calc data to it and then used the below script to export to a flat file
//ESS_LOCALE English_UnitedStates.Latin1@Binary
SET DATAEXPORTOPTIONS
DataExportLevel "Level0";
DataExportOverwriteFile ON;
DataExportColFormat OFF;
DataExportDimHeader OFF;
FIX(
"Jan",
"Sales",
"Actual"
/*DATAEXPORT "File" "," "/home/hypadmin/samtest.txt";*/
DATAEXPORT "DSN" "Abhitest" "sample" "sa" "welcome1";
ENDFIX
out put as below:
"Sales"
"100-30","California"
"Jan","Actual",145
Now In sql I created only 3 columns with name Jan/Sales/Actual and when I run this script again with comments removed .. I get the same error as what I have got in my first test case with other application ..
but when I create the columns with same name as what its in export
Sales/100-30/Califirnia/Jan/Actual
It created the new rows successfully ..
So with this I think the error which I am getting with my other application might be because of the same column issue .. but then I have created all the columns by looking at the export file only as I did in sample ..
Any idea would be helpful ..
Thanks
Abhishek
IFirst make sure you add
DataExportRelationalFile ON;
to your set commands it is missing
I alwats like to also add
DataExportColHeader dimensionName;
so I am sure what dimension is getting put into the columns.
Then count the number of dimensions in your outline (exclude attribute dimensions). You need at least that many columns in your table -1 + the number of members you will be returning as columns in the export
Taking your example Sample basic has 5 dimensions
Measures
Years
Scenario
Product
Market
Since you did not specify a dataexportcolheader it took the dense dimension Scenario as the columns. Your fix statement is limiting that to one member. Doing the math
5 -1 + 1 = 5 columns in your table which is what you found works. Suppose you fixed on bothe Actual and budget in scenario then you would need 6 columns 5 -1 +2 -
Error: Variable not found in variable substitution table
Hi,
I am getting following error in file adapter receiver communication channel.
error:Could not process due to error: com.sap.aii.adapter.file.configuration.DynamicConfigurationException: Error during variable substitution: java.text.ParseException: Variable 'file' not found in variable substitution table
<b>variable substitution values:</b>
Variable name: File
reference :payload:MT_DC_Recr,1,Target,1,Filename,1
file name scheme : %File%.txt
<b>inpu file:</b>
<?xml version="1.0" encoding="UTF-8"?>
<ns0:MT_DC_Send xmlns:ns0="http://urn:psr/ff/DC">
<Source>
<Filename>dat1</Filename>
<Record>
<Name1>123</Name1>
<Name2>abc</Name2>
<Name3>XYZ</Name3>
</Record>
</Source>
</ns0:MT_DC_Send>
Regards,
SriniHi varun,
This is the error i am getting now..
Could not process due to error: com.sap.aii.adapter.file.configuration.DynamicConfigurationException: Error during variable substitution: com.sap.aii.adapter.file.varsubst.VariableDataSourceException: The following variable was not found in the message payload: File
what i am trying to get is reading filename from the message payload.
Reg,
Srini -
hi,
how to find the duplicates in the table in the below example
Id Empfirstname Empfirstlastname empdesig
1 Xyz Abc Software Engg
2 Xyz Abc Software Engg
3 Kkk Ddd Architect
need query to display
1 Xyz Abc Software Engg
2 Xyz Abc Software Engg
duplicate recordsIn addition:
You might want to think about the 'upper-/lowercase-thing' and still being/being not duplicate in these cases.
If so, then spot the difference:
MHO%xe> select * from
2 (
3 with all_your_data_are_belong_to_us -- generate some data on the fly here
4 as (
5 select 1 Id, 'Xyz' empfirstname, 'Abc' emplastname, 'Software Eng' empdesig from dual uni
on all
6 select 2, 'Xyz', 'Abc', 'Software Eng' from dual union all
7 select 3, 'aaa', 'AAA', 'Fairy' from dual union all
8 select 4, 'AAA', 'aaa', 'Fairy' from dual union all
9 select 5, 'Zlad', 'Molvania', 'Electrician' from dual union all
10 select 6, 'Kkk', 'Ddd', 'Architect' from dual
11 )
12 select id
13 , empfirstname
14 , emplastname
15 , empdesig
16 , count(*) over ( partition by upper(empfirstname), upper(emplastname), upper(empdesig)
17 order by 'geronimo' ) rn
18 from all_your_data_are_belong_to_us --<< this could be YOUR table name, if so, omit the with-clause! ;-)
19 )
20 where rn > 1;
ID EMPF EMPLASTN EMPDESIG RN
3 aaa AAA Fairy 2
4 AAA aaa Fairy 2
2 Xyz Abc Software Eng 2
1 Xyz Abc Software Eng 2
Verstreken: 00:00:00.68
MHO%xe> select * from
2 (
3 with all_your_data_are_belong_to_us -- generate some data on the fly here
4 as (
5 select 1 Id, 'Xyz' empfirstname, 'Abc' emplastname, 'Software Eng' empdesig from dual uni
on all
6 select 2, 'Xyz', 'Abc', 'Software Eng' from dual union all
7 select 3, 'aaa', 'AAA', 'Fairy' from dual union all
8 select 4, 'AAA', 'aaa', 'Fairy' from dual union all
9 select 5, 'Zlad', 'Molvania', 'Electrician' from dual union all
10 select 6, 'Kkk', 'Ddd', 'Architect' from dual
11 )
12 select id
13 , empfirstname
14 , emplastname
15 , empdesig
16 , count(*) over ( partition by empfirstname, emplastname, empdesig
17 order by 'geronimo' ) rn
18 from all_your_data_are_belong_to_us --<< this could be YOUR table name, if so, omit the with-clause! ;-)
19 )
20 where rn > 1;
ID EMPF EMPLASTN EMPDESIG RN
1 Xyz Abc Software Eng 2
2 Xyz Abc Software Eng 2( As you can see, I used Karthick's example, and it worked after translating the 'French' part (partitoin vs. partition) ;-) ) -
Troubles creating table definition in new repositiory
hi there,
we installed a designer 6i repositiory on a linux 8.1.7.2 ee server database, all worked fine. installation of the same repositiory version under on a windows 2000 pro system with a 8.1.7.4 ee server database works fine, too. but when trying to create objects in the windows repos we keep getting errors concerning non existing repository objects. example: attempting to create a relational table definition fail with the following stack trace:
Message
RME-02105: Oracle error occurred...
ORA-06550: line 2, column 11:
PLS-00201: identifier 'CIOTABLE_DEFINITION.DATA' must be declared
ORA-06550: line 2, column 11:
PL/SQL: Item ignored
ORA-06550: line 9, column 3:
PLS-00320: the declaration of the type of this expression is incomplete or malformed
ORA-06550: line 9, column 3:
PL/SQL: Statement ignored
ORA-06550: line 10, column 3:
PLS-00320: the declaration of the type of this expression is incomplete or malformed
ORA-06550: line 10, column 3:
PL/SQL: Statement ignored
ORA-06550: line 11, column 3:
PLS-00320: the declaration of the type of this expression is incomplete or malformed
ORA-06550: line 11, column 3:
PL/SQL: Statement ignored
ORA-06550: line 12, column 3:
PLS-00320: the declaration of the type of this expression is incomplete or malformed
ORA-06550: line 12, column 3:
PL/SQL: Statement ignored
ORA-06550: line 13, column 3:
PLS-00320: the declaration of the type of this expression is incomplete or malformed
ORA-06550: line 13, column 3:
PL/SQL: Statement ignored
ORA-06550: line 14, col
Message
RME-02124: Failed to execute SQL statement: declare
pl1_el0 CIOTABLE_DEFINITION.data;
utility varchar2(3);
curr_el integer;
begin
savepoint rm_dispatch;
rmmes.clear;
curr_el := 0;
pl1_el0.i.INDEX_ONLY_FLAG := true;
pl1_el0.v.INDEX_ONLY_FLAG := :p2_el0;
pl1_el0.i.COLUMN_PREFIX := true;
pl1_el0.v.COLUMN_PREFIX := :p3_el0;
pl1_el0.i.TYPES := true;
pl1_el0.v.TYPES := :p4_el0;
pl1_el0.i.IRID := true;
pl1_el0.v.IRID := :p5_el0;
pl1_el0.i.IVID := true;
pl1_el0.v.IVID := :p6_el0;
pl1_el0.i.NUMBER_OF_TIMES_MODIFIED := true;
pl1_el0.v.NUMBER_OF_TIMES_MODIFIED := :p7_el0;
pl1_el0.i.ALIAS := true;
pl1_el0.v.ALIAS := :p8_el0;
pl1_el0.i.ID := true;
pl1_el0.v.ID := :p9_el0;
pl1_el0.i.NAME := true;
pl1_el0.v.NAME := :p10_el0;
pl1_el0.i.JOURNAL_LOCATION := true;
pl1_el0.v.JOURNAL_LOCATION := :p11_el0;
pl1_el0.i.DISPLAY_TITLE := true;
pl1_el0.v.DISPLAY_TITLE := :p12_el0;
CIOTABLE_DEFINITION.INS(:p1_el0,pl1_el0);
:errcnt := 0;
exception when others then
rmmes.get_error_state(utility,:excode);
rmmes.get_product(utility,:exprod);
:exutil := utility;
:errcnt := rmmes.getsize;
:sqlcod := SQLCODE;
:sqlmsg := SQLERRM;
:currel := curr_el;
rollback to savepoint rm_dispatch;
end;
Message
RME-00222: Failed to dispatch operation to Repository
any help appreciated,
greetings,
friedrich.Hi,
Actually the errors thrown here are not exactly non-existing database objects.These are Table and API definitions of the repository which are used when you create Database objects.
You can try by checking if there are any invalid objects in the repository(Compile them first if there are any)and can give it a shot after running a full reconcile of the repository.
If still the problem persists, can you give the details about which Designer Version you are using.
Thanks
Vishal Jain -
How to choose in Delete Duplicates from internal table?
Now I need to delete Duplicates from internal table,
So at first I sort
than I delete duplicate
Sort itab1 BY Company_Code Asset_No Capital_Date.
DELETE ADJACENT DUPLICATES FROM itab1 COMPARING Company_Code Asset_No Capital_Date
Company_Code
Asset_No
Capital_Date
Remark
BC35
1515593
20021225
Helen
BC35
1515593
20021225
Common Asset
BC35
1515594
20030109
Judy
BC35
1515594
20030109
Common Asset
But here comes my problem~If I want to delete the Common Asset in Remark Column,how I let it choose the right one to do it?Hi Jack
Try the below coding..
Report zsamp.
types: begin of t_tab,
comp_code(4) type c,
***_no(7) type n,
cap_date type d,
remark type string,
end of t_tab.
data: i_tab type TABLE OF t_tab,
w_tab type t_tab.
w_tab-comp_code = 'BC35'.
w_tab-***_no = '1515593'.
w_tab-cap_date = '20021225'.
w_tab-remark = 'Helen'.
append w_tab to i_tab.
w_tab-comp_code = 'BC35'.
w_tab-***_no = '1515593'.
w_tab-cap_date = '20021225'.
w_tab-remark = 'Common Asset'.
append w_tab to i_tab.
w_tab-comp_code = 'BC35'.
w_tab-***_no = '1515594'.
w_tab-cap_date = '20030109'.
w_tab-remark = 'Judy'.
append w_tab to i_tab.
w_tab-comp_code = 'BC35'.
w_tab-***_no = '1515594'.
w_tab-cap_date = '20030109'.
w_tab-remark = 'Common Asset'.
append w_tab to i_tab.
sort i_tab by remark.
delete ADJACENT DUPLICATES FROM i_tab COMPARING remark. -
How to update duplicate row from table
Hi,
how to update duplicate row from table?
First to find duplicate row then update duplicate row with no to that duplicate row in oracle.
can you give me suggestion on it?
Thanks in advance.
your early response is appreciated...In order to find a duplicate row, see:
http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:1224636375004
(or search this forum, your question has been asked before)
In order to update it, just create and use an Oracle sequence, have it start and increment at a value that doesn't exist in your table.
If that doesn't get you going, post some CREATE TABLE + INSERT INTO statements, and the results you want from them, in other words: a complete testcase. -
Deletion of duplicates in the table with out using rowid
How can I delete duplicates in the table with out using ROWID .
hi
sleect count(coulmnname),columnname from table
group by columnname
having count(columnname) > 1;
find the primary key of the table
apply the below query
delete from table
where (primary key,repeated column name )
not in
( select min(primary key), repeated column
from employee group by repeated column );
use this in the primary key column use empid ,,,the repated column is ename
empid ename
1 sankar
2 sankar
try this one -
Getting duplicates in w_psft_payroll_f_tmp table
Hi All,
I am trying to run SDE payroll mappings.SDE_PSFT_Payrollfact session failed due to duplicates in the table.When I looked at source tables I found that w_psft_payroll_f_tmp table as duplicates whch is coming from SDE_PSFT_PayrollFact_Earnings mapping.When I run the source qualifier query from this mapping I am getting like 30000 rows as result but when it is getting loaded into the target table w_psft_payroll_f_tmp table the row count is doubled to 60000.Can anybody tell me how can I approcah to resolve this issue as we didnt make any changes to out of the box mapping .
Any help would be really appreciated.
Thanks in Advance!!Chk the query that is populating W_GL_COGS_F and execute it in database and see. If it does not return any records then chk the reason for that. Also check the log file of the task that populates this table and see row counts it inserted. Chk any other task ran after this and truncated this table.
-
UPPER() in external table definition
Hi,
Is it possible to apply the UPPER() function to character columns within an external table definition using the ORACLE_LOADER driver?
I've tried myself and have looked through the documentation, and it seems like this is not possible ... just wanted to double-check before moving forward with a different solution.
Thanks.
- k r
Message was edited by:
kenny r.I've never seen an example of doing it nor do I see anywhere in the syntax that lends itself to such manipulation.
Consider creating a view. -
Using variables in table constaraints
Hi,
I am facing problem in using global variables in table constraints. It is giving error "911 : 42000 : java.sql.SQLException: ORA-00911: invalid character".Since I was not able to use project variable s,I have used global variables.
following is the code
insert into DEV_TGT.E$_TEST_TGT
ERR_TYPE,
ERR_MESS,
CHECK_DATE,
ORIGIN,
CONS_NAME,
CONS_TYPE,
C1,
C2
select
'F',
sysdate,
'(161666)TEST_2.TEST_TO_TETS_TGT',
'CHK',
'CK',
C1,
C2
from DEV_TGT.I$_TEST_TGT TEST_TGT
where not (
TEST_TGT.C1=#GLOBAL.V_LOAD_ID
)Hi,
Did you refreshed or Assigned that variable before using in interface ?
Flow :-
Assgin/Refresh Variable -> interface (with contrsaint using variable)
Also,
If constarint is not an integer please use quotes ( '#GLOBAL.V_LOAD_ID' )
Regards,
Rathish
Edited by: Rathish on Sep 24, 2009 5:44 PM
Maybe you are looking for
-
Can't find AirPlay icon in new iPad
can't find AirPlay icon in new iPad
-
Help with basic ABAP code (merge internal tables, sort of...)
Hello, Can someone please help write some basic code for a Basis guy with limited ABAP knowledge? Should be some easy points for an experienced ABAPer! I have identicaly structured internal tables I_A and I_B and I_C which have already been filled by
-
Audigy SE suspect in system cra
I have an Audigy SE 7. card installed in a 450 meg ASUS system running Windows XP Professional and with specialist software the system crashes! ?After much consternation it has been found with Vienna that when a legitimate and well tested organ sound
-
Hi all- We recently installed JRE 1.6.0_12 after being on an old version of JRE 1.4.2 for years. When we did this, we noticed two applications that would normally pop up a child window in front of the parent window suddenly pop up the window behind t
-
Freight Vendor in Goods Receipt
Can we change Freight Vendor in Goods Receipt. Which has come from Purchase Order ?? If yes How ?