RE: Re: 00.00.0000 00:00 is not a valid date and time error on export dataset
Mark Lerch <[email protected]>
| Newsgroups | gmane.comp.db.oracle.toad.free |
|---|---|
| Message-ID | <40D3CCF433C73840952314190752B107226F55C7@ALVMBXW02.prod.quest.corp> |
The problem is there are tasks (commonly Google update tasks) which have a zero value for their scheduled time. The code wasn't expecting that. You should be able to either alter the schedule for those via Windows, remove them (like I did, but I'm rather cranky and don't like updates firing all over the place constantly), or upgrade to a later version of Toad which has the problem fixed. From: [email protected] [mailto:[email protected]] On Behalf Of Daniel Hinkle Sent: Wednesday, March 07, 2012 12:35 PM To: [email protected] Subject: [toad] Re: 00.00.0000 00:00 is not a valid date and time error on export dataset [1 Attachment] [Attachment(s) from Daniel Hinkle included below] Message from: Daniel Hinkle I would just like to add that I have the exact same problem. I'm using Toad 10.5.0.41 on Windows 7 64 bit. Here is a screenshot of my task scheduler. _______________________________________ Historical Messages Author: Daniel Hinkle Date: Wed Mar 07 09:35:09 PST 2012 I would just like to add that I have the exact same problem. I'm using Toad 10.5.0.41 on Windows 7 64 bit. Here is a screenshot of my task scheduler. __ Author: mark.lerch_828 Date: Tue Feb 15 06:42:57 PST 2011 Hi Adam- The screenshot I need is from Toad: Utilities > Task Scheduler, for a variety of reasons. And you can send it directly to my email address - [email protected] thanks for your help, Mark __ Author: Adam Watson Date: Tue Feb 15 00:35:23 PST 2011 Hi, I've got the problem back. I've attached a screen shot of the task scheduler. I can't see any dodgy looking dates in there. I also had a problem the other day when if I clicked the column heading in the results to sort. It did the sort but returned the entire table, ignoring the where statements. If I put a order by xxx desc in the statement then it ordered it correctly. eg a select * from TABLE where COLUMN1 = 1 would return 10 results out of a 1000 line table, clicking the heading of COLUMN2 to sort would return all 1000 rows sorted on COLUMN2. This has stopped happening and I remember it doing it shortly before I had the export error last time. Thanks Adam __ Author: Adam Watson Date: Tue Feb 15 00:29:42 PST 2011 I've got the problem back __ Author: mark.lerch_828 Date: Mon Dec 27 07:01:17 PST 2010 Hi Adam- When this occurs again, please open Utilities > Task Scheduler and send me a screen shot. You can erase anything which may be construed as confidential, I just want to see the Schedule dates. If any of the Schedule dates look funky, delete or reschedule that item. I believe that's the source of your problem. Mark __ Author: Adam Watson Date: Thu Dec 23 08:31:51 PST 2010 Thank you very much guys for helping me with this Message was edited by: Adam_watson __ Author: John Dorlon Date: Thu Dec 23 07:53:24 PST 2010 If you haven't set up anything in the Automation Designer, I think you'll be able to solve this by going to your User Files folder and deleting ToadActions.dat (with Toad not running). Doing this will delete any actions/apps you've set up though. __ Author: Adam Watson Date: Thu Dec 23 07:53:24 PST 2010 Thanks for looking at this. Task scheduler is running and has been all the time __ Author: John Dorlon Date: Thu Dec 23 07:21:48 PST 2010 Oops, looks like that isn't start time of your computer. Still, check the scheduler service though... __ Author: John Dorlon Date: Thu Dec 23 07:17:55 PST 2010 Adam, Is your task scheduler service running? If not, does starting it and rebooting your PC make the problem go away? I know you aren't scheduling anything here, but some code is firing that has to do with scheduling. Looks like it is trying to determine the start date of your computer and coming back with all zeros. -John __ Author: Norman Dunbar Date: Wed Dec 22 02:48:27 PST 2010 Hi Adam, Yuk! I don't know what happened there but the format has been destroyed (probably yahoo!) and everything came in on one line :-( > Hi, I'm running 10g DB and client so no issue there. Excellent. > I tried just > selected a column that has no date or time in it and it still gave the > same error. Sounds like it's definitely not an Oracle problem that is causing the error in that case. If there are no DATEs then there should not be a reason to convert. > I selected "Spool SQL to screen" ran a very simple query and > then export and here is the result: > 2.5 Type : EConvertError > 2.6 Message : ''00.00.0000 00:00:00'' is not a valid date and time. This shows that it's [most likely] something internal to Toad and not coming from Oracle - client or otherwise. I'm afraid you'll need to wait for the developers to come online for a solution. Sorry. -- Cheers, Norm. [TeamT] __ Author: Adam Watson Date: Wed Dec 22 02:46:52 PST 2010 Hi, I'm running 10g DB and client so no issue there. I tried just selected a column that has no date or time in it and it still gave the same error. I selected "Spool SQL to screen" ran a very simple query and then export and here is the result: ---------------------------------- Session: APPS_DUAL_001@DUAL_ORCL Timestamp: 10:21:54.722 select id_risk from risk ---------------------------------- Session: APPS_DUAL_001@DUAL_ORCL Timestamp: 10:22:02.326 select 1 from user_snapshots where name = :x :x(VARCHAR[4],IN/OUT)='RISK' Also here is the data in the error message - I've been told to remove the IP addresses from the "Network" section so that is why it is blank. EurekaLog 6.0.22 Application: ------------------------------------------------------- 1.1 Start Date : Wed, 22 Dec 2010 08:37:48 +0000 1.2 Name/Description: Toad.exe - (Toad for Oracle) 1.3 Version Number : 10.5.0.41 1.4 Parameters : 1.5 Compilation Date: Mon, 29 Mar 2010 18:19:19 +0000 1.6 Up Time : 1 hour, 39 minutes, 17 seconds Exception: --------------------------------------------------------------------------- 2.1 Date : Wed, 22 Dec 2010 10:17:05 +0000 2.2 Address : 00412B4D 2.3 Module Name : Toad.exe - (Toad for Oracle) 2.4 Module Version: 10.5.0.41 2.5 Type : EConvertError 2.6 Message : ''00.00.0000 00:00:00'' is not a valid date and time. 2.7 ID : E970 2.8 Count : 1 2.9 Status : New 2.10 Note : User: ------------------------------------------------------- 3.1 ID : awatson 3.2 Name : admin 3.3 Email : 3.4 Company : 3.5 Privileges: SeLockMemoryPrivilege - OFF SeIncreaseQuotaPrivilege - OFF SeSecurityPrivilege - OFF SeTakeOwnershipPrivilege - OFF SeLoadDriverPrivilege - OFF SeSystemProfilePrivilege - OFF SeSystemtimePrivilege - OFF SeProfileSingleProcessPrivilege - OFF SeIncreaseBasePriorityPrivilege - OFF SeCreatePagefilePrivilege - OFF SeBackupPrivilege - OFF SeRestorePrivilege - OFF SeShutdownPrivilege - OFF SeDebugPrivilege - OFF SeSystemEnvironmentPrivilege - OFF SeChangeNotifyPrivilege - ON SeRemoteShutdownPrivilege - OFF SeUndockPrivilege - OFF SeManageVolumePrivilege - OFF SeImpersonatePrivilege - ON SeCreateGlobalPrivilege - ON SeIncreaseWorkingSetPrivilege - OFF SeTimeZonePrivilege - OFF SeCreateSymbolicLinkPrivilege - OFF Active Controls: ------------------------------------ 4.1 Form Class : TFormGridSaveAs 4.2 Form Text : Export Data 4.3 Control Class: TFormGridSaveAs 4.4 Control Text : Computer: -------------------------------------------------------------------------------------------- 5.1 Name : CIRCE 5.2 Total Memory : 3567 Mb 5.3 Free Memory : 1959 Mb 5.4 Total Disk : 232.79 Gb 5.5 Free Disk : 188.21 Gb 5.6 System Up Time: 1 day, 2 hours, 47 minutes, 38 seconds 5.7 Processor : Intel(R) Core(TM)2 Duo CPU E7200 @ 2.53GHz 5.8 Display Mode : 1280 x 1024, 32 bit 5.9 Display DPI : 96 5.10 Video Card : Intel(R) Q33 Express Chipset Family (driver 8.15.10.1930 - RAM 256 MB) 5.11 Printer : HP LaserJet P2050 Series PCL6 (driver 6.1.7600.16385) Operating System: ----------------------------------- 6.1 Type : Microsoft Windows 7 6.2 Build # : 7600 6.3 Update : 6.4 Language: English 6.5 Charset : 0 Network: --------------------------------------------------------------------- Call Stack Information: ------------------------------------------------------------------------------------------------------ |Address |Module |Unit |Class |Procedure/Method |Line | ------------------------------------------------------------------------------------------------------ |Running Thread: ID=5488; Priority=-2; Class=; [Main] | |----------------------------------------------------------------------------------------------------| |00BA4BFB|Toad.exe |saUtils.pas | |GetDateTimeFromVistaString |106[17] | |00BA4A5C|Toad.exe |saUtils.pas | |GetDateTimeFromVistaString |89[0] | |00BAC17D|Toad.exe |saTask.pas |TTriggers |InitTriggers |2631[63]| |00BABEC4|Toad.exe |saTask.pas |TTriggers |InitTriggers |2568[0] | |00BA9078|Toad.exe |saTask.pas |TTaskItem |Activate |1644[14]| |00BA8FB4|Toad.exe |saTask.pas |TTaskItem |Activate |1630[0] | |00FA9AD8|Toad.exe |tdWindowsTaskMgr.pas|TtdWindowsTaskMgr|ActionItemScheduled |414[22] | |00FA99E8|Toad.exe |tdWindowsTaskMgr.pas|TtdWindowsTaskMgr|ActionItemScheduled |392[0] | |020569F4|Toad.exe |arExecutableItem.pas|TarExecutableItem|Remove |587[8] | |01DDA0E7|Toad.exe |arActionManager.pas |TarActionManager |MakeRoomInVault |1340[31]| |01DD9FA0|Toad.exe |arActionManager.pas |TarActionManager |MakeRoomInVault |1309[0] | |01DD9D4D|Toad.exe |arActionManager.pas |TarActionManager |AddAction |1242[13]| |01DD9CE0|Toad.exe |arActionManager.pas |TarActionManager |AddAction |1229[0] | |01DDA183|Toad.exe |arActionManager.pas |TarActionManager |AddActionToVault |1360[9] | |01DDA13C|Toad.exe |arActionManager.pas |TarActionManager |AddActionToVault |1351[0] | |01E4474E|Toad.exe |frmToad.pas |TToadForm |DoRunAction |685[2] | |01E44734|Toad.exe |frmToad.pas |TToadForm |DoRunAction |683[0] | |01E446CA|Toad.exe |frmToad.pas |TToadForm |SetResultType |658[7] | |01E446AC|Toad.exe |frmToad.pas |TToadForm |SetResultType |652[1] | |01A3FDA2|Toad.exe |frmGridSaveAs.pas |TFormGridSaveAs |OKButtonClick |1943[12]| |752083DB|USER32.dll | | |GetWindowLongW | | |7520F2AA|USER32.dll | | |NotifyWinEvent | | |752083CF|USER32.dll | | |GetWindowLongW | | |752083DB|USER32.dll | | |GetWindowLongW | | |76DE4DBA|ntdll.dll | | |NtFindAtom | | |752043F0|USER32.dll | | |CallWindowProcW | | |751FCCC7|USER32.dll | | |CallNextHookEx | | |00577277|Toad.exe |cxContainer.pas | |ApplicationCallWndProcHookProc|6159[13]| |751FCC8F|USER32.dll | | |CallNextHookEx | | |75207690|USER32.dll | | |SendMessageW | | |752043F0|USER32.dll | | |CallWindowProcW | | |752043DA|USER32.dll | | |CallWindowProcW | | |751FBBB3|USER32.dll | | |GetCapture | | |75208E97|USER32.dll | | |DispatchMessageW | | |75208E8D|USER32.dll | | |DispatchMessageW | | |01A3C13D|Toad.exe |frmGridSaveAs.pas | |SaveGrid |555[25] | |01A3C038|Toad.exe |frmGridSaveAs.pas | |SaveGrid |530[0] | |01D0DBE0|Toad.exe |FSELiveGrid.pas |TSELiveGridFrame |actExportDatasetExecute |365[1] | |00FBACB4|Toad.exe |SBUtils.pas | |CloneBuffer |1744[0] | |0101017B|Toad.exe |SBPKCS12.pas |TElPKCS12Message |ProcessPrivateKeyInfo |1127[37]| |75207854|USER32.dll | | |GetPropW | | |75207829|USER32.dll | | |GetPropW | | |75208E97|USER32.dll | | |DispatchMessageW | | |75208E8D|USER32.dll | | |DispatchMessageW | | |021E7CEA|Toad.exe |Toad.dpr | | |114[83] | |76751192|kernel32.dll| | |BaseThreadInitThunk | | ------------------------------------------------------------------------------------------------------ Modules Information: -------------------- Processes Information: ---------------------- Assembler Information: ---------------------- Registers: ---------- __ Author: Adam Watson Date: Wed Dec 22 02:04:17 PST 2010 sorry should have added I'm running Toad for Oracle Base ver: 10.5.0.41 on a PC with Windows 7 __ Author: Norman Dunbar Date: Wed Dec 22 01:59:54 PST 2010 Hi Adam, > There are dates in there but none are null and until a couple of days > ago I could export fine. I presume that if you run a query without dates, then you can export those just fine? > This error isn't just for a certain query on > certain tables I cannot export dataset at all, :-( > I get the same error on > any query on any DB, on any format, to a file and to clipboard. That's very strange. Is it any query at all, even something simply such as "select 'Help me!' from dual. Or does the query have to include a date for the above to fail? > "What do you get if you select min(date_column) from (your query > here); ?" I ran that and got "31/12/2009" Ok, thanks. > Thanks for taking the time to > reply Adam My pleasure. I'm wondering now, if this is something to do with a 9i client and a 10g database (or higher) where there are timestamps involved? Are your date columns DATE or TIMESTAMP? Does your client match the database version? Ie, 10g for both or 9i for both? I've had problems with Toad reporting exceptions in one of the 9i Oracle DLLs when I query DBMS_SCHEDULED_JOBS in a 10g database with a 9i client. Toad 10.5 does Unicode, Oracle 9i client doesn't. Does your database have a unicode characterset? How about NLS_LANG on the client - does it match? More questions that answers I'm afraid, this is quite puzzling. I don't suppose spooling the SQL to the screen just before you export the dataset gives any clues? -- Cheers, Norm. [TeamT] __ Author: Adam Watson Date: Wed Dec 22 01:58:02 PST 2010 There are dates in there but none are null and until a couple of days ago I could export fine. This error isn't just for a certain query on certain tables I cannot export dataset at all, I get the same error on any query on any DB, on any format, to a file and to clipboard. All I want to do is copy the results to an excel sheet which I can do with cut and paste but it doesn't copy the column headings, do you know of a work around? "What do you get if you select min(date_column) from (your query here); ?" I ran that and got "31/12/2009" Thanks for taking the time to reply Adam __ Author: Norman Dunbar Date: Wed Dec 22 01:20:32 PST 2010 Morning Adam, > 00.00.0000 00:00 is not a valid date and time It started doing it before does the grid actually contain a date column? And if so, are any of them null? What do you get if you select min(date_column) from (your query here); ? I can't see any options to change null dates into all zeros in Toad's options, but maybe it's an artefact of the format you are attempting to export - what format have you chosen? -- Cheers, Norm. [TeamT] __ Author: Adam Watson Date: Wed Dec 22 00:54:53 PST 2010 Hi, When I try and export a results table by clicking the export dataset option after right clicking the results table I get the following error: 00.00.0000 00:00 is not a valid date and time It started doing it before and I had to uninstall and reinstall to clear it. It has worked fine for a few months but now its back. Any ideas that avoid the need to go through the trouble of uninstalling all over again? Adam __ _______________________________________ Attachment(s) from Daniel Hinkle 1 of 1 Photo(s) [toad_task_scheduler.png]<http://groups.yahoo.com/group/toad/attachments/folder/536702390/item/409287140/view> toad_task_scheduler.png<http://groups.yahoo.com/group/toad/attachments/folder/536702390/item/409287140/view>