What's wrong in this XML Data Definition
Can someone point out the mistake in this XML Data Definition??
<?xml version="1.0" encoding="UTF-8"?>
<datatemplate name="CASH_BREAKUP" description="cash_breakup" version="1.0" defaultpackage="">
<parameters>
<parameter name="p_date" datatype="date" />
<parameter name="p_date2" datatype="date" />
</parameters>
<dataQuery>
<sqlstatement name="query1">
select apc.CHECK_NUMBER, apc.CHECK_DATE, apc.VENDOR_NAME, apc.BANK_ACCOUNT_NUM,
apc.AMOUNT, case when xah.EVENT_TYPE_CODE = 'PAYMENT CANCELLED' then apc.AMOUNT*-1 else apc.AMOUNT end as Accounted,
xah.EVENT_TYPE_CODE
from XLA_AE_HEADERS xah,
XLA_AE_LINES xal,
XLA_EVENTS xae,
xla.xla_transaction_entities xte,
ap_checks_all apc
where xah.AE_HEADER_ID = xal.AE_HEADER_ID
and xae.EVENT_ID = xah.EVENT_ID
and xal.ACCOUNTING_CLASS_CODE = 'CASH'
and xte.ENTITY_ID = xae.ENTITY_ID
and xte.APPLICATION_ID = 200
and apc.ORG_ID = 81
and apc.check_id = xte.SOURCE_ID_INT_1
and xah.ACCOUNTING_DATE >= :p_date and xah.ACCOUNTING_DATE >=:p_date2
</sqlstatement>
</dataQuery>
<datastructure>
<group name="check" source="query1">
<element name="CHECK_NUMBER" value="Check Number"/>
<element name="CHECK_DATE" value="Check Date"/>
<element name="VENDOR_NAME" value="Payee"/>
<element name="BANK_ACCOUNT_NUM" value="Bank Account"/>
<element name="AMOUNT" value="Check Amount"/>
<element name="ACCOUNTED" value="Accounted"/>
<element name="EVENT_TYPE_CODE" value="Status"/>
</group>
</datastructure>
</datatemplate>
I registered this XML data definition in EBS using XML publisher but the concurrent program completes with errors...!!!
The problem persists, So i have attached the XML Data Definition & Log file as you requested.
Many Thanks for the reply..!!
<?xml version="1.0" encoding="UTF-8"?>
<datatemplate name="CASH_BREAKUP" description="cash_breakup" version="1.0" defaultpackage="">
<parameters>
<parameter name="p_date" datatype="date" />
<parameter name="p_date2" datatype="date" />
</parameters>
<dataQuery>
<sqlstatement name="query1">
select apc.CHECK_NUMBER, apc.CHECK_DATE, apc.VENDOR_NAME, apc.BANK_ACCOUNT_NUM,
apc.AMOUNT, case when xah.EVENT_TYPE_CODE = 'PAYMENT CANCELLED' then apc.AMOUNT*-1 else apc.AMOUNT end as Accounted,
xah.EVENT_TYPE_CODE
from XLA_AE_HEADERS xah,
XLA_AE_LINES xal,
XLA_EVENTS xae,
xla.xla_transaction_entities xte,
ap_checks_all apc
where xah.AE_HEADER_ID = xal.AE_HEADER_ID
and xae.EVENT_ID = xah.EVENT_ID
and xal.ACCOUNTING_CLASS_CODE = 'CASH'
and xte.ENTITY_ID = xae.ENTITY_ID
and xte.APPLICATION_ID = 200
and apc.ORG_ID = 81
and apc.check_id = xte.SOURCE_ID_INT_1
and xah.ACCOUNTING_DATE >= :p_date and xah.ACCOUNTING_DATE <= :p_date2
</sqlstatement>
</dataQuery>
<datastructure>
<group name="check" source="query1">
<element name="CHECK_NUMBER" value="Check Number"/>
<element name="CHECK_DATE" value="Check Date"/>
<element name="VENDOR_NAME" value="Payee"/>
<element name="BANK_ACCOUNT_NUM" value="Bank Account"/>
<element name="AMOUNT" value="Check Amount"/>
<element name="ACCOUNTED" value="Accounted"/>
<element name="EVENT_TYPE_CODE" value="Status"/>
</group>
</datastructure>
</datatemplate>
Error Log File
XML Publisher: Version : 12.0.0
Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
CASH_BREAKUP3 module: Cash Account Breakup
Current system time is 15-MAY-2013 09:34:28
XDO Data Engine Version No: 5.6.3
Resp: 20420
Org ID : 81
Request ID: 433616
All Parameters: p_date=01-FEB-13:p_date2=28-FEB-13
Data Template Code: CASH_BREAKUP3
Data Template Application Short Name: XDO
Debug Flag: N
{p_date=01-FEB-13, p_date2=28-FEB-13}
Calling XDO Data Engine...
[051513_093433589][][EXCEPTION] java.lang.NullPointerException
at oracle.apps.xdo.dataengine.DataTemplateParser.GetNodeNumChildren(DataTemplateParser.java:334)
at oracle.apps.xdo.dataengine.DataTemplateParser.templateParser(DataTemplateParser.java:266)
at oracle.apps.xdo.dataengine.XMLPGEN.setDataTemplate(XMLPGEN.java:140)
at oracle.apps.xdo.dataengine.DataProcessor.setDataTemplate(DataProcessor.java:193)
at oracle.apps.xdo.oa.util.DataTemplate.<init>(DataTemplate.java:231)
at oracle.apps.xdo.oa.cp.JCP4XDODataEngine.runProgram(JCP4XDODataEngine.java:283)
at oracle.apps.fnd.cp.request.Run.main(Run.java:157)
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at com.sun.java.util.collections.ArrayList.RangeCheck(ArrayList.java:492)
at com.sun.java.util.collections.ArrayList.get(ArrayList.java:306)
at oracle.apps.xdo.dataengine.DataTemplateParser.getParentDataSource(DataTemplateParser.java:1801)
at oracle.apps.xdo.dataengine.XMLPGEN.writeDefaultGroup(XMLPGEN.java:331)
at oracle.apps.xdo.dataengine.XMLPGEN.writeGroupStructure(XMLPGEN.java:286)
at oracle.apps.xdo.dataengine.XMLPGEN.processData(XMLPGEN.java:273)
at oracle.apps.xdo.dataengine.XMLPGEN.processXML(XMLPGEN.java:215)
at oracle.apps.xdo.dataengine.XMLPGEN.writeXML(XMLPGEN.java:254)
at oracle.apps.xdo.dataengine.DataProcessor.processDataStructre(DataProcessor.java:390)
at oracle.apps.xdo.dataengine.DataProcessor.processData(DataProcessor.java:355)
at oracle.apps.xdo.oa.util.DataTemplate.processData(DataTemplate.java:334)
at oracle.apps.xdo.oa.cp.JCP4XDODataEngine.runProgram(JCP4XDODataEngine.java:294)
at oracle.apps.fnd.cp.request.Run.main(Run.java:157)
Start of log messages from FND_FILE
End of log messages from FND_FILE
Executing request completion options...
Output file size:
42
Finished executing request completion options.
Concurrent request completed
Current system time is 15-MAY-2013 09:34:33
---------------------------------------------------------------------------
Similar Messages
-
What's wrong with this content type definition?
Could someone tell me what's wrong with this content type definition? When I click "New Folder" in a custom list, it should bring two fields 1) Name 2) Custom Order. However in my case when I click new folder, I see 1) Member (which is totally
weird) 2) custom order. Where is it getting that Member field from?
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<!-- Parent ContentType: Folder (0x0120) -->
<ContentType ID="0x012000c0692689cafc4191b6283f72f2369cff"
Name="Folder_OrderColumn"
Group="Custom"
Description="Folder with order column"
Inherits="TRUE"
Version="0">
<FieldRefs>
<FieldRef ID="{35788ED2-8569-48DC-B6DE-BA72A4F87B7A}" Name="Custom_x0020_Order" DisplayName="Custom Order" />
</FieldRefs>
</ContentType>
</Elements>Hi,
According to your post, my understanding is that you had an issue about the custom content type with custom column.
I don’t think there is any issue in the content type definition, and it also worked well in my environment.
Did you have the Member field in the project?
I recommend you create a simple project only with one custom Order column and one custom Folder_OrderColumn, then you can add more fields one by one.
By doing this, it will be easier to find out the root cause of this error.
Thanks,
Jason
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Jason Guo
TechNet Community Support -
Error while passing date parameter to the XML data definition
Hi All,
I have developed a BI publisher report using XML data definition & RTF template.
This data definition contains a SQL query in it's CDATA section and runs as a concurrent program(without RDF) . We are looking to pass a date parameter to the SQL query and its not accepting the date parameter. However, when we hardcode SYSDATE in the SQL query in place of the parameter, the report runs fine. In the log file it shows that the parameter is being treated in American date style and we are using DD-MON-RRRR format. I have tried to convert the date format however still the error exists.
What we did ?
Created a XML data definition which contains the SQL query in its CDATA section & p_rundate (DATE) parameter.
Registerd the XML data definition as concurrent program with EXECUTABLE= XDODTEXE and Output format as XML with p_date as a date parameter.
Looking for any available solution for the same.
Thanks.Hi All,
I have developed a BI publisher report using XML data definition & RTF template.
This data definition contains a SQL query in it's CDATA section and runs as a concurrent program(without RDF) . We are looking to pass a date parameter to the SQL query and its not accepting the date parameter. However, when we hardcode SYSDATE in the SQL query in place of the parameter, the report runs fine. In the log file it shows that the parameter is being treated in American date style and we are using DD-MON-RRRR format. I have tried to convert the date format however still the error exists.
What we did ?
Created a XML data definition which contains the SQL query in its CDATA section & p_rundate (DATE) parameter.
Registerd the XML data definition as concurrent program with EXECUTABLE= XDODTEXE and Output format as XML with p_date as a date parameter.
Looking for any available solution for the same.
Thanks. -
What's wrong with this function
What's wrong with this Function(PL/SQL) in this formaula column definition in Reports 6i
function currdateFormula return Date is
curr_date date;
begin
select to_char(sysdate, 'DD-MM-YYYY') into curr_date from dual;
return(curr_date);
end;
I get the following error in compiling
REP-1401. 'currdateformula'.Fatal PL/SQL error occured. ORA-01843 not a valid month.
The SQL select to_char(sysdate, 'DD-MM-YYYY') from dual; worked well in SQL Plus prompt.
I got a clean compile when i use just sysdate in the function (see below).
function currdateFormula return Date is
curr_date date;
begin
select sysdate into curr_date from dual;
return(curr_date);
end;
Appreciate your help
Raja Lakshmihello,
what you are trying to do :
fetch the current date and return it as the result of the formula-column.
what you are actually doing :
fetch the current date, convert it to text, assign this text to a date-variable which causes an implicit type-conversion.
in your case you create a date-string with the format dd-mm-yyyy. the implicit conversion then tries to convert this string back to date using the NLS settings of your session. depending on your NLS_LANG and NLS_DATE_FORMAT this might work, if your session-date-format is dd-mm-yyyy which obviously it is NOT as you get the error.
what you should do :
select sysdate into curr_date from dual;
this fetches the sysdate and stores it in your date-variable. there is no type conversion needed what so ever.
regards,
the oracle reports team -
How to use XML data stored in table column in XML Data Definition
Hi,
We are using BIP 5.6.3 (Oracle EBS R12).
We have a table which stores XML data in a column. Is there a way we can use this XML data through a SQL query in XML Data Definition of BI Publisher report instead or writing whole SQL query to fetch same data from Oracle EBS?
Can some please provide a sample SQL query that we should use in Data Definition?
Thanks!Mark,
Thanks. This is exactly what I was looking for.
After doing @Name in both places (SELECT and WHERE clause) it worked.
Now I have one more question.
There are multiple DIMENSION tags in my xml, and I want to see the NAME attribute values for all of those DIMENSIONs. The following query returns
ORA-19025: EXTRACTVALUE returns value of only one node.
Cause: Given XPath points to more than one node.
Action: Rewrite the query so that exactly one node is returned.
SELECT
extractValue(value(x), '/AW/@Name') as "AW",
extractValue(value(x), '/AW/Dimension/@Name') as "DIMENSIONS"
from
OLAP_AW_PRC,
table(xmlsequence(extract (xmltype(AW_XML_TMPL_VAL), '/AWXML/AWXML.content/Create/ActiveObject/AW'))) x
where
extractValue(value(x) , '/AW/@Name') = 'OMCR4' -
Can anybody see what is wrong with this SQL statement?
Hey guys, just a quick question. Can anybody tell me what is wrong with this line of SQL? I keep getting a syntax error message. I've been trying for ages and I can't see any problem at all!"
{code}prepStat = connection.prepareStatement("INSERT INTO WeatherHistory (Date, Location, Overview, Temperature, WindDirection, WindSpeed, Pressure) VALUES ('"+date+"','"+location+"','"+temp+"','"+windDir+"','"+windSpd+"','"+pressure+"')");{code}
All the field names and variables definitely exist so I can't see what the problem is!DHD wrote:
Thanks for the replies.
I've matched the correct number of column names and variables, but still no luck.
And how exactly am I misusing Prepared Statements here?As noted above, not according to the code you posted. I didn't just pluck something out of my @ss and throw it out there. There was a reason behind what I said. And, if you mean you changed it, and you still got an exception, then post that exception (completely), and your new code, which is, hopefully, using PreparedStatement, (properly). -
I can't figure out what's wrong with this code
First i want this program to allow me to enter a number with the EasyReader class and depending on the number entered it will show that specific line of this peom:
One two buckle your shoe
Three four shut the door
Five six pick up sticks
Seven eight lay them straight
Nine ten this is the end.
The error message i got was an illegal start of expression. I can't figure out why it is giving me this error because i have if (n = 1) || (n = 2) statements. My code is:
public class PoemSeventeen
public static void main(String[] args)
EasyReader console = new EasyReader();
System.out.println("Enter a number for the poem (0 to quit): ");
int n = console.readInt();
if (n = 1) || (n = 2)
System.out.println("One, two, buckle your shoe");
else if (n = 3) || (n = 4)
System.out.println("Three, four, shut the door");
else if (n = 5) || (n = 6)
System.out.println("Five, six, pick up sticks");
else if (n = 7) || (n = 8)
System.out.println("Seven, eight, lay them straight");
else if (n = 9) || (n = 10)
System.out.println("Nine, ten, this is the end");
else if (n = 0)
System.out.println("You may exit now");
else
System.out.println("Put in a number between 0 and 10");
I messed around with a few other thing because i had some weird errors before but now i have narrowed it down to just this 1 error.
The EasyReader class code:
// package com.skylit.io;
import java.io.*;
* @author Gary Litvin
* @version 1.2, 5/30/02
* Written as part of
* <i>Java Methods: An Introduction to Object-Oriented Programming</i>
* (Skylight Publishing 2001, ISBN 0-9654853-7-4)
* and
* <i>Java Methods AB: Data Structures</i>
* (Skylight Publishing 2003, ISBN 0-9654853-1-5)
* EasyReader provides simple methods for reading the console and
* for opening and reading text files. All exceptions are handled
* inside the class and are hidden from the user.
* <xmp>
* Example:
* =======
* EasyReader console = new EasyReader();
* System.out.print("Enter input file name: ");
* String fileName = console.readLine();
* EasyReader inFile = new EasyReader(fileName);
* if (inFile.bad())
* System.err.println("Can't open " + fileName);
* System.exit(1);
* String firstLine = inFile.readLine();
* if (!inFile.eof()) // or: if (firstLine != null)
* System.out.println("The first line is : " + firstLine);
* System.out.print("Enter the maximum number of integers to read: ");
* int maxCount = console.readInt();
* int k, count = 0;
* while (count < maxCount && !inFile.eof())
* k = inFile.readInt();
* if (!inFile.eof())
* // process or store this number
* count++;
* inFile.close(); // optional
* System.out.println(count + " numbers read");
* </xmp>
public class EasyReader
protected String myFileName;
protected BufferedReader myInFile;
protected int myErrorFlags = 0;
protected static final int OPENERROR = 0x0001;
protected static final int CLOSEERROR = 0x0002;
protected static final int READERROR = 0x0004;
protected static final int EOF = 0x0100;
* Constructor. Prepares console (System.in) for reading
public EasyReader()
myFileName = null;
myErrorFlags = 0;
myInFile = new BufferedReader(
new InputStreamReader(System.in), 128);
* Constructor. opens a file for reading
* @param fileName the name or pathname of the file
public EasyReader(String fileName)
myFileName = fileName;
myErrorFlags = 0;
try
myInFile = new BufferedReader(new FileReader(fileName), 1024);
catch (FileNotFoundException e)
myErrorFlags |= OPENERROR;
myFileName = null;
* Closes the file
public void close()
if (myFileName == null)
return;
try
myInFile.close();
catch (IOException e)
System.err.println("Error closing " + myFileName + "\n");
myErrorFlags |= CLOSEERROR;
* Checks the status of the file
* @return true if en error occurred opening or reading the file,
* false otherwise
public boolean bad()
return myErrorFlags != 0;
* Checks the EOF status of the file
* @return true if EOF was encountered in the previous read
* operation, false otherwise
public boolean eof()
return (myErrorFlags & EOF) != 0;
private boolean ready() throws IOException
return myFileName == null || myInFile.ready();
* Reads the next character from a file (any character including
* a space or a newline character).
* @return character read or <code>null</code> character
* (Unicode 0) if trying to read beyond the EOF
public char readChar()
char ch = '\u0000';
try
if (ready())
ch = (char)myInFile.read();
catch (IOException e)
if (myFileName != null)
System.err.println("Error reading " + myFileName + "\n");
myErrorFlags |= READERROR;
if (ch == '\u0000')
myErrorFlags |= EOF;
return ch;
* Reads from the current position in the file up to and including
* the next newline character. The newline character is thrown away
* @return the read string (excluding the newline character) or
* null if trying to read beyond the EOF
public String readLine()
String s = null;
try
s = myInFile.readLine();
catch (IOException e)
if (myFileName != null)
System.err.println("Error reading " + myFileName + "\n");
myErrorFlags |= READERROR;
if (s == null)
myErrorFlags |= EOF;
return s;
* Skips whitespace and reads the next word (a string of consecutive
* non-whitespace characters (up to but excluding the next space,
* newline, etc.)
* @return the read string or null if trying to read beyond the EOF
public String readWord()
StringBuffer buffer = new StringBuffer(128);
char ch = ' ';
int count = 0;
String s = null;
try
while (ready() && Character.isWhitespace(ch))
ch = (char)myInFile.read();
while (ready() && !Character.isWhitespace(ch))
count++;
buffer.append(ch);
myInFile.mark(1);
ch = (char)myInFile.read();
if (count > 0)
myInFile.reset();
s = buffer.toString();
else
myErrorFlags |= EOF;
catch (IOException e)
if (myFileName != null)
System.err.println("Error reading " + myFileName + "\n");
myErrorFlags |= READERROR;
return s;
* Reads the next integer (without validating its format)
* @return the integer read or 0 if trying to read beyond the EOF
public int readInt()
String s = readWord();
if (s != null)
return Integer.parseInt(s);
else
return 0;
* Reads the next double (without validating its format)
* @return the number read or 0 if trying to read beyond the EOF
public double readDouble()
String s = readWord();
if (s != null)
return Double.parseDouble(s);
// in Java 1, use: return Double.valueOf(s).doubleValue();
else
return 0.0;
Can anybody please tell me what's wrong with this code? ThanksString[] message = {
"One, two, buckle your shoe",
"One, two, buckle your shoe",
"Three, four, shut the door",
"Three, four, shut the door",
"Five, six, pick up sticks",
"Five, six, pick up sticks",
"Seven, eight, lay them straight",
"Seven, eight, lay them straight",
"Nine, ten, this is the end",
"Nine, ten, this is the end"
if(n>0)
System.out.println(message[n]);
else
System.exit(0); -
What's wrong with this SQL?
what's wrong with this SQL?
Posted: Jan 16, 2007 9:35 AM Reply
Hi, everyone:
when I insert into table, i use the fellowing SQL:
INSERT INTO xhealthcall_script_data
(XHC_CALL_ENDED, XHC_SWITCH_PORT, XHC_SCRIPT_ID, XHC_FAX_SPECIFIED)
VALUES (SELECT TO_DATE(HH_END_DATE||' '||HH_END_TIME,'MM/DD/YY HH24:MI:SS'), HH_SWITCHPORT, HH_SCRIPT,'N'
FROM tmp_healthhit_load WHERE HH_SCRIPT !='BROCHURE' UNION
SELECT TO_DATE(HH_END_DATE||' '||HH_END_TIME,'MM/DD/YY HH24:MI:SS'), HH_SWITCHPORT, HH_SCRIPT,'N' FROM tmp_healthhit_load WHERE HH_SCRIPT !='BROCHURE');
I always got an error like;
VALUES (SELECT TO_DATE(HH_END_DATE||' '||HH_END_TIME,'MM/DD/YY HH24:MI:SS'), HH_SWITCHPORT,
ERROR at line 3:
ORA-00936: missing expression
but I can't find anything wrong, who can tell me why?
thank you so much in advance
mpowel01
Posts: 1,516
Registered: 12/7/98
Re: what's wrong with this SQL?
Posted: Jan 16, 2007 9:38 AM in response to: jerrygreat Reply
For starters, an insert select does not have a values clause.
HTH -- Mark D Powell --
PP
Posts: 41
From: q
Registered: 8/10/06
Re: what's wrong with this SQL?
Posted: Jan 16, 2007 9:48 AM in response to: mpowel01 Reply
Even I see "missing VALUES" as the only error
Eric H
Posts: 2,822
Registered: 10/15/98
Re: what's wrong with this SQL?
Posted: Jan 16, 2007 9:54 AM in response to: jerrygreat Reply
...and why are you doing a UNION on the exact same two queries?
(SELECT TO_DATE(HH_END_DATE||' '||HH_END_TIME,'MM/DD/YY HH24:MI:SS') ,HH_SWITCHPORT ,HH_SCRIPT ,'N' FROM tmp_healthhit_load WHERE HH_SCRIPT !='BROCHURE' UNION SELECT TO_DATE(HH_END_DATE||' '||HH_END_TIME,'MM/DD/YY HH24:MI:SS') ,HH_SWITCHPORT ,HH_SCRIPT ,'N' FROM tmp_healthhit_load WHERE HH_SCRIPT !='BROCHURE');
jerrygreat
Posts: 8
Registered: 1/3/07
Re: what's wrong with this SQL?
Posted: Jan 16, 2007 9:55 AM in response to: mpowel01 Reply
Hi,
thank you for your answer, but the problem is, if I deleted "values" as you pointed out, and then execute it again, I got error like "ERROR at line 3:
ORA-03113: end-of-file on communication channel", and I was then disconnected with server, I have to relogin SQLplus, and do everything from beganing.
so what 's wrong caused disconnection, I can't find any triggers related. it is so wired?
I wonder if anyone can help me about this.
thank you very much
jerry
yingkuan
Posts: 1,801
From: San Jose, CA
Registered: 10/8/98
Re: what's wrong with this SQL?
Posted: Jan 16, 2007 9:59 AM in response to: jerrygreat Reply
Dup Post
jerrygreat
Posts: 8
Registered: 1/3/07
Re: what's wrong with this SQL?
Posted: Jan 16, 2007 10:00 AM in response to: Eric H Reply
Hi,
acturlly what I do is debugging a previous developer's scipt for data loading, this script was called by Cron work, but it never can be successfully executed.
I think he use union for eliminating duplications of rows, I just guess.
thank you
jerry
mpowel01
Posts: 1,516
Registered: 12/7/98
Re: what's wrong with this SQL?
Posted: Jan 16, 2007 10:03 AM in response to: yingkuan Reply
Scratch the VALUES keyword then make sure that the select list matches the column list in number and type.
1 insert into marktest
2 (fld1, fld2, fld3, fld4, fld5)
3* select * from marktest
UT1 > /
16 rows created.
HTH -- Mark D Powell --
Jagan
Posts: 41
From: Hyderabad
Registered: 7/21/06
Re: what's wrong with this SQL?
Posted: Jan 16, 2007 10:07 AM in response to: jerrygreat Reply
try this - just paste the code and give me the error- i mean past the entire error as it is if error occurs
INSERT INTO xhealthcall_script_data
(xhc_call_ended, xhc_switch_port, xhc_script_id,
xhc_fax_specified)
SELECT TO_DATE (hh_end_date || ' ' || hh_end_time, 'MM/DD/YY HH24:MI:SS'),
hh_switchport, hh_script, 'N'
FROM tmp_healthhit_load
WHERE hh_script != 'BROCHURE'
UNION
SELECT TO_DATE (hh_end_date || ' ' || hh_end_time, 'MM/DD/YY HH24:MI:SS'),
hh_switchport, hh_script, 'N'
FROM tmp_healthhit_load
WHERE hh_script != 'BROCHURE';
Regards
Jagan
jerrygreat
Posts: 8
Registered: 1/3/07
Re: what's wrong with this SQL?
Posted: Jan 16, 2007 11:31 AM in response to: Jagan Reply
Hi, Jagan:
thank you very much for your answer.
but when I execute it, I still can get error like:
ERROR at line 1:
ORA-03113: end-of-file on communication channel
so wired, do you have any ideas?
thank you very muchAnd this one,
Aother question about SQL?
I thought I already told him to deal with
ORA-03113: end-of-file on communication channel
problem first.
There's nothing wrong (syntax wise) with the query. (of course when no "value" in the insert) -
What's wrong with this formula?
What's wrong with this formula? Why am I getting 0?
Mismatch in data types.
Status, "=*Book*" is fine, as the content of the status column is text, and the condition is comparing it to a text string (with wild cards)
But
Event Date, "=*2011*" compares a Date and Time value in Event Date to a text string (with wild cards).
Here's a demonstration, using COUNTIF to stand in for COUNTIFS.
Note that the "book" counts are all correct.
Note that the first Date count counts both occurrences of Jan 2, 2012 in column A, despite the difference in format used in displaying the dates, while the second counts neither, due to the wild card forcing it to look for a text string, not a Date and Time value.
For your case, you'll need a COUNTIFS formula with three test-range, condition pairs:
=COUNTIFS(Schedule :: $A,"=*book*",Schedule :: $B,">="&B2,Schedule :: B,"<="&B3)
Regards,
Barry -
Establishing Database connection for XML Data Definition?
I have a XML Data Definition which will query data from Oracle Database.
I did some research and tried few setting options in JDeveloper (11g), but had no luck on finding a way to connect to Database.
My goal is to use JDeveloper to run a XML Data Definition against Database and generate a XML File with data.
Can this be done?
Data Definition:
<?xml version="1.0" encoding="WINDOWS-1252"?>
<dataTemplate name="XX_ATT_VALIDATION" description="description"
dataSourceRef="MTS-AT"
version="1.0">
<properties>
<property name="include_parameters" value="false" />
<property name="include_null_Element" value="true" />
<property name="include_rowset_tag" value="false" />
</properties>
<parameters>
<parameter name="p_batch_id" dataType="character"/>
</parameters>
<dataQuery>
<sqlStatement name="Q_HEADER_VALUES">
<![CDATA[
select distinct
sci.bill_cycle,
to_char(sci.bill_date,'mm/dd/yyyy') bill_date,
to_char(sysdate,'mm/dd/yyyy') report_run_date
from st_cm_interface sci
where sci.record_type='05'
and sci.batch_id=:p_batch_id
]]>
</sqlStatement>
<dataStructure>
<group name="G_HEADER_VALUES" source="Q_HEADER_VALUES">
<element name="bill_cycle" value="bill_cycle"/>
<element name="bill_date" value="bill_date"/>
<element name="report_run_date" value="report_run_date"/>
</group>
</dataStructure>
</dataTemplate>Hi,
Consider there is 2 database, Oracle_1 and Oracle_2.
I want to fetch some table data in Oracle_2 from Oracle_1 database Stored procedure/functions through query staments and cursors. How to establish the Oracle_1 DB connection in Oracle_2 DB stored procedure/function. Is it possible?
It's not the same how you implement the programs in java or .Net to create DB connection. It's different over here. You have use the DataBase Links in order to make to connection with another DB and use that Link in the stored procedure or function where ever its necessary as per your requirement.
- Pavan Kumar N -
What is wrong in this code..please
first of all,i kindly request team please not kill me by giving suggestion using xml parser.......can u please tell how this handle in reading follwing lines....
orderREF="1036578"><edm:OrderItem><edm:Order orderID="1036579"/> ineed to retoeve value 1036578 i use following code
final String START6_TAG="orderREF=";
final String END6_TAG=">";
final String END7_TAG="/>";
as per my observation,the follwing code need not work
if(line.indexOf(START6_TAG)> -1 ) {
//this code handle "orderREF=" in stands for order id
if(line.indexOf(END7_TAG,line.indexOf(START6_TAG))>-1){ //because if we use line.indexOf(END7_TAG)it take only first indexof that..
efound9=false;
asper above line this code cannot excecute.but igo to loop and set flag efound9=false, what is wrong in this code for handling
orderREF="1036578"/><edm:OrderItem><edm:Order orderID="1036579"/> this type of line that also comes in same program,here also we need output as 1036578.please tell me what i will do to hanndle thesefirst of all,i kindly request team please not kill
me by giving suggestion using xml parser.......can u
please tell how this handle in reading follwing
lines.... I don't understand why you are so opposed to an xml parser. You could have spent 3 hours learning how to use it and been done with this problem in the time you've spent trying to hack your way around it.
jdom tutorials: http://www.jdom.org/downloads/docs.html
dom4j tutorials: http://www.dom4j.org/cookbook.html -
What's wrong w/ my xml?
Can anyone tell what is wrong w/ my XML? I keep trying to move this workout into the Latest folder to upload to Nike+site. I keep getting a message that the server couldn't accept. Thanks!
<?xml version="1.0" encoding="UTF-8" ?>
- <sportsData>
<vers>1</vers>
- <runSummary>
<workoutName>30 minutes</workoutName>
<time>2006-08-17T14:54:52+02:00</time>
<duration>1902375</duration>
<durationString>31:42</durationString>
<distance unit="km">6.4418</distance>
<distanceString>6.44 km</distanceString>
<pace>4:55 min/km</pace>
<calories>536</calories>
<battery />
- <stepCounts>
<walkBegin>2682</walkBegin>
<walkEnd>2970</walkEnd>
<runBegin>28972</runBegin>
<runEnd>34056</runEnd>
</stepCounts>
</runSummary>
- <template>
<templateID>57AEFC75</templateID>
<templateName>30 minutes</templateName>
</template>
- <goal type="Time" value="1799" unit="sec">
<distance>6.0419</distance>
<duration>1800626</duration>
<calories>503</calories>
</goal>
- <userInfo>
<empedID>4H627NVPVSX</empedID>
<weight>81.0</weight>
<device>iPod</device>
<calibration>000000004170000001fe00230000000041f0000004a100000000990000000000</ calibration>
</userInfo>
<startTime>2006-08-17T14:54:52+02:00</startTime>
- <snapShotList snapShotType="kmSplit">
- <snapShot>
<duration>299290</duration>
<distance>1.0</distance>
</snapShot>
- <snapShot>
<duration>597866</duration>
<distance>2.002</distance>
</snapShot>
- <snapShot>
<duration>897542</duration>
<distance>3.002</distance>
</snapShot>
- <snapShot>
<duration>1198296</duration>
<distance>4.001</distance>
</snapShot>
- <snapShot>
<duration>1493074</duration>
<distance>5.002</distance>
</snapShot>
- <snapShot>
<duration>1789394</duration>
<distance>6.002</distance>
</snapShot>
</snapShotList>
- <snapShotList snapShotType="mileSplit">
- <snapShot>
<duration>482077</duration>
<distance>1.611</distance>
</snapShot>
- <snapShot>
<duration>962532</duration>
<distance>3.218</distance>
</snapShot>
- <snapShot>
<duration>1442135</duration>
<distance>4.828</distance>
</snapShot>
- <snapShot>
<duration>1907293</duration>
<distance>6.44</distance>
</snapShot>
</snapShotList>
- <snapShotList snapShotType="userClick">
- <snapShot event="onDemandVP">
<duration>1902181</duration>
<distance>6.43</distance>
</snapShot>
- <snapShot event="stop">
<duration>1902341</duration>
<distance>6.442</distance>
</snapShot>
</snapShotList>
- <extendedDataList>
<extendedData dataType="distance" intervalType="time" intervalUnit="s" intervalValue="10">0.0, 0.0207, 0.0531, 0.0895, 0.1212, 0.1574, 0.197, 0.2301, 0.2666, 0.3005, 0.3352, 0.3662, 0.4038, 0.4375, 0.4713, 0.5048, 0.5367, 0.571, 0.6058, 0.6406, 0.6743, 0.7035, 0.7378, 0.7724, 0.8062, 0.8367, 0.8571, 0.9002, 0.9366, 0.9703, 1.0033, 1.0383, 1.0722, 1.1064, 1.1428, 1.1743, 1.2051, 1.2347, 1.2656, 1.2992, 1.3343, 1.3689, 1.4039, 1.4347, 1.4685, 1.4989, 1.5371, 1.5707, 1.6043, 1.6341, 1.6692, 1.7066, 1.741, 1.7755, 1.8063, 1.8406, 1.875, 1.9061, 1.94, 1.9716, 2.0092, 2.0432, 2.0766, 2.1034, 2.1412, 2.1761, 2.2093, 2.2434, 2.2748, 2.3055, 2.3461, 2.3796, 2.3963, 2.4444, 2.479, 2.5125, 2.5464, 2.5803, 2.6112, 2.6459, 2.6802, 2.714, 2.7481, 2.7818, 2.815, 2.8482, 2.8778, 2.9119, 2.9423, 2.9791, 3.013, 3.0476, 3.0782, 3.1117, 3.1421, 3.1761, 3.2121, 3.246, 3.2801, 3.3097, 3.3434, 3.3722, 3.408, 3.4409, 3.4711, 3.5046, 3.5374, 3.5713, 3.6057, 3.6377, 3.6719, 3.7058, 3.7399, 3.7699, 3.8027, 3.8361, 3.8696, 3.9001, 3.9382, 3.9737, 4.0085, 4.0398, 4.078, 4.1089, 4.1427, 4.1697, 4.2006, 4.2413, 4.2786, 4.3164, 4.3442, 4.379, 4.4137, 4.4477, 4.4755, 4.5137, 4.5489, 4.5767, 4.6159, 4.6535, 4.688, 4.7216, 4.7551, 4.7859, 4.8211, 4.8555, 4.8901, 4.9179, 4.9573, 4.9917, 5.0222, 5.0612, 5.0823, 5.1321, 5.1647, 5.2002, 5.2347, 5.2694, 5.3038, 5.3343, 5.3726, 5.4078, 5.443, 5.4732, 5.4871, 5.5064, 5.538, 5.5746, 5.6103, 5.6477, 5.6842, 5.7199, 5.7564, 5.7885, 5.8234, 5.8575, 5.8934, 5.9321, 5.9695, 6.006, 6.0342, 6.0749, 6.1121, 6.1447, 6.1845, 6.2224, 6.2592, 6.2967, 6.3322, 6.3804, 6.4261</extendedData>
</extendedDataList>
</sportsData>Not Charge
- See:
iPod touch: Hardware troubleshooting
iPhone and iPod touch: Charging the battery
- Try another cable. The cable for 5G iPod (lightning connector) seems to be more prone to failure than the older cable.
- If a 5G iPod
Iphone 5 lightning port charging problem - SOLUTION!
- Try another charging source
- Inspect the dock connector on the iPod for bent or missing contacts, foreign material, corroded contacts, broken, missing or cracked plastic.
- Make an appointment at the Genius Bar of an Apple store.
Apple Retail Store - Genius Bar
and
- iOS: Not responding or does not turn on
- Also try DFU mode after try recovery mode
How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
- If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
- Try another cable
- Try on another computer
- If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
Apple Retail Store - Genius Bar
You can check your warranty coverage here:
https://selfsolve.apple.com/agreementWarrantyDynamic.do -
Could someone explain what is wrong with this refind expression?
Hi, could someone explain what is wrong with this refind expression
faultCode:Server.Processing faultString:'Unable to invoke CFC - Malformed regular expression "^[0-2][0-9][/][0-1][0-2][/][1-2][0-9]{3}+$".'
thanks^[0-2][0-9][/][0-1][0-2][/][1-2][0-9]{3}$ works,
thanks
dates 12/12/2007matching -
What is wrong with this code? on(release) gotoAndPlay("2")'{'
Please could someone tell me what is wrong with this code - on(release)
gotoAndPlay("2")'{'
this is the error that comes up and i have tried changing it but it is not working
**Error** Scene=Scene 1, layer=Layer 2, frame=1:Line 2: '{' expected
gotoAndPlay("2")'{'
Total ActionScript Errors: 1 Reported Errors: 1
ThanksIf you have a frame labelled "2" then it should be:
on (release) {
this._parent.gotoAndPlay("2");
or other wise just the following to go to frame 2:
on (release) {
this._parent.gotoAndPlay(2);
You just had a missing curly bracket... -
Customize AP Trial Balance XML Data Definition for adding Aging Buckets
Hi
I have to customize AP Trial Balance Report XML Data Definition Template for adding Aging Buckets & Supplier details in R12 , Could you let me know how i can modify XML file?
Thanks
PravinHi,
My requirement is different from the one which is in below link.
I need to add Aging Buckets & Supplier details to AP Trial Balance report (R12) , here i need to modify the XML Data definition template.
Please help me, very urgent.
Thanks
Pravin
Maybe you are looking for
-
Adobe InDesign CS6 Plugin does not recognize .InDesignPlugin as a valid plugin
Adobe CS6 fully updated with Mac OS X Lion 10.7.5 I have two complete labs that now have the below error messages when the user login. This suddenly started just a few days ago. No Adobe updates were applied to the lab in the labs month so it should
-
External editor with Aperture 3.6
I've upgraded from PSE10 to PSE13. I used Aperture>preferences>Export and updated External Photo Editor to PSE13. Selected the 5 photos I wanted to export and hey presto nothing happened. I've seem to remember that, actually, it's not as easy as it
-
Css external stlye sheet probs
i am having hard time grasping attaching an external style sheet my question is do you attach the external style shhet to your folder or the site or server's folder why won't the option box give me the link option with media type options ; it gives m
-
Authorization control for Z fields
Hi all, We have appended a structure to VBAP; our requirement is to update these Z fields based on authorization control. Other than creating Z auth objects and checking them in our exit before updating Z fields, is there any other standard option to
-
Update my os x 10.8 version
i whant to update the i photo and my computer write something like this- "Photo can't be installed on "Macintosh HD" because OS X version 10.8.2 or later is required. You can update OS X from the Updates page of the App Store".and in the update page