Toad version is 12.11.0.95
My data is coming in a .CSV file exported from a SQL Server database. They are being imported into Oracle as a DATE Data Type.
I was having trouble with the Expression Builder even working with the Hard Coded Date, which I was testing with to get the format correct.
But, for my actual data, I have one Date coming in as "2021-10-22" (date only). That imports fine, as is, without any need for the Expression Builder.
The format I’m having trouble with is “2021-10-22 08:58:59.000”. I’ve tried the Expression “[SUBSTRING(Field12, 1, 10) ]” which should return the same format as my first Date field that IS working, but it does not. At Preview Results, it shows the first 10 characters, but when executing, is give me “’2021-10-22’ is not a valid date and time”.
Sample Data:
ContactDate has no problems. ContactDateTime is my issue field:
Mbr_Umid9,SDR_Person_ID,Mbr_Pers_Gen_Key,SDR_Opportunity,MemberPlanDesc,MemberSegment,ContactDate,ContactDateTime,KeyCode,CampaignType,VendorKey,CRMKey,JointKey,Disposition,DispositionDescription,CreatedQueue,CaseClass,CaseIntent,CallDescription,Eligible,Activation,UserID,AssociateFName,AssociateLName,AssociateTeam,Contacts,Source,LoadDate,LastUpdated
000005695,1003872203,9198023039906,0,COMM,COMM,2021-10-22,2021-10-22 08:58:59.000,0,"INBOUND ",NULL,629329100,629329100,NULL,NULL,HUMANA PHARMACY CALLS,BILLING ISSUE (CT & TM),ONE TIME CHARGE REQUEST,BILLING ISSUE (CT & TM) - ONE TIME CHARGE REQUEST,0,0,SXS5510,STEPHANIE,SMITH,HUM PHARM HUMANA PHARMACY CALL CENTER,1,CRM,2021-10-26 08:48:59.747,2021-10-26 08:58:37.000
000005695,1003872203,9198023039906,0,COMM,COMM,2021-10-22,2021-10-22 09:02:11.000,0,"INBOUND ",NULL,629327350,629327350,NULL,NULL,HUMANA PHARMACY CALLS,MEMBER PROFILE/ACCOUNT (CT & TM),ADD/UPDATED CREDIT CARD,MEMBER PROFILE/ACCOUNT (CT & TM) - ADD/UPDATED CREDIT CARD,0,0,SXS5510,STEPHANIE,SMITH,HUM PHARM HUMANA PHARMACY CALL CENTER,1,CRM,2021-10-26 08:48:59.747,2021-10-26 08:58:37.000
000006749,1003893886,810004247417,0,COMM,COMM,2021-10-23,2021-10-23 14:49:26.937,0,PaHub #Tag,NULL,1700789048,1700789048-#HCPRtoRxENoOffer,NULL,NULL,PaHub,PaHub #Tag,#HCPRtoRxENoOffer,PaHub #Tag - #HCPRtoRxENoOffer,1,1,GLQ3804,GERALD,QUIBUAL,HPSI HPS HCPR ADMIN,1,EPOST,2021-10-26 08:52:21.167,2021-10-26 08:58:37.000