ERROR IN TO_DATE FORMAT
Hi everyone,
As you know exists an error: ORA-01855 AM/A.M. or PM/P.M
This error gets when you try to execute some query like this:
SELECT TO_DATE('01-01-2009 8:01:09 P.M.','DD-MM-YYYY HH:MI:SS PM') FROM DUAL
In this query the value of varchar is "01-01-2009 8:01:09 P.M.", finishing with P.M., that is the letter P and M follows of a dot.
If you execute this query the error 01855 will show. Also if you change the "PM" in the format part by "P.M." the error follows showing.
SELECT TO_DATE('01-01-2009 8:01:09 P.M.','DD-MM-YYYY HH:MI:SS P.M.') FROM DUAL
But if you execute this query , but only changing the "P.M." in the value part by "PM" this display the correct result.
SELECT TO_DATE('01-01-2009 8:01:09 PM','DD-MM-YYYY HH:MI:SS PM') FROM DUAL;
Having of an input value a varchar2 with '01-01-2009 8:01:09 P.M.' as value,
How can I convert in the format 'DD-MM-YYYY HH:MI:SS AM'?,
This must be without deleting the dots in the "P.M." part?
Any help will be very appreciated.
Thank you in advance.
Best Regards
Your post is very confusing but I ran the following queries and both worked successfully on a 10.2.0.3 environment:
SQL > SELECT TO_DATE('01-01-2009 8:01:09 P.M.','DD-MM-YYYY HH:MI:SS P.M.') FROM DUAL;
TO_DATE('01-01-2009
01/01/2009 20:01:09
SQL > SELECT TO_DATE(REPLACE('01-01-2009 8:01:09 P.M.','.',''),'DD-MM-YYYY HH:MI:SS PM') FROM DUAL;
TO_DATE(REPLACE('01
01/01/2009 20:01:09
SQL >The first one, is one that in your post says generates an error. The second replaces the periods with nothing. However, this is conditional on no other periods being used in your date format.
HTH!
Similar Messages
-
What does the Error Message: "File format not supported" mean?
When I first open an existing project, I get an Error Message: "File format not supported". After a few seconds all the windows open up and I can continue to edit. My question is will this "File format not supported" haunt me later or shall I continue to edit as I am doing? Why does this error message come up? All the current footage is shot on same camera, the Canon 5D Mark III at 23.98 time code rate, 1920 x 1080.
More information might help someone help you - Information FAQ http://forums.adobe.com/message/4200840
Also, are your files on an external drive? -
I am running iWork 09 (latest versions in all cases)*. When I try to export files from all three of the applications Pages, Keynote and Numbers into the relevant Office formats, I get the error "The file format is invalid." It works fine with PDF or RTF export.
I am able to open the same files in the iPad versions of thess iWork apps, and then export them. While this workaround will do for now, I'd like to be able to just export correctly.
Anyone have any suggestions on what might be wrong?
Thanks,
Iarla
* on a MacBook Pro '07, running Lion 10.7.1.Yes, this worked a treat, thanks very much! *
Iarla
* Note that I needed to manually remove iWorks as the For_iWork:iWork '09:iWork9Update5.dmg.zip file wouldn't work on the latest version of iWorks. This involved deleting the iWork folders in the Applications and Library directories. -
Cannot open corrupted .mov file - error 2048 unsupported format
Hi all,
I have an important corrupted video file and I have tried every way I can think of to open it, but to no avail...
When I open it with Quicktime, an "error 2048 unsupported format" shows up, even though other videos I took are fine.
I can't open this video with ANY softwares including VLC and friends (trust me, I tried LOADS of them)..
After doing MUCH research I understand that either the header/closing part of the file is messed up.
Is anyone able to teach me how to fix those parts?
I'm really at the end of my wits and I'm a just beginner to hex-editing @.@ Better still, if you are able to take a look at this video for me...
I'll be very glad if anyone can help me out with this as I really wish to recover the video, this is for an important friend, thanks in advance!
P.s. the video is about 120mb in sizeHi
Im using the tool called SUPER.
Its free and you can convert any file format to any other file format
Maybe it would be possible to convert his faulty file to another format and ten you could try to open it again using VLC player or other application. -
I have iphoto 6 and my pictures are no longer showing. I have tried importing them but it just give me an error msg. (file format not recognized) I have tried rebuilding the iphoto library but that doesn't work either. Any suggestions?
How did you rebuild?
Try these in order - from best option on down...
1. Do you have an up-to-date back up? If so, try copy the library6.iphoto file from the back up to the iPhoto Library allowing it to overwrite the damaged file.
2. Download <a href="http://www.fatcatsoftware.com/iplm/"><b><u>iPhoto Library Manager</b></u></a> and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.
3. If neither of these work then you'll need to create and populate a new library.
To create and populate a new *iPhoto 6* library:
Note this will give you a working library with the same Rolls and pictures as before, however, you will lose your albums, keywords, modified versions, books, calendars etc.
Move the iPhoto Library to the desktop
Launch iPhoto. It will ask if you wish to create a new Library. Say Yes.
Go into the iPhoto Library on your desktop and find the Originals folder. From the Originals folder drag the individual Roll Folders to the iPhoto Window and it will recreate them in the new library.
When you're sure all is well you can delete the iPhoto Library on your desktop.
In the future, in addition to your usual back up routine, you might like to make a copy of the library6.iPhoto file whenever you have made changes to the library as protection against database corruption. -
Read error! Illegal format of file
Read error! Illegal format of file. What in the world!! I getting this message and now the song in GB has disappeared. I was doing some editing and I hit save then wham bam this message comes up and the song in GB is blank like there is not a file there. I did check in The HD and its there but when I try to open I get the Read error! Illegal format of file. Any ideas thanks.
Hey Sam,
That's strange,
do this for me:
click the file get info (apple key + i)
make sure:
Open with: Logic Express (default) is checked or select it.
Or
Ownership & Permissions:
Read and write or read only (Never - No access)
hope this helps, regards,
Jorge -
Function in to_date format...
Hi I have one function which retun value in mm/dd/yyyy format. inside select clause iwant compare this function with mm/yyyy format. but function can not come with to_date format. need help to work wround due to this select query out put getting generated wrong.
select to_date( fnbudgetstartdt (110626),'mm/yyyy') from dual; I want this function should return value in mm/yyyyy
as I can not chnage function as it has been used in multiple place.
Plesse do suggest work around.
Help is iappreciated.HEre is formaated code
SELECT MONTH AS nmonth, YEAR AS nyear, subcosttypeid, monthindicator,
(SELECT fngovfactorinfo (TO_DATE (MONTH || '/' || YEAR, 'mm/yyyy'),
1,
ostt.subcosttypeid,
3
FROM DUAL) AS rate,
(SELECT osd.costhourindbudget
FROM optionssubcostdetails osd
WHERE osd.subcosttypeid = ostt.subcosttypeid) budgetindicator
FROM (SELECT MONTH, YEAR, subcosttypeid, ost.swcapgrpid,
CASE
WHEN TO_DATE (t.MONTH || '/' || t.YEAR,
'mm/yyyy'
) >= TRUNC (fnbudgetstartdt (110626), 'mm')
AND TO_DATE (MONTH || '/' || YEAR, 'mm/yyyy') <=
TRUNC (fnbudgetenddt (110626), 'mm')
THEN CASE
WHEN TO_DATE (t.MONTH || '/' || t.YEAR, 'mm/yyyy') <=
(SELECT MAX (TO_DATE (MONTH || '/' || YEAR,
'mm/yyyy'
FROM cmpmclosedmonth ccm
WHERE ccm.cost_indicator = 'C')
THEN 'C'
ELSE 'O'
END
ELSE 'NA'
END AS monthindicator
FROM (WITH startend AS
(SELECT (SELECT TRUNC
(fnbudgetstartdt (110626),
'yyyy'
FROM DUAL) AS start_date,
(SELECT ADD_MONTHS
(TRUNC (fnbudgetenddt (110626),
'yyyy'
12
- 1
FROM DUAL) AS end_date
FROM DUAL)
SELECT TO_CHAR (ADD_MONTHS (TRUNC (start_date, 'mm'),
LEVEL - 1
'mm'
) MONTH,
TO_CHAR (ADD_MONTHS (TRUNC (start_date, 'mm'),
LEVEL - 1
'yyyy'
) YEAR
FROM startend
CONNECT BY TRUNC (end_date, 'mm') >=
ADD_MONTHS (TRUNC (start_date, 'mm'), LEVEL - 1)) t,
optionssubcosttype ost
WHERE ost.active = 1) ostt -
Error in date format returned in FM: RH_READ_OBJECT
Hi All,
I found an error in date format returned in field OBEG of FM: RH_READ_OBJECT.
It returns: 20112804 and it should be 20110428 (this is Sap internal date format)
It is strange because it does not happen all the time just in some particular scenarios.
Do you have any idea about this issue? Is there any note related to this?
Below a link to a debug screenshot:
[http://tinypic.com/view.php?pic=1zegppt&s=7]
Thanks!Hi Viji and thanks for your answer!
I checked checked user default settings and we have the same date format as anther user who is working ok.
Also I do not think it is a user settings related error because this is the result returned by a standard FM in debug mode so the value in the screenshot should be in internal Sap format which is: YYYYMMDD.
Any other idea on this?
Thanks! -
HI,
My system is upgraded from 4.6C to ECC 6.0.
When VA03 is executed, ie: Give SD no and press enter..system displays an error message (Error in text formatting).
Error in text formatting
Message no. VX201
Diagnosis
The SD_WORD_PROCESSING function module is for creating the "Maintain
Text" dialog box. You have called up the function module with the wrong
values so it is not possible to edit text properly.
System Response
Check the parameters for the SD_WORD_PROCESSING_PUT function module.
Procedure
Contact your SAP Support team.
The only diff i noticed in the function module is single field is added extra in the changing parameters FCT_XTHEAD
FCT_XVBUV .
Can any one help me out on this issue..
Regards,
ArunHi,
Please look into OSS i have seen the note related to this long back when we did upgrade.
Atul -
I have a Windows 7 Ultimate .iso file saved onto a "Mac OS Extended (Journal)" formatted USB flash drive. I am trying to install it with BootCamp Assistant and I keep getting the error message : Your bootable USB drive could not be created. "An error occurred while formatting the disk."
I have previously installed Windows 7 on my Mac (and it worked flawlessly - same .iso file), but I uninstalled it because I didn't partition enough space on my hard drive. I have used several flash drive to try and install and none have worked.
Some help would be greatly appreciated.The Boot Camp forum is located here: https://discussions.apple.com/community/windows_software/boot_camp
The Boot Camp Guides are located here: http://www.apple.com/support/bootcamp/ -
Patching error: Missing file format id in file...
Hi:
I am pathing #14351767 and got the following error: We have 12.1.3 on linux. db 11.1.0.7. I download generic for America. Did what note ID 1300257.1 suggested - didn't work. After error out, I can't type anything on the server, have to close it and reopen another one.
=======
AutoPatch error:
Missing file format id in file:
/Application/orclapps/apps_st/appl/admin/applcust.txt
This version of AutoPatch requires a file format id
on the first line of the file.
Error reading customized files file
Freeing includes hash table
Freeing fixes hash table
Freeing basedons hash table
Freeing entities hash table
=======870765 wrote:
Can I tried to apply the patch without the file (as said in the step #2) because I don't know how to check "meticulous documentation was kept"? I have log a SR but no one is repllying to me. And most of time I get answer from here first. I have to finish this task by today. THXYes you can.
Oracle E-Business Suite Patching FAQ for Release 12 [ID 459156.1] -- How can I track my customizations? What happens to my customizations during patching?
Thanks,
Hussein -
I exported a file on my imac as a word document but now I can't open it. It says Import error: The file format is invalid.
If no on this forum can help you then I would recommend reposting on the Office for Mac Product Forums.
-
Error Message: Unsupported format or damaged file CS4
Every time that I try and import my RED ONE footage into Premiere Pro CS4 it says: Error Message: Unsupported format or damaged file. I have downloaded the Redcode installer 1.7 and the Premiere update 4.2.1. I have asked around and searched all of the message boards but I cannot solve this problem. Please Help Me!
You might ask in the forum where CS4 is discussed http://forums.adobe.com/community/premiere/premierepro_previous?view=all to find out if that version will work with RED files at all
-
SAP Download to Excel2007 .Error occurs: file format is not valid
We met a problem when use BAPI EXCEL_OLE_STANDAED_DAT to generate local Microsoft excel 2007 file.
When open the generated excel 2007 file, Error occurs: file format is not valid. We do not know how to solve this troublewhat kind of data are you going for so that you have to use this specific FM?
i mean try using other FMs if its simple data...
one more thing is check what data is being downloaded, keeping a breakpoint just before downloading. -
Garageband: "read error! Illegal format of file"
When I try to open a Garageband project I get a "read error! Illegal format of file" message.
Garageband then quits and sends a "report" to Apple (which apparently does me no good).
How can I get my project back? Is the whole song toast? just like that?
It was a REALLY good song too!I have the same problem. Hope this can help:
Process: GarageBand [1595]
Path: /Applications/GarageBand.app/Contents/MacOS/GarageBand
Identifier: com.apple.garageband
Version: 6.0.5 (428.5)
Build Info: GarageBand_App-4280500~3
App Item ID: 408980954
App External ID: 6848868
Code Type: X86 (Native)
Parent Process: launchd [157]
Responsible: GarageBand [1595]
User ID: 501
PlugIn Path: /Applications/GarageBand.app/Contents/MacOS/GarageBand
PlugIn Identifier: com.apple.garageband
PlugIn Version: 6.0.5 (428.5)
Date/Time: 2013-12-02 23:09:13.736 +0100
OS Version: Mac OS X 10.9 (13A603)
Report Version: 11
Anonymous UUID: C6C2C75E-EBAC-36A7-6F93-44CAA8939774
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000000000000
VM Regions Near 0:
--> __PAGEZERO 0000000000000000-0000000000001000 [ 4K] ---/--- SM=NUL /Applications/GarageBand.app/Contents/MacOS/GarageBand
__TEXT 0000000000001000-0000000000429000 [ 4256K] r-x/rwx SM=COW /Applications/GarageBand.app/Contents/MacOS/GarageBand
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 com.apple.music.apps.Logic 0x00acad02 LgDocumentClose + 130
1 com.apple.garageband 0x000c71d5 0x1000 + 811477
2 libobjc.A.dylib 0x98dd75ef -[NSObject release] + 47
3 com.apple.garageband 0x000c828b 0x1000 + 815755
4 com.apple.Foundation 0x99a09825 _decodeObjectXML + 1854
5 com.apple.Foundation 0x998e452f _decodeObject + 55
6 com.apple.Foundation 0x998e44f0 -[NSKeyedUnarchiver decodeObjectForKey:] + 175
7 com.apple.garageband 0x00208b43 0x1000 + 2128707
8 com.apple.garageband 0x00207d68 0x1000 + 2125160
9 com.apple.AppKit 0x91d084e1 -[NSDocument _initWithContentsOfURL:ofType:error:] + 228
10 com.apple.AppKit 0x91d0812b -[NSDocument initWithContentsOfURL:ofType:error:] + 281
11 com.apple.garageband 0x000c3256 0x1000 + 795222
12 com.apple.AppKit 0x91f0d441 -[NSDocumentController makeDocumentWithContentsOfURL:ofType:error:] + 917
13 com.apple.AppKit 0x91f1ca02 -[NSDocumentController(NSDeprecated) openDocumentWithContentsOfURL:display:error:] + 897
14 com.apple.garageband 0x0006fb7c 0x1000 + 453500
15 com.apple.garageband 0x0006f1cf 0x1000 + 451023
16 com.apple.AppKit 0x91f10332 __86-[NSDocumentController closeAllDocumentsWithDelegate:didCloseAllSelector:contextInfo:]_block_invoke + 276
17 com.apple.AppKit 0x91f10207 -[NSDocumentController closeAllDocumentsWithDelegate:didCloseAllSelector:contextInfo:] + 209
18 com.apple.garageband 0x0006dca7 0x1000 + 445607
19 com.apple.garageband 0x0006f14e 0x1000 + 450894
20 com.apple.garageband 0x00068749 0x1000 + 423753
21 com.apple.AppKit 0x91de12c5 __69-[NSApplication(NSAppleEventHandling) _handleAEOpenDocumentsForURLs:]_block_invoke + 1907
22 com.apple.AppKit 0x91a1ff7f -[NSApplication _reopenWindowsAsNecessaryIncludingRestorableState:registeringAsReady:completion Handler:] + 150
23 com.apple.AppKit 0x91a1fed6 -[NSApplication(NSAppleEventHandling) _reopenWindowsIfNecessaryWithAppleEvent:completionHandler:] + 244
24 com.apple.AppKit 0x91de0aef -[NSApplication(NSAppleEventHandling) _handleAEOpenDocumentsForURLs:] + 287
25 com.apple.AppKit 0x91a1f785 -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:] + 521
26 libobjc.A.dylib 0x98dd7304 -[NSObject performSelector:withObject:withObject:] + 77
27 com.apple.Foundation 0x998f03fa __76-[NSAppleEventManager setEventHandler:andSelector:forEventClass:andEventID:]_block_invoke + 121
28 com.apple.Foundation 0x998eff31 -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:] + 430
29 com.apple.Foundation 0x998efd3b _NSAppleEventManagerGenericHandler + 218
30 com.apple.AE 0x99c47b15 aeDispatchAppleEvent(AEDesc const*, AEDesc*, unsigned long, unsigned char*) + 387
31 com.apple.AE 0x99c16ed6 dispatchEventAndSendReply(AEDesc const*, AEDesc*) + 44
32 com.apple.AE 0x99c16dce aeProcessAppleEvent + 318
33 com.apple.HIToolbox 0x942dc7c1 AEProcessAppleEvent + 55
34 com.apple.AppKit 0x91a1b3a8 _DPSNextEvent + 1089
35 com.apple.AppKit 0x91a1aad0 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 119
36 com.apple.AppKit 0x91a0d35c -[NSApplication run] + 727
37 com.apple.AppKit 0x919f61f8 NSApplicationMain + 1165
38 com.apple.garageband 0x0019cae0 0x1000 + 1686240
39 com.apple.garageband 0x0000311a 0x1000 + 8474
Maybe you are looking for
-
theres like a 5 second delay from when i say something to when the sound of my voice actually comes in when i play back movies in photobooth.i tried restarting my computer and even turning on *auto flip new items. when i turn that on the problem is f
-
Significance of access sequence in Text determination procedure.
Can anybody explain me the significance of access sequence in text determination procedure? regards, arul jothi a
-
Reg. usage of BAPI_DOCUMENT_GETOBJECTDOCS
Dear Experts, My requirement is that i need to pass OBJECTTYPE as 'MARA' if it is Material BOM and OBJECTKEY as material no. and OBJECTTYPE as 'STPO_DOC' if it is BOM item and OBJECTKEY as GUIDX using in BOM Comparison to fetch Document Info Record a
-
Quality of slideshow on dvd poor!
hi, i use idvd to prepare a slideshow of my pictures, taken with a 8 megapix camera. when the project on idvd is finished and playbacked it looks great, but once burned on a dvd and then played in a dvd player (pal format) the foto's have lost a lot
-
hi all, i got error while installing the ecc 6.0. can u pls suggest me how to solve this problem. i am using RAM : 4 GB DDR 2 processer : dual core 2.5 HDD : 500 GB os - windos server 2003 java -j2sdk1.4.2_17-x64 oracle 10.2 pls help me any one shijo