Error in convert function
Hi
I am using this query for retreiving the records from sql server.
When the query
select "e1" as emp,"e2" as date,"e3" as one_year rom "tablename"@databaselink
it is working fine but when the same query is used with the convert function on one of the column like
select "e1" as emp,convert(varchar,"e2",101) as date,"e3 as one from from "tablename"@databaselink
it is saying ora-00936 error missing expression
please help in this
Hi,
So, just to be clear - you are using a database link to connect from an Oracle database to a Microsoft SQL Server database?
Have you been able to run basic SQL statements across the database link (i.e. just a plain 'SELECT * FROM')? Also, does this same SQL work okay when you run it directly against SQL Server (not through the DB Link from Oracle)?
Similar Messages
-
RFC Function Error: Cannot convert a value of 'MM/DD/YYYY' from type java.l
hi experts,
iam calling an RFC using SAP_JCO_Function. one of the input parameters is date which shud be in the format 'MM/DD/YYYY' but when i create a transaction property of data type DATETIME the format changes to " 2007-06-21 14:31:50 ". to refrain form passing this value at run time i have defined the transaction property as string and defaulted the value to MM/DD/YYYY.
When i execute the RFC i get the error "Cannot convert a value of 'MM/DD/YYYY' from type java.l".
Issue is with time field as well. Any suggestions would be appreciated.
Thanks,
AvinashHi
You can use datefromxmlformat( datetime, toformat ) .
in toformat you give: "MM/dd/yyyy" and in datetime you pass your xml format date like: 2007-06-21 T14:31:50.
Try like this. Hope this may help you.
Thanks -
Error while converting Image -to- PDF and then to PDF/A
Hi,
I'm trying to convert a Image format(JPEG,bmp,tiff) to PDF and then to PDF/A. I could able to convert Image to PDF successfully.
I'm getting the below error while converting the PDF(that was generated) to PDF/A.
Caused by: com.adobe.livecycle.output.exception.OutputException: Input Document is a already flat PDF Document
at com.adobe.printSubmitter.PrintServer.transformPDF(PrintServer.java:307)
at com.adobe.printSubmitter.service.OutputServiceImpl.transformPDFInTxn(OutputServiceImpl.ja va:518)
at com.adobe.printSubmitter.service.OutputServiceImpl$4.doInTransaction(OutputServiceImpl.ja va:481)
... 106 more
Error OCCURRED: ALC-DSC-000-000: com.adobe.idp.dsc.DSCException: Internal error.
Please give me the solution to convert PDF to PDF/A?I've just read a footnote in the API documentation which indicates that the transformPDF function cannot be used for this purpose:
"GS_Enterprise said on Nov 24, 2007 at 12:03 PM :
Please note that the parameter "inPdfDoc" for transformPDF assumes that the stream content is an XFA-based PDF, and that it's not an XFA-based PDF with a PDF background (also known as "XFA foreground"). In other words, this function does not convert any input PDF to PDF/A, but only those PDFs generated from an XFA template which does not include any static PDF content as a background." -
I am getting this error :The right function requires 2 argument(s).
declare
@startdate datetime,
@enddate datetime
SET @STARTDATE ='01-MAR-2014'
SET @enddate = '01-MAR-2014'
Set @StartDate = Convert(datetime, Convert(char(10), @StartDate, 120) + ' 00:00:00', 120)
set @enddate =convert(datetime,Convert(char(10),@enddate, 120) + ' 23:59:59',120)
SELECT
[row_date]
,[logid]
,CONVERT(VARCHAR(6), (ISNULL(SUM([acwouttime] + [auxouttime] + [holdtime]), 0))/3600) +
':' + RIGHT('0' + CONVERT(varchar(2),(ISNULL(SUM([acwouttime] + [auxouttime] + [holdtime]), 0)) % 3600) / 60), 2)
+ ':' + RIGHT('0' + CONVERT(varchar(2), (ISNULL(SUM([acwouttime] + [auxouttime] + [holdtime]), 0)) % 60), 2)AS HoldTime
FROM [CMSData].[dbo].[hagent2]
WHERE ([logid] IN (1382, 1493,1382,1493,1444,1466,1301,1074,1655,
1749,1685,1686,1684,1617,1681,1792,1595,1597,1687,1622))
AND (row_date BETWEEN @StartDate AND @EndDate)
GROUP BY
[row_date]
,[logid]
hi friends when I am executing this query I am getting this error please help me I will grateful to you .
ERROR: The right function requires 2 argument(s).you may be better off making date filter as below
declare
@startdate datetime,
@enddate datetime
SET @STARTDATE ='01-MAR-2014'
SET @enddate = '02-MAR-2014'
AND (row_date >= @StartDate AND row_date <@EndDate)
see
http://visakhm.blogspot.in/2012/12/different-ways-to-implement-date-range.html
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs -
Error when executing function in MSS launchpad report ???
In MSS lanchpad report, we have the following problem:
Error in Manager Sef-Service
When calling the report, the following error occurred:
System: HRP
Error when executing function
Basically in MSS report, I select employees in the first iView which calls another ABAP query in back-end to display back-end t-code inside iView of portal through ITS service. What could be the reason for it? please advice.
Thanks,
AnthonyPlease try converting the standadrd-delivered scenario RPT0, then check
out the things.
Also problem may be that your function code names contain
the character '&'. This causes a problem when the selected function
code is passed to the ITS-WebGUI as a URL parameter. Please use only
standard characters (A..Z and _) when you define a function code.
Then it should work.
Please go through the following link also
http://help.sap.com/saphelp_erp2005vp/helpdata/en/3a/
3198408d953154e10000000a1550b0/frameset.htm
Please test in backend using Se38 > PWPC_RPT_START_REPORT_TEST
The Reporting Iview in the portal has the Report category type, by
the report category type is set to "RPT0". Therefore, when the
application is launched, the reporting category type is also sent as URL
parameter to the backend system. As of ECC 6.0 only the reporting
category type "RPT0" is supported. ensure this is set for your custom reports if you are using own scenarion
then set in the Iview property of reports as well
ie example
1)Change the Iview property "Scenario" of the Reporting iview from
"RPT0" to your own "ZRPT", than this set of reports will work. however,
the standard reports will not work.
pwpc_convert_mdt_to_lpa >>
The following list of reports have been converted. -
Error while converting Ship-to-party to Sold-to-party
Hi,
I need to covert a Ship-to-party to Sold-to-party using transaction XD07. While converting the above i m getting the following error
The planned change is not allowed as the following field
groups would be masked by the new account group
Group Modif group 1
V D315 Shipping 017 Order combination
When i checked the difference between account groups Sold-to and Ship-to, it was the Order combination field in Shipping tab which was suppressed in Sold-to party and an optional entry in Ship-to-party. because of which i was getting the error while converting a ship-to party to sold to party.
Please help me in transforming the Ship-to-party to Sold-to-party without changing the account groups in OBD2.
Thank you,
Arun.SHi
I am not able to convert any partner functions. the system displays the below error for all combinations (SP --> SH, SP --> PY, SH --> SP etc). Below is the error message i got whe i tried to change SP to SH.
The planned change is not allowed as the following field
groups would be masked by the new account group
Group Modif group 1
A D120 Control 017 Vendor
018 Corporate group
023 Industry
029 Authorization
036 Trading partner
A D130 Payment transactions 030 Bank details
032 Alternative payer account
F D215 Payment transactions 010 Payment methods
011 Alternative payer account
Is there any way to avoid this error and go ahead with the conversion.
Thank you,
Arun.S -
HP Prime Syntax Error in Convert
Hello,
I have a new HP Prime Graph Calculator. My old 48G was dying on me, so decided to make the switch. It is so much different than what i am used to.
First Off, this is my HP Prime info :
Software Version : 2014 3 31 (6030)
Hardware Version : A
CAS Version : 1.1.0-46
One function i use alot on my 48G was converting units.
So I tried starting using Convert on my HP Prime and when i tried to convert i got a Syntax Error. Looked around in forums and at some place it said to update firware, which I did.
Now I get 2 errors. First when I press "Convert" I get a new error : Bad Argument Count
Then when I try to convert i get the same Syntax Error.
I think I know where the problem resides for the Syntax Error, when converting it should put the units in ( ) I think. But for some reason for lenght it does not, for other units it does (km2).
I tried the function on the Virtual Calculator on windows and on the virtual one everything works, but on my physical one, I still get the same 2 errors (even when the units are in ( ), without any results.
Can anyone help please ?
Thank you
This question was solved.
View Solution.Please let us know some examples of expressions that you tried, what you expected, and what happened instead. ALSO please let us know what modes your Prime is in (e.g. RPN Entry mode, or CAS view), because Prime behaves very differently depending on the Home Settings and CAS Settings. Which app is the currently active app (shown in the display's title bar) can also alter Prime's behavior. When you let us know these things, we'll be able to discern why you are getting syntax errors.
If I were a betting man, I'd wager a nickel that the problem is due to your Prime being in RPN mode. If so, you have to use RPN syntax, not algebraic syntax. Example: 5_ft, Enter, 1_in, Enter, CONVERT --> 60_in (just like on your HP 48). Do I win a nickel?
Disclaimer: I do not work for HP. I'm just another happy HP calculator user.
-Joe- -
Error while converting class file to exp and jca file
error while converting *.class file to *.exp and *.jca file
=====================================================================================================================
linux-y60u:/home/admin/java_card_kit-2_2_1/samples/src # converter -exportpath "/home/admin/java_card_kit-2_2_1/lib/" com/sun/javacard/samples/HelloWorld 0x00:0x01:0x02:0x03:0x04:0x05:0x06:0x07:0x0b 1.0 -v -applet 0x00:0x01:0x02:0x03:0x04:0x05:0x06:0x07:0x0b:0x01 Identity
Java Card 2.2.1 Class File Converter, Version 1.3
Copyright 2003 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
parsing /home/admin/java_card_kit-2_2_1/samples/src/com/sun/javacard/samples/HelloWorld/HelloWorld.class
parsing /home/admin/java_card_kit-2_2_1/samples/src/com/sun/javacard/samples/HelloWorld/Identity.class
error: com.sun.javacard.samples.HelloWorld.HelloWorld: unsupported class file format of version 50.0.
error: com.sun.javacard.samples.HelloWorld.Identity: unsupported class file format of version 50.0.
conversion completed with 2 errors and 0 warnings.
=====================================================================================================================i compile a file javacard use this command:
===
javac -source 1.3 -target 1.1 -g -classpath ./classes:../lib/api.jar:../lib/installer.jar src/com/sun/javacard/samples/Identity/Identity.java
===
and try to convert this class use this command
===
/home/xnuxerx/admin/java_card_kit-2_2_1/bin/converter -exportpath "/home/xnuxerx/admin/java_card_kit-2_2_1/lib/" com/sun/javacard/samples/Identity 0x00:0x01:0x02:0x03:0x04:0x05:0x06:0x07:0x0b 1.0 -v -applet 0x00:0x01:0x02:0x03:0x04:0x05:0x06:0x07:0x0b:0x01 Identity
===
result convert:
===
Java Card 2.2.1 Class File Converter, Version 1.3
Copyright 2003 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
parsing /home/xnuxerx/admin/java_card_kit-2_2_1/samples/classes/com/sun/javacard/samples/Identity/Identity.class
converting com.sun.javacard.samples.Identity.Identity
error: export file framework.exp of package javacard.framework not found.
conversion completed with 1 errors and 0 warnings.
===
why ??
please your comment for this problem.
thank 4 all. -
Gettin error Cannot convert to number in RTF Template
Hi,
I am working on xml template development i am getting the followinf error
Font Dir: C:\Program Files\Oracle\XML Publisher Desktop\Template Builder for Word\fonts
Run XDO Start
RTFProcessor setLocale: en-us
FOProcessor setData: D:\Tickets\Remittance Advice XMLP\canada_report1.xml
FOProcessor setLocale: en-us
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at oracle.apps.xdo.common.xml.XSLT10gR1.invokeProcessXSL(XSLT10gR1.java:586)
at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:383)
at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:201)
at oracle.apps.xdo.common.xml.XSLTWrapper.transform(XSLTWrapper.java:161)
at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:1015)
at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:968)
at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:209)
at oracle.apps.xdo.template.FOProcessor.createFO(FOProcessor.java:1561)
at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:951)
at RTF2PDF.runRTFto(RTF2PDF.java:626)
at RTF2PDF.runXDO(RTF2PDF.java:460)
at RTF2PDF.main(RTF2PDF.java:251)
Caused by: oracle.xdo.parser.v2.XPathException: Cannot convert to number.
at oracle.xdo.parser.v2.XSLStylesheet.flushErrors(XSLStylesheet.java:1526)
at oracle.xdo.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:517)
at oracle.xdo.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:485)
at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:264)
at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:150)
at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:187)
... 16 more
I have checked the code and problem was due to following code i dont know where i went wrong
<xsl:variable xdofo:ctx="incontext" name="inner_group" select=".//G_SEL_INV_DATA"/><?for-each:$inner_group?><?if:(position()-1) mod $no_of_lines_per_page=0?><xsl:variable name="first_rec" xdofo:ctx="incontext" select="position()"/>
Please help me to solve this issue...
Thanks
RajeshWhat was the problem in the template? I am facing the same error, when I put a conditional in the data field, it throws the XML-22036: (Error) Cannot convert to number.
error, where if the element was printed directly it works fine.
error
<Line 984, Column 130>: XML-22036: (Error) Cannot convert to number.
@Line 984 ==> <xsl:variable name="v148" select="format-number(string(xdoxslt:one($v147)), string('###0.00'), string('_DECIMALFORMAT'))"/>
End of Process.
<format>
Number, ###0.00
<DATA >BROKEN
If (to_number(../DocumentPayableCount) + to_number(Extend/NumberOfPO) + sum(to_number(../DocumentPayable/Extend/Commentlength))) <= 7 then Extend/InvoiceAmount end if
<DATA >ALSO BROKEN
If (../DocumentPayableCount + Extend/NumberOfPO + sum(../DocumentPayable/Extend/Commentlength)) <= 7 then Extend/InvoiceAmount end if
<DATA> WORKS
then Extend/InvoiceAmount -
Adobe Acrobat XI pro version, Windows 7, running on iMac parallels, converting pdf to a pdf with reduced size is not possible, error: error in converting the file! What to do? Its a bit annoying not to be able to store pdf files in reduced size, any idea?? Thanks, Jörg
Hi Jorg ,
Are you trying to reduce the file size with the "Reduced size PDF" in the save as other option.
Give it a try if you haven't done it prior.
Open that PDF>File>Save as Other>Reduced size PDF.
If possible ,please share the snapshot of the error message with us so that we can have a look in order to assist you further.
Regards
Sukrit Dhingra -
Error in converting exchange rate from to AED
Dear All,
When creating sales order I am receiving following error: Condition ZPRS: Error in converting exchange rate from to AED.
Such a error I am receiving when in material - there is not mantained delivery plant but this is not this case.
(interesting is that from FX currency is missing...)
I have also tried to play with customizing with plant assignment but without a result - this error is only in productive system in test everything is working fine...
??? any ideas ???
many thanks for any brainstorming...
Brgds. MIchalDear Michal Duris ,
Have you maintained the currency conversion factors
Check the following tcode
OBBS
OB08
Compare between the production server and server in which there is no error (CHOOSE YOUR EXCHANGE RATE TYPE / DOCUMENT CURRENCY AND LOCAL CURRENCY )
Check and revert back.
If its not solved, please provide the error message number.
Thanks & Regards,
Hegal K Charles -
Error while converting jad and jar to alx and cod files
hi all,
i am getting an error while converting jad and jar files into cod and alx files for balckberry.. here is the error i am getting.. can anyone help me this regard...
Parsing classfile: txtCanvas.class
I/O Error: Import file not found: d:\Research In Motion\BlackBerry JDE4.6.0\lib\
net_rim_api.jar
thanks in advacne
pallavithank you very much for your responses. can i send my cod and alx files to check. if you are interested only.
here is the command which i used to convert my jad and jar files
D:\Research In Motion\BlackBerry JDE 4.6.0\bin>rapc import="d:\Research In Motio
n\BlackBerry JDE 4.6.0\lib\net_rim_api.jar" codename=MoBilalMIDlet -midlet jad=M
oBilalEnglish.jad MoBilalEnglish.jar -
While applying 4440000, "Error calling FNDLOAD function" Occurs.
While applying the patch 4440000, the following error occured.
***********************************************************************************************Loading data using FNDLOAD function.
FNDLOAD APPS/***** 0 Y UPLOAD @FND:patch/115/import/aflvmlu.lct @PER:patch/115/import/US/perzzlookup01823.ldt -
Connecting to APPS......Connected successfully.
Calling FNDLOAD function.
Returned from FNDLOAD function.
Log file:
Error calling FNDLOAD function.
Also, no log file for FNDLOAD generated.
Referred the metalink note 441783.1. But unable to understand the solution. Can anyone please explain or other workaround if any?
S. SundarDear Taylor,
Thanks a lot. You are too excellent.
After doing as follows, the problem is resolved.
F:\oracle\product>ln -s 10.2.0 10_2.0
F:\oracle\product>dir 10*
Volume in drive F is New Volume
Volume Serial Number is 08B6-ACF4
Directory of F:\oracle\product
12/16/2007 10:56 AM <DIR> 10.2.0
04/01/2008 08:10 AM <JUNCTION> 10_2.0
0 File(s) 0 bytes
2 Dir(s) 10,004,815,872 bytes free
F:\oracle\product>
Thanks again.
S. Sundar -
Error while converting document to html
"ORA-06502: PL/SQL: numeric or value error: invalid LOB locator specified: ORA-22275"
I use the procedure to convert the documents if it is not already converted before using procedure as follows
PROCEDURE "STARDOC"."HTMLOUTPUT" (
"DOCID" IN NUMBER) IS
mklob clob;
doccount number;
errorcode number;
errormessage varchar2(200);
BEGIN -- executable part starts here
SELECT COUNT(document_id) INTO doccount FROM docviewhtml where document_id=docid;
--dbms_output.put_line(doccount);
if doccount=0 then
dbms_output.put_line('Document Not Found: Converting '||docid);
--If document is not found run document coversion routine
ctx_doc.filter('idxdocuments',docid, mklob,FALSE);
INSERT INTO docviewhtml(document_id, html) VALUES (docid, mklob);
COMMIT;
elsif doccount=1 then
--return;
dbms_output.put_line('Document Found');
--if document id found then return the document content
null;
else
--dbms_output.put_line('Error occured');
--need to deal with duplicate documents
null;
end if;
dbms_lob.freetemporary(mklob);
EXCEPTION
--rollback when an exception occurs
WHEN OTHERS THEN
errorcode:=SQLCODE;
errormessage:=SQLERRM;
dbms_output.put_line(sqlcode || ':' ||sqlerrm);
ROLLBACK;
LOGERROR(errorcode,errormessage);
END "HTMLOUTPUT";
i get the error when i convert large documents
"ORA-06502: PL/SQL: numeric or value error: invalid LOB locator specified: ORA-22275"
Also if there are any converion errors while converting documents to html. how to find them is there a log o fany sort.
what is wrong. please help!
Message was edited by:
connect2sandeepYou free your temporary lob, but never create it.
-
Dear Experts,
I am uploading the master data of functional location through LSMW .I had completed all the steps except "Run Batch Input Session".
In that step it is showing as functional location already exists, after this error the remaining functional locations are updated in sap or it will stop total transaction by this error???
how can u upload the remaining in to sap by skipping already existed one????
here I am uploading the error screen shot.
Thanks & Regards,
Sunil BoyaHi Jogeswara Rao Kavala,
When I am pressing back or NO option it is showing error like this
What is this OK- Code means?
how can I resume this process, even it was not going to back screen also and only one option is available for exit from this is by going into MENU-SYSTEM-SERVICES-BATCH INPUT-CANCEL.
Sunil Boya
Maybe you are looking for
-
Error in query with COUNT expression
Hi I have a query that returns an error as follows: "Column Ambiguously defined" the code is as follows: SELECT ce_family_member.student_id , ce_family_member.last_name , st_enrollment.grade_level , ce_family_m
-
Has anybody else experienced problem saving scanned documents since installing Mavericks.
I have just scanned a document on Macbook Pro, it is a recipe, I have dozens of recipes scanned to Recipes folder. Now, there seems to be no option to Save the document after scanning.
-
How do I empty trash after deleting music, apps and photos from my iPhone to make more room for upgrading to iOS 8.1? It says I don't have enough room to upgrade so I have deleted some of everything but do not see an improvement in my storage space.
-
Converting 30 FPS audio to 29.97 FPS audio in Audition or Premiere?
I recently shot a wedding using 7 video sources. Unfortunately the sound guy wasn't really the sound guy so after I set up my camera and checked the board audio he started playing around and surprise... my booth camera didn't get any soundboard audi
-
G router no faster than B router
I had a Linksys Wireless B router for a couple years and it finally died. I replaced it with the WRT54G just the other day. I am running wireless. My problem is, the G is no faster than my old B! I have the mode set to G-only and I am not running a