XMLTYPE.transform works differently in SQL and PL/SL
Hi, when I use XMLTYPE.transform in SQL, it's working fine - try this:
SELECT XMLTYPE.createXml('<data/>').transform(XMLTYPE.createXml('<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" version="1.0" encoding="UTF-8" omit-xml-declaration="yes" indent="yes" />
<xsl:template match="/">
<HTML>
<BODY>
<TABLE>
<TR><TD><INPUT readOnly="readOnly" size="19" maxLength="30" type="text" value="test..."/></TD></TR>
</TABLE>
</BODY>
</HTML>
</xsl:template>
</xsl:stylesheet>')).getClobVal() FROM DUAL;
But when i tried to do tha same in PL/SQL, i obtain error - try this:
DECLARE
lClob CLOB;
lXsl XMLTYPE;
lXml XMLTYPE;
BEGIN
lXml := XMLTYPE.createXml('<data/>');
lXsl := XMLTYPE.createXml('<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" version="1.0" encoding="UTF-8" omit-xml-declaration="yes" indent="yes" />
<xsl:template match="/">
<HTML>
<BODY>
<TABLE>
<TR><TD><INPUT readOnly="readOnly" size="19" maxLength="30" type="text" value="test..."/></TD></TR>
</TABLE>
</BODY>
</HTML>
</xsl:template>
</xsl:stylesheet>');
lClob := lXml.transform(lXsl).getClobVal();
END;
Error is:
ORA-31011: XML parsing failed
ORA-19202: Error occurred in XML processing
LPX-00210: expected '=' instead of '>'
Error at line 7
ORA-06512: at "SYS.XMLTYPE", line 138
ORA-06512: at line 20
Oracle version is 11.2.0.2.0.
Knows anybody where is the problem?
Thanks, R. Kazimir
Hi,
Actually it does not work for both.
Remove .getClobVal() method and see what happens :
SQL> SELECT XMLTYPE.createXml('<data/>')
2 .transform(XMLTYPE.createXml('<?xml version="1.0" encoding="UTF-8"?>
3 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
4 <xsl:output method="html" />
5 <xsl:template match="/">
6 <HTML>
7 <BODY>
8 <TABLE>
9 <TR><TD><INPUT readOnly="readOnly" size="19" maxLength="30" type="text" value="test..."/></TD><
/TR>
10 </TABLE>
11 </BODY>
12 </HTML>
13 </xsl:template>
14 </xsl:stylesheet>'))
15 FROM dual;
ERROR:
ORA-31011: Echec d'analyse XML
ORA-19202: Une erreur s'est produite lors du traitement la fonction XML (
LPX-00210: '=' attendu plutôt que '>'
Error at line 1
)Besides, using getClobVal() in the SQL version produces an invalid output :
<HTML>
<BODY>
<TABLE>
<TR>
<TD>
<INPUT readOnly>
</INPUT>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>The readOnly attribute is not well-formed.
Even stranger : change the just the case of the attribute value, e.g. "readOnly" to "readonly", and it works!
I'm not sure what's happening here. Most likely a combination of bugs regarding html output method.
As a workaround, you can use output method "xml" instead. Works in any cases.
On a side note, in your version, getter methods like getClobVal() are deprecated. Oracle now recommends using XMLSerialize function.
The same goes with XSL transformation, where one should use XMLTransform instead of transform() method.
Similar Messages
-
XMLTYPE Transform works differently in Oracle 10.1 and 11.2
We are migrating our applications from Oracle 10.1g to 11.2g. We have a number of PL/SQL routines that transform incoming/outgoing XML using the XMLType Transform method. The XSLTs that we use do not seem to work in 11.2. For example, the code below is a simplification of what we're doing. This sample code uses hard-coded input and xslt to illustrate the point. The same code has very different outputs when run in 10.1 and 11.2. In 10.1, the transformation works. It also works using files in an xml tool. In 11.2, none of the input XML is transformed. The only output is the extra <sd:StandardBusinessDocument... that is hard-coded into the xslt as a wrapper.
E.g.
{code}
declare
out_sbd xmltype := xmltype('<OT_SBD_HEADER>
<HEADER_VERSION>1.0</HEADER_VERSION>
<SENDERS>
<OT_SENDER_RECEIVER>
<IDENTIFIER>COGSD</IDENTIFIER>
<IDENTIFIER_AUTHORITY>urn:olgr.qld.gov.au:cogs</IDENTIFIER_AUTHORITY>
</OT_SENDER_RECEIVER>
</SENDERS>
<RECEIVERS>
<OT_SENDER_RECEIVER>
<IDENTIFIER>PORTAL</IDENTIFIER>
<IDENTIFIER_AUTHORITY>urn:olgr.qld.gov.au:portal</IDENTIFIER_AUTHORITY>
</OT_SENDER_RECEIVER>
</RECEIVERS>
<DOCUMENT_INDENTIFICATION>
<STANDARD>urn:olgr.qld.gov.au</STANDARD>
<TYPE_VERSION>1.1</TYPE_VERSION>
<INSTANCE_IDENTIFIER>c11ab0c6-22e7-4132-88f8-f81e88cde75c</INSTANCE_IDENTIFIER>
<TYPE>licenceInformation</TYPE>
<CREATION_DATE>2012-05-30T13:55:41.167125+10:00</CREATION_DATE>
</DOCUMENT_INDENTIFICATION>
<BUSINESS_SCOPE>
<OT_SBD_HEADER_SCOPE>
<SCOPE_TYPE>get</SCOPE_TYPE>
<SCOPE_INSTANCE_IDENTIFIER>GET_GAMING_STATISTICS_DATA</SCOPE_INSTANCE_IDENTIFIER>
</OT_SBD_HEADER_SCOPE>
</BUSINESS_SCOPE>
</OT_SBD_HEADER>');
transformed_out_sbd xmltype;
sbd_header_out_xslt xmltype := xmltype('<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
This file was generated by Altova MapForce 2011r2sp1
YOU SHOULD NOT MODIFY THIS FILE, BECAUSE IT WILL BE
OVERWRITTEN WHEN YOU RE-RUN CODE GENERATION.
Refer to the Altova MapForce Documentation for further details.
http://www.altova.com/mapforce
-->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" exclude-result-prefixes="xs">
<xsl:output method="xml" encoding="UTF-8" indent="yes"/>
<xsl:template match="/">
<sd:StandardBusinessDocument xsi:schemaLocation="http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader sbd.xsd" xmlns:sd="http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<xsl:for-each select="*[local-name()='OT_SBD_HEADER' and namespace-uri()='']">
<xsl:variable name="var1_DOCUMENTINDENTIFICATION" select="*[local-name()='DOCUMENT_INDENTIFICATION' and namespace-uri()='']"/>
<xsl:variable name="var2_MANIFEST" select="*[local-name()='MANIFEST' and namespace-uri()='']"/>
<xsl:variable name="var3_resultof_cast" select="string($var1_DOCUMENTINDENTIFICATION/*[local-name()='MULTIPLE_TYPE' and namespace-uri()=''])"/>
<StandardBusinessDocumentHeader>
<HeaderVersion>
<xsl:value-of select="string(HEADER_VERSION)"/>
</HeaderVersion>
<xsl:for-each select="SENDERS">
<xsl:variable name="var4_OTSENDERRECEIVER" select="OT_SENDER_RECEIVER"/>
<Sender>
<Identifier>
<xsl:attribute name="Authority">
<xsl:value-of select="string($var4_OTSENDERRECEIVER/IDENTIFIER_AUTHORITY)"/>
</xsl:attribute>
<xsl:value-of select="string($var4_OTSENDERRECEIVER/IDENTIFIER)"/>
</Identifier>
</Sender>
</xsl:for-each>
<xsl:for-each select="RECEIVERS">
<xsl:variable name="var5_OTSENDERRECEIVER" select="OT_SENDER_RECEIVER"/>
<Receiver>
<Identifier>
<xsl:attribute name="Authority">
<xsl:value-of select="string($var5_OTSENDERRECEIVER/IDENTIFIER_AUTHORITY)"/>
</xsl:attribute>
<xsl:value-of select="string($var5_OTSENDERRECEIVER/IDENTIFIER)"/>
</Identifier>
</Receiver>
</xsl:for-each>
<DocumentIdentification>
<Standard>
<xsl:value-of select="string($var1_DOCUMENTINDENTIFICATION/STANDARD)"/>
</Standard>
<TypeVersion>
<xsl:value-of select="string($var1_DOCUMENTINDENTIFICATION/TYPE_VERSION)"/>
</TypeVersion>
<InstanceIdentifier>
<xsl:value-of select="string($var1_DOCUMENTINDENTIFICATION/INSTANCE_IDENTIFIER)"/>
</InstanceIdentifier>
<Type>
<xsl:value-of select="string($var1_DOCUMENTINDENTIFICATION/TYPE)"/>
</Type>
<MultipleType>
<xsl:value-of select="string(((normalize-space($var3_resultof_cast) = 'true') or (normalize-space($var3_resultof_cast) = '1')))"/>
</MultipleType>
<CreationDateAndTime>
<xsl:value-of select="string($var1_DOCUMENTINDENTIFICATION/CREATION_DATE)"/>
</CreationDateAndTime>
</DocumentIdentification>
<Manifest>
<NumberOfItems>
<xsl:value-of select="string((string($var2_MANIFEST/NUMBER_OF_ITEMS)))"/>
</NumberOfItems>
<xsl:for-each select="$var2_MANIFEST/MANIFEST_ITEMS">
<xsl:variable name="var6_OTMANIFESTITEM" select="OT_MANIFEST_ITEM"/>
<ManifestItem>
<MimeTypeQualifierCode>
<xsl:value-of select="string($var6_OTMANIFESTITEM/MIME_TYPE)"/>
</MimeTypeQualifierCode>
<UniformResourceIdentifier>
<xsl:value-of select="string($var6_OTMANIFESTITEM/RESOURCE_IDENTIFIER)"/>
</UniformResourceIdentifier>
<Description>
<xsl:value-of select="string($var6_OTMANIFESTITEM/DESCRIPTION)"/>
</Description>
</ManifestItem>
</xsl:for-each>
</Manifest>
<xsl:for-each select="BUSINESS_SCOPE">
<xsl:variable name="var7_OTSBDHEADERSCOPE" select="OT_SBD_HEADER_SCOPE"/>
<BusinessScope>
<Scope>
<Type>
<xsl:value-of select="string($var7_OTSBDHEADERSCOPE/SCOPE_TYPE)"/>
</Type>
<InstanceIdentifier>
<xsl:value-of select="string($var7_OTSBDHEADERSCOPE/SCOPE_INSTANCE_IDENTIFIER)"/>
</InstanceIdentifier>
<Identifier>
<xsl:value-of select="string($var7_OTSBDHEADERSCOPE/SCOPE_IDENTIFIER)"/>
</Identifier>
</Scope>
</BusinessScope>
</xsl:for-each>
</StandardBusinessDocumentHeader>
</xsl:for-each>
</sd:StandardBusinessDocument>
</xsl:template>
</xsl:stylesheet>
BEGIN
transformed_out_sbd := out_sbd.transform (sbd_header_out_xslt); -- transform out_sbd using the xslt hard-coded above
INSERT INTO z_clob_log (id, clob_name, clob_desc, clob_doc) --- log the output to a clob column in a table
SELECT (select nvl(max(id),0)+1 from _clob_log),
to_char(sysdate,'yyyymmdd hh24:mi:ss')||' - TRANSFORMED OUT_SBD',
transformed_out_sbd.getClobVal
FROM dual;
COMMIT;
END;
{code}
In 10.1, the output is as expected, the same as doing the transformation using files in an xml tool.
{code}
<sd:StandardBusinessDocument xsi:schemaLocation="http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader sbd.xsd" xmlns:sd="http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<StandardBusinessDocumentHeader>
<HeaderVersion>1.0</HeaderVersion>
<Sender>
<Identifier Authority="urn:olgr.qld.gov.au:cogs">COGSD</Identifier>
</Sender>
<Receiver>
<Identifier Authority="urn:olgr.qld.gov.au:portal">PORTAL</Identifier>
</Receiver>
<DocumentIdentification>
<Standard>urn:olgr.qld.gov.au</Standard>
<TypeVersion>1.1</TypeVersion>
<InstanceIdentifier>c11ab0c6-22e7-4132-88f8-f81e88cde75c</InstanceIdentifier>
<Type>licenceInformation</Type>
<MultipleType>false</MultipleType>
<CreationDateAndTime>2012-05-30T13:55:41.167125+10:00</CreationDateAndTime>
</DocumentIdentification>
<Manifest>
<NumberOfItems/>
</Manifest>
<BusinessScope>
<Scope>
<Type>get</Type>
<InstanceIdentifier>GET_GAMING_STATISTICS_DATA</InstanceIdentifier>
<Identifier/>
</Scope>
</BusinessScope>
</StandardBusinessDocumentHeader>
</sd:StandardBusinessDocument>
{code}
In 11.2, none of the original xml document is included in the output, only the <sd: StandardBusinessDocument ..../>
{code}
<sd:StandardBusinessDocument xsi:schemaLocation="http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader sbd.xsd" xmlns:sd="http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
{code}
The same occurs using the SQL XMLTransform function, e.g. applying the following with the above xml and xslt, except it outputs a separate closing tag </sd:Standard...>
select xmltransform(out_sbd, sbd_header_out_xslt) into transformed_out_sbd from dual;
Q: Any ideas? Are there any changes in 11g 11.2 that require major changes to xslt?
We have a lot of rewriting to do if we cannot get this to work!Hi Eduardo,
Report this as a bug to Oracle Support.
The problem lies in the namespace-uri() function : the comparison with an empty string is not resolved correctly so no node is ever selected in the first xsl:for-each.
If you need a workaround, there are a few you can test :
1) If input documents actually are in no namespace (such as in your sample), remove every namespace-uri() occurrences from the stylesheet.
2) The other way around, you can give your input document a dummy namespace and now reference it in the stylesheet. The namespace-uri() test will work in this case.
3) Replace occurrences of namespace-uri() with a slightly more elaborate test that'll handle empty namespace specifically, for example :
<xsl:variable name="nsuri"></xsl:variable>
( namespace-uri()=$nsuri or (not($nsuri) and not(namespace-uri())) )
Since you're working with generated stylesheets, I understand that none of the above options are really satisfactory.
If I had to workaround the issue, I'd probably go with the 2nd option which involves a smaller amount of refactoring. -
Mdx queries work different on 2008R2 and 2012
Hi all,
we have migrated our SSAS database from 2008R2 to 2012 recently. And I found strange thing. The mdx query below (generated by Cognos) worked quite fine on 2008R2
WITH
MEMBER [Territory].[Territories].[XQE_MDF_CM0] AS IIF(COUNT(INTERSECT(DESCENDANTS([Product].[Products].CURRENTMEMBER, [Product].[Products].[Product]), XQE_NS0) AS [XQE_SA0] , IncludeEmpty) > 0, AGGREGATE([XQE_SA0], ([Territory].[Territories].DEFAULTMEMBER)),
NULL)
SET XQE_NS0 AS FILTER([Product].[Products].[Product].MEMBERS, [Product].[Products].CURRENTMEMBER.PROPERTIES("MEMBER_KEY") = "713077" OR [Product].[Products].CURRENTMEMBER.PROPERTIES("MEMBER_KEY") = "857127" OR
[Product].[Products].CURRENTMEMBER.PROPERTIES("MEMBER_KEY") = "857128" OR [Product].[Products].CURRENTMEMBER.PROPERTIES("MEMBER_KEY") = "713080" OR [Product].[Products].CURRENTMEMBER.PROPERTIES("MEMBER_KEY")
= "717113" OR [Product].[Products].CURRENTMEMBER.PROPERTIES("MEMBER_KEY") = "856597" OR [Product].[Products].CURRENTMEMBER.PROPERTIES("MEMBER_KEY") = "857129" OR [Product].[Products].CURRENTMEMBER.PROPERTIES("MEMBER_KEY")
= "713083")
SELECT
CROSSJOIN({[Date].[Time].[Month].&[201409]}, CROSSJOIN(HIERARCHIZE(GENERATE(XQE_NS0, ANCESTORS([Product].[Products].CURRENTMEMBER, [Product].[Products].[Brand]))), {[Measures].[QTD Sales Revenue]})) DIMENSION PROPERTIES PARENT_UNIQUE_NAME, PARENT_LEVEL
ON AXIS(0)
FROM [Nemesis]
WHERE ([Territory].[Territories].[XQE_MDF_CM0]) CELL PROPERTIES VALUE, CELL_ORDINAL, LANGUAGE, FORMAT_STRING
But on 2012 version there was an interesting thing
Result from (2008R2)
2014/09 2014/09
GALVUS GALVUSMET
QTD Sales Revenue QTD Sales Revenue
2346360.3062295 5550927.34167495
Result from (2012)
2014/09 2014/09
GALVUS GALVUSMET
QTD Sales Revenue QTD Sales Revenue
5550927.34167495 5550927.34167495
both results have been duplicated. Finding out a reason it looks like the where Clause which should filter products across first calc member works wrong. So when comment out where clause outcome looks right (I put all products from both brands by the way).
But clients have to choose products to filter.
I am just wondering if anyone encountered a similar issue, or
even if somebody have the solution.
Many thanks,
Denis.
DenisIn other words filter by set in WHERE clause is not working via calc member and aggregate function.
Any ideas guys?
Denis -
SQL Script working differently with 8i and 9i
Hi
I am facing strange problem with my simple SQL script called from a shell script. It bahaves differently with ORACLE 8.1.7.4 and 9.2.0.1. The machine is same.
sqlplus -s / @Tech.sql WKC625 11 11 '11 22' ""
This is working with 9i but it does't work with ORACLE 8.
Actually what happens is that the argument in single quotes (') is taken as 2 separate argument.
The Tech.sql is :
spool add
insert into TECH values ('&1','&2','&3','&4','&5','');
commit;
quit
I tried putting double quotes also. Is something got changes between ORACLE 8 and 9i.
Please help
SurendraAre you sure it works in 9?
If you are using UNIX, then the O/S will strip the quotes while processing the arguments. You need to use 2 single quotes around 11 22, just as you have around the empty string at the end.
I believe that Windows does the same, but I do not use windows.
John -
Copies of Indesign books works different on MAC and PC ?
Hello everyone,
i try to follow many discussion about how to create a clean copy of an Indesign book indb (with different chapters which are individual indesign files) with no link to the old one.
I found many tricks like changing the name of the original folder or packaging the book for print, but i'm not really satisfy by this way.
The first way forced me to change the name of the original file each time i want to make a clean copy and the second way will not keep the structure of my folder and subfolders which are not included in the package.
It seems the real concern is more about how Indesign is able to manage absolute and relative path, and i also found some people asking Indesign only works with absolute path.
But, after many trials on Mac and PC, i was so surprised to check that on my MAC, thinks are working very well, when i make a copy of the original book folder exactly in the same location, the copy is not linked to the original file (that's what i want) !!!
But on PC it doesn't, the copy of the book is still linked to the original files.
Can someone tell me the difference between MAC and PC ?
Is it an option in Indesign to change that ? or is it related to th OS file system ?
Thanks a lot.
DatéHi Peter,
I opened the two books in indesign to compare the paths of the files in the books.
I just simply move the mouse over the indesign file in the book panel to check the path that appears in the yellow tooltip.
For example :
for the original BOOK_TECH.indb, the path of the file Trims.indd in the DOC_TECH folder is : /Users/UserName/Documents/DOC_TECH/MAIN_FILES/Trims.indd
for the copy BOOK_TECH.indb, the path of the file Trims.indd in the DOC_TECH2 folder is : /Users/UserName/Documents/DOC_TECH2/MAIN_FILES/Trims.indd
Another way to be sure of what i'm saying here is to open the file trims.indd in the original book and the same file in the copy. You will get 2 different files opened in Indesign with the same name of course.
I also try with a Mac book pro running MAC OS X 10.6.5, but it doesn't work (you will get the link to the original one). It seems to work or not, depending the OS
i'm curious to know why it is working on MacOS x 10.9 and not 10.6 and windows. Maybe there is a way to fix it with the OS settings ?
If you have the right answer, just let me know, because it could help a lot of people.
Thanks a lot.
Daté -
'is null' not working in dynamic sql and SQl Query component (OBPM 10gr3)
I'm using a SQL Query component with sql like this
'select col1, col2 from table where col3 is null'
for some reason this does not work.
Has anybody faced this issue? Is there a known bug with handling nulls
Thanksplz post which DB version u r working with
dont use paramters in Procedure with : sign
Write simply the name of the Paramters like p_userid etc etc
this might help u as well
http://baigsorcl.blogspot.com/2010/02/get-rid-of-addtional-quotes-with-quote.html -
"save as" work differently in menue and batch
If I save in Illustrator CS4 a EPS File from the menue with "save as" and then I place the file in InDesign CS4 and adjust it proportionally to the frame it works fine.
The object is shortly to the frame.
The same file with the batch option (New Action "Save as"...) works the same but after adjust, it looks like not the object but the drawing area is fit to the Indesign frame.
Any ideas to work around, i have to convert and save more then 1000 files
Example file attached
best regardsI have another methode.
In Visual Basic, I can print the file as EPS and can control all parameters!!
It is not so elegant but it works without user interaction for a lot of files.
Maybe it is the solution for your problems too
Sub Illu()
Dim fs As FileSystemObject
Dim MyPrintOptions As New PrintOptions
Dim MyPrintJobOptions As New PrintJobOptions
Dim SourceN, DestN As String
Dim fso, Folder, CFiles, fc
Set fso = CreateObject("Scripting.FileSystemObject")
SourceN = InputBox("Source Ordner eingeben", "Source") 'input source path of the files to convert
DestN = InputBox("Dest Ordner eingeben", "Destination") 'input destination path of the files to convert
' or for fix path
SourceN = "C:\Dokumente und Einstellungen\wgepsch\Desktop\Grafik fertig\"
DestN = "C:\Dokumente und Einstellungen\wgepsch\Desktop\Grafik fertig\eps\"
Set Folder = fso.GetFolder(SourceN)
Set fc = Folder.Files
For Each CFiles In fc 'for all files in source path
Illustrator.Open SourceN & CFiles.Name 'open file in Illustrator
MyPrintJobOptions.File = DestN & Left(CFiles.Name, Len(CFiles.Name) - 4) & ".EPS" 'set destination path and filename
MyPrintJobOptions.PrintArea = aiArtworkBounds 'IMPORTEND this is the solution for the problem set the area to the artwork
'This parameters I dont need
'MyPrintJobOptions.ArtboardRange
'MyPrintJobOptions.BitmapResolution
'MyPrintJobOptions.Collate
'MyPrintJobOptions.Copies
'MyPrintJobOptions.Designation
'MyPrintJobOptions.File
'MyPrintJobOptions.Name
'MyPrintJobOptions.PrintAllArtboards
'MyPrintJobOptions.PrintAsBitmap
'MyPrintJobOptions.ReversePages
MyPrintOptions.PrintPreset = "EPS" ' this is my printer preset name in Illustrator where I stored alll other parameters
MyPrintOptions.JobOptions = MyPrintJobOptions
Illustrator.UserInteractionLevel = aiDontDisplayAlerts
ActiveDocument.PrintOut MyPrintOptions 'output as EPS file with my parameter
Illustrator.UserInteractionLevel = aiDisplayAlerts
ActiveDocument.Close 2 'close the file without save
Next
End Sub -
Group GL V/s GL Report is working differently in Production and Development
Dear Experts,
I have created one Report which displays Group GLs and its Cumulatve Balances. The Format is is as below :
Items Balances
1001 XXX
1002 XXX
1003 XXX
1100 XXX
With Report Report Interface and Go to option I have connected the above with another Report
If you right click on any of the Item say "1002", It will show its drill down Report that is Group Gl Wise GL, as below
Output 1
Items GL A/c Balances
1002 XXX
10021 XXX
10022 XXX
If you Right Click on the Heading "Item", It show display all Items with its GL Account like
Output 2
Items GL A/c Balances
1001 XXX
10011 XXX
10012 XXX
10013 XXX
1002 XXX
10021 XXX
10022 XXX
1003 10031 XXX
10332 XXX
10033 XXX
The Above output 1 and Output 2 works in Development, but in Production only Output 1 (i.e. Selected one Items with its GL Account) works, Output 2 (i.e. all Items with its GL Account) does not work in Production System.
Kindly let me know whatt could be the reason and its resolution ????
Regards
Ritesh M
Edited by: Ritesh M on Jan 6, 2010 6:40 AMCheck two things in the production system:
1) Is the mapping between G/L group and G/L accounts correctly maintained?
2) Are there real postings on all the accounts which you have listed? -
Does the Math.Random() work differently in Firefox and Safari??
Hello,
I was wondering if anyone can help me with a problem I'm
running into using the math.random(). I'm using Flash CS3 and
created a very simple script to select random frames in a simple
movie. It works as expected in the CS3 environment and in Safari
but it doesn't work correctly in Firefox or in the DotNetNuke
module I am using. Here is the code:
i = Math.ceil(Math.random() * 3);
gotoAndPlay("Image"+i);
I would appreciate any help you can provide.Thanks for following up with me. Yes. When I test the movie
its works fine in Safari but not in Firefox and I don't have a clue
as to why. I hope that you can shed some light on this for me.
Thanks. -
Why does this work in MS SQL and not in Oracle
ALTER TABLE Stk
DROP COLUMN ComCode;
This BASIC statement works perfectly
in MS SQL, but after 2 hours now, it
simply refuses to work in Oracle,
although the syntax seems correct, I
get :
ALTER TABLE Stk
DROP COLUMN ComCode
ORA-00905: missing keyword
nullStop trying! Oracle simply does not support the DROP COLUMN syntax. A work around is:
CREATE another table based on the original table, minus the column you want to drop.
(CREATE TABLE new_table AS SELECT col1, col2 , ... FROM old_table)
DROP the original table.
(DROP TABLE old_table)
RENAME the new table the old table.
(RENAME new_table TO old_table)
Your have to manually add the constraints, if the old table has any.
Eric Ma -
MB51, download to excel works different for online and background.
Hi,
Have a question regarding excel download of MB51 in online mode against background.
If I run MB51 online, I can download it to an excel sheet that is easy to read and work with. Each column in the report in seperate column in excel.
If I run it in the background, try to download the spool to excel, I don't get the columns the same way as online report.
Ive tried changing the layout, downloading to excel, downloading to text and then dropping to excel, etc.
Why wont the download from a batch job work the same as online?
Any ideas or anyway to fix?Hi All,
I am also facing the same problem. When I download to Powerpoint, its getting downloaded properly and whn I download to excel, I am not able to download properly. I have 2 charts of the same report being displayd sde-by-side and under them I have a pivot table displayed in compound view. When downloaded to excel, the first chart is overlapping on top of the report in the excel.
Can anyone suggest if we have any options?
Thanks Shravan -
Output type works different when VF01 and VF02 ,why?
For Invoices related to a B2B order the output type ZB01 does not always come up during invoice creation time. If we go into the invoice via VF02 it will pop up immediate. But invoices are created by batch jobs and then not 100% of the ZB01 get created. Partners are complaining and need this to be 100% working.
what's the probable problem with it?Atish
I Searched 'VF02' already ,but there is no user exit to handle with it .
Maybe because it's B2B ,we can't find it in our SAP system ..
What's the next step should I do -
Out type for B2B invoice works different via VF01 and VF02
For Invoices related to a B2B order the output type ZB01 does not always come up during invoice creation time. If we go into the invoice via VF02 it will pop up immediate. But invoices are created by batch jobs and then not 100% of the ZB01 get created. Partners are complaining and need this to be 100% working.
what's the probable problem with it?
Appreciate your help ,Thanks in advanceAtish
I Searched 'VF02' already ,but there is no user exit to handle with it .
Maybe because it's B2B ,we can't find it in our SAP system ..
What's the next step should I do -
My applet works differently between online and offline.
http://blogfile.paran.com/BLOG_253895/200609/1157419012_DodgeSnowLauncher.html
This is my applet which I made yesterday.
When you click on the link, push the button, and run the applet online,
nothing happens when you click on help - about dodgesnow version 0.1, which is on the menubar above.
However, if you download the html file and run the applet again, you can see the "about dialog".
The dialog is made with the dialog form in NetBeans 5.0, and therefore uses its own layout library.
I want to know why this happens.
Thanks.
---The Error I encountered --------------
Exception occurred during event dispatching:
java.lang.ExceptionInInitializerError
at org.jdesktop.layout.GroupLayout$ContainerAutopaddingSpring.calculateP
adding(GroupLayout.java:2518)
at org.jdesktop.layout.GroupLayout$Group.calculateAutopadding(GroupLayou
t.java:1257)
at org.jdesktop.layout.GroupLayout$Group.calculateAutopadding(GroupLayou
t.java:1259)
at org.jdesktop.layout.GroupLayout$Group.calculateAutopadding(GroupLayou
t.java:1259)
at org.jdesktop.layout.GroupLayout.resetAutopadding(GroupLayout.java:800
at org.jdesktop.layout.GroupLayout.prepare(GroupLayout.java:807)
at org.jdesktop.layout.GroupLayout.preferredLayoutSize(GroupLayout.java:
641)
at java.awt.Container.preferredSize(Container.java:1558)
at java.awt.Container.getPreferredSize(Container.java:1543)
at javax.swing.JComponent.getPreferredSize(JComponent.java:1617)
at javax.swing.JRootPane$RootLayout.preferredLayoutSize(JRootPane.java:8
24)
at java.awt.Container.preferredSize(Container.java:1558)
at java.awt.Container.getPreferredSize(Container.java:1543)
at javax.swing.JComponent.getPreferredSize(JComponent.java:1617)
at java.awt.BorderLayout.preferredLayoutSize(BorderLayout.java:690)
at java.awt.Container.preferredSize(Container.java:1558)
at java.awt.Container.getPreferredSize(Container.java:1543)
at java.awt.Window.pack(Window.java:486)
at AboutDialog.initComponents(AboutDialog.java:65)
at AboutDialog.(AboutDialog.java:12)
at DodgeSnowGUI.actionPerformed(DodgeSnowGUI.java:194)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:18
49)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.jav
a:2169)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel
.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258
at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1
000)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMen
uItemUI.java:1041)
at java.awt.Component.processMouseEvent(Component.java:5488)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
at java.awt.Component.processEvent(Component.java:5253)
at java.awt.Container.processEvent(Container.java:1966)
at java.awt.Component.dispatchEventImpl(Component.java:3955)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
at java.awt.Container.dispatchEventImpl(Container.java:2010)
at java.awt.Window.dispatchEventImpl(Window.java:1778)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh
read.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
ad.java:163)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
ad.java:153)
at java.awt.Dialog$1.run(Dialog.java:517)
at java.awt.Dialog$2.run(Dialog.java:545)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Dialog.show(Dialog.java:543)
at java.awt.Component.show(Component.java:1300)
at java.awt.Component.setVisible(Component.java:1253)
at DodgeSnowLauncher$1.actionPerformed(DodgeSnowLauncher.java:10)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:18
49)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.jav
a:2169)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel
.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonL
istener.java:236)
at java.awt.Component.processMouseEvent(Component.java:5488)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
at java.awt.Component.processEvent(Component.java:5253)
at java.awt.Container.processEvent(Container.java:1966)
at java.awt.Component.dispatchEventImpl(Component.java:3955)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
at java.awt.Container.dispatchEventImpl(Container.java:2010)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh
read.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
ad.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Caused by: java.lang.RuntimeException: java.security.AccessControlException: acc
ess denied (java.net.SocketPermission image.paran.com:80 connect,resolve)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon
nection.java:887)
at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLCon
nection.java:1912)
at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:376
at sun.applet.AppletClassLoader.getBytes(AppletClassLoader.java:269)
at sun.applet.AppletClassLoader.access$100(AppletClassLoader.java:44)
at sun.applet.AppletClassLoader$1.run(AppletClassLoader.java:158)
at java.security.AccessController.doPrivileged(Native Method)
at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:155)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:119)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at org.jdesktop.layout.LayoutStyle.(LayoutStyle.java:63)
... 75 more
Caused by: java.security.AccessControlException: access denied (java.net.SocketP
ermission image.paran.com:80 connect,resolve)
at java.security.AccessControlContext.checkPermission(AccessControlConte
xt.java:264)
at java.security.AccessController.checkPermission(AccessController.java:
427)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
at java.lang.SecurityManager.checkConnect(SecurityManager.java:1034)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:459)
at sun.net.www.http.HttpClient.(HttpClient.java:214)
at sun.net.www.http.HttpClient.New(HttpClient.java:287)
at sun.net.www.http.HttpClient.New(HttpClient.java:299)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLC
onnection.java:796)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConne
ction.java:748)
at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection
.java:673)
at sun.net.www.protocol.http.HttpURLConnection.followRedirect(HttpURLCon
nection.java:1706)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon
nection.java:1089)
at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:367
... 87 more
Exception occurred during event dispatching:
java.lang.NoClassDefFoundError
at org.jdesktop.layout.GroupLayout$ContainerAutopaddingSpring.calculateP
adding(GroupLayout.java:2518)
at org.jdesktop.layout.GroupLayout$Group.calculateAutopadding(GroupLayou
t.java:1257)
at org.jdesktop.layout.GroupLayout$Group.calculateAutopadding(GroupLayou
t.java:1259)
at org.jdesktop.layout.GroupLayout$Group.calculateAutopadding(GroupLayou
t.java:1259)
at org.jdesktop.layout.GroupLayout.resetAutopadding(GroupLayout.java:800
at org.jdesktop.layout.GroupLayout.layoutContainer(GroupLayout.java:676)
at java.awt.Container.layout(Container.java:1401)
at java.awt.Container.doLayout(Container.java:1390)
at java.awt.Container.validateTree(Container.java:1473)
at java.awt.Container.validateTree(Container.java:1480)
at java.awt.Container.validateTree(Container.java:1480)
at java.awt.Container.validateTree(Container.java:1480)
at java.awt.Container.validate(Container.java:1448)
at java.awt.Window.dispatchEventImpl(Window.java:1776)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh
read.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
ad.java:163)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
ad.java:153)
at java.awt.Dialog$1.run(Dialog.java:517)
at java.awt.Dialog$2.run(Dialog.java:545)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Dialog.show(Dialog.java:543)
at java.awt.Component.show(Component.java:1300)
at java.awt.Component.setVisible(Component.java:1253)
at DodgeSnowLauncher$1.actionPerformed(DodgeSnowLauncher.java:10)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:18
49)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.jav
a:2169)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel
.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonL
istener.java:236)
at java.awt.Component.processMouseEvent(Component.java:5488)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
at java.awt.Component.processEvent(Component.java:5253)
at java.awt.Container.processEvent(Container.java:1966)
at java.awt.Component.dispatchEventImpl(Component.java:3955)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
at java.awt.Container.dispatchEventImpl(Container.java:2010)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh
read.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
ad.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Message was edited by:
geniusleonid1. your applet does not work in IE because it tries to run your applet with msjvm. Use object tag instead of applet.
In the [jdk home]/bin directory there is a tool called htmlconverter.
Use that to convert your html page.
2. your applet tries to do something outside of the applet's sandbox security.
Caused by: java.lang.RuntimeException: java.security.AccessControlException: acc
ess denied (java.net.SocketPermission image.paran.com:80 connect,resolve)
I am not sure what you mean by running the applet locally (appletviewer
with policy, netbeans) Or opening the html page and having a policy for
code run locally.
Why would your applet comming from blogfile.paran.com:80 try to
connect to image.paran.com:80 I guess java sees this as another sub
domain and won't let the applet do this.
3. when I open your applet it takes a full one minute after loading the applet before I see the gui.
after this[b]
http://blogfile.paran.com/BLOG_253895/200609/basic: Loading http://blogfile.paran.com/BLOG_253895/200609/1157418860_DodgeSnow.jar from cache
the jre (Java Plug-in 1.5.0_06) seems to go to sleep for a full one minute.
4. The exception I get is this[b]
java.lang.ClassFormatError: Incompatible magic value 1195984440 in class file javax/swing/LayoutStyle
Because[b]
http://blogfile.paran.com/BLOG_253895/200609/javax/swing/LayoutStyle.class
Does not exist, I guess the jre looks for this file because it's not included
in your jar and I don't have it in my lib/ext or classpath.
You jar does contain a org.jdesktop.LayoutStyle.
A Full trace might help us out:
http://forum.java.sun.com/thread.jspa?threadID=656028 -
GL posting program works differently in production and QA system?
Hi Experts,
I got a strange error when I copy a personnel from production to QA to test the posting. The employee has retro calculation back to period 1 of 2010. The GL posting program RPCIPE00 only picks up the original record in 01.2010 (the P record) in QA system and so gives an unbalancing error. But in production when I do a simulation with GL posting I can see in the log that it picks up both P and A result and there is no error.
What could cause the inconsistency of this program?
Thanks a lot.
AllanIs payroll run is same manner in both system, could you see all results are exactly same in both system and there is no changes.
Manoj Shakya
Maybe you are looking for
-
Error occured while executing WebSQL statement in Windows (Phone) 8.1
I am debugging Apache Cordova application in Visual Studio 2013.4. The application works fine in Ripple and Android emulator, however, when I try to debug on Windows x64 or Windows Phone (device) I get following error: On this line: https://github.co
-
HELP I can't import my photos from my Cannon to the Cannon app on my imac on Snow Leopard!
HELP - I just installed Snow Leopard & though I've uploaded photos from my Cannon Power Shot A590, since then ... But today while it opened the Cannon "Camera WIndow" & looks like the photos are being uploaded, an iMac box appears showing a: "failed
-
I can't get rid of MyFrontPageTabPannelContainer
I have to remove MyFrontPageTabPannelContainer from the sampleportal, but I can't. To do that I cleared all sample user profiles (including the profile of authlessanonymous user), removed MyFrontPageTabPannelContainer from JSPTabContainer, and left t
-
How to make the IC_EMAIL work center working?
Hi Gurus, I am testing the email funcation of SAP delivered business role UTIL_IC (Utilities IC Agent). The email profile is 'DEFAULT' with email provider as ICI. The work center is IC_EMAIL. After I clicked the email option under communication throu
-
Hi I am using JMS in a request/reply scenario. The following is the sequence of operations 1. Get handle to Connection by JNDI lookup of QCF 2. Get handle to RequestQueue by JNDI lookup of Request Queue 3. Get handle to ResponseQueue by JNDI lookup o