How to error if the Date is not expected for the CSV Format

Hi Experts,
I have a situation where I expect to format DATE as "LUN-DD-YYYY", but there are issues when the CSV file is created with a DATE as "MON-DD-YY" (example November 15, 12 '). The date is inserted in the DB as November 15, 12 ', so I'm looking for a way to not load these files and these folders with incorrect dates added .bad and .log files. Here is my SQL:
DROP TABLE PER_ALL_ASSIGNMENTS_M_XTERN;

create table PER_ALL_ASSIGNMENTS_M_XTERN)
PERSON_NUMBER VARCHAR2 (30 CHAR),
ASSIGNMENT_NUMBER VARCHAR2 (30 CHAR),
DATE OF EFFECTIVE_START_DATE,
DATE OF EFFECTIVE_END_DATE,
EFFECTIVE_SEQUENCE NUMBER 4,
ATTRIBUTE VARCHAR2 (30 CHAR) CATEGORY,
_ATTRIBUTE1 VARCHAR2 (150 CHAR),
...
ATTRIBUTE Numero20 NUMBER,
ATTRIBUTE DATE1 DATE,
ATTRIBUTE DATE2 DATE,
ATTRIBUTE DATE3 DATE,
ATTRIBUTE DATE4 DATE,
ATTRIBUTE DATE.5 DATE,
ATTRIBUTE DATE6 DATE,
ATTRIBUTE DATE7 DAY,
ATTRIBUTE DATE8 DAY,
ATTRIBUTE DATE9 DATE,
ATTRIBUTE DATE10 DAY,
ATTRIBUTE DATE11 DAY,
ATTRIBUTE DATE12 DATE,
ATTRIBUTE SMOKERS13 DAY,
ATTRIBUTE DATE14 DAY,
ATTRIBUTE DATE15 DAY,
ASG_INFORMATION_CATEGORY VARCHAR2 (30 CHAR),
ASG_INFORMATION1 VARCHAR2 (150 CHAR),
...
ASG_INFORMATION_NUMBER20 NUMBER,
ASG_INFORMATION_DATE1 DAY,
ASG_INFORMATION_DATE2 DAY,
ASG_INFORMATION_DATE3 DAY,
ASG_INFORMATION_DATE4 DAY,
ASG_INFORMATION_DATE5 DAY,
ASG_INFORMATION_DATE6 DAY,
ASG_INFORMATION_DATE7 DAY,
ASG_INFORMATION_DATE8 DAY,
ASG_INFORMATION_DATE9 DAY,
ASG_INFORMATION_DATE10 DAY,
ASG_INFORMATION_DATE11 DAY,
ASG_INFORMATION_DATE12 DAY,
ASG_INFORMATION_DATE13 DAY,
ASG_INFORMATION_DATE14 DAY,
DATE OF ASG_INFORMATION_DATE15
)
external organization
(the default APPLCP_FILE_DIR directory
access settings
(records delimited by newline jump 1
BadFile APPLCP_FILE_DIR: 'PER_ALL_ASSIGNMENTS_M_XTERN.bad'
APPLCP_FILE_DIR log file: 'PER_ALL_ASSIGNMENTS_M_XTERN.log'
' fields completed by ',' EVENTUALLY ENCLOSED BY ' "'
(PERSON_NUMBER,
ASSIGNMENT_NUMBER,
DATE MASK EFFECTIVE_START_DATE CHAR(20) DATE_FORMAT 'DD-MON-YYYY. "
DATE MASK EFFECTIVE_END_DATE CHAR(20) DATE_FORMAT 'DD-MON-YYYY. "
EFFECTIVE_SEQUENCE,
_ATTRIBUTE_CATEGORY,
_ATTRIBUTE1,
...
_ATTRIBUTE_NUMBER20,
DATE MASK _ATTRIBUTE_DATE1 CHAR(20) DATE_FORMAT 'DD-MON-YYYY. "
DATE MASK _ATTRIBUTE_DATE2 CHAR(20) DATE_FORMAT 'DD-MON-YYYY. "
DATE MASK _ATTRIBUTE_DATE3 CHAR(20) DATE_FORMAT 'DD-MON-YYYY. "
DATE MASK _ATTRIBUTE_DATE4 CHAR(20) DATE_FORMAT 'DD-MON-YYYY. "
DATE MASK _ATTRIBUTE_DATE5 CHAR(20) DATE_FORMAT 'DD-MON-YYYY. "
DATE MASK _ATTRIBUTE_DATE6 CHAR(20) DATE_FORMAT 'DD-MON-YYYY. "
DATE MASK _ATTRIBUTE_DATE7 CHAR(20) DATE_FORMAT 'DD-MON-YYYY. "
DATE MASK _ATTRIBUTE_DATE8 CHAR(20) DATE_FORMAT 'DD-MON-YYYY. "
DATE MASK _ATTRIBUTE_DATE9 CHAR(20) DATE_FORMAT 'DD-MON-YYYY. "
DATE MASK _ATTRIBUTE_DATE10 CHAR(20) DATE_FORMAT 'DD-MON-YYYY. "
DATE MASK _ATTRIBUTE_DATE11 CHAR(20) DATE_FORMAT 'DD-MON-YYYY. "
DATE MASK _ATTRIBUTE_DATE12 CHAR(20) DATE_FORMAT 'DD-MON-YYYY. "
DATE MASK _ATTRIBUTE_DATE13 CHAR(20) DATE_FORMAT 'DD-MON-YYYY. "
DATE MASK _ATTRIBUTE_DATE14 CHAR(20) DATE_FORMAT 'DD-MON-YYYY. "
DATE MASK _ATTRIBUTE_DATE15 CHAR(20) DATE_FORMAT 'DD-MON-YYYY. "
ASG_INFORMATION_CATEGORY,
ASG_INFORMATION1,
...
ASG_INFORMATION_NUMBER20,
DATE MASK ASG_INFORMATION_DATE1 CHAR(20) DATE_FORMAT 'DD-MON-YYYY. "
DATE MASK ASG_INFORMATION_DATE2 CHAR(20) DATE_FORMAT 'DD-MON-YYYY. "
DATE MASK ASG_INFORMATION_DATE3 CHAR(20) DATE_FORMAT 'DD-MON-YYYY. "
DATE MASK ASG_INFORMATION_DATE4 CHAR(20) DATE_FORMAT 'DD-MON-YYYY. "
DATE MASK ASG_INFORMATION_DATE5 CHAR(20) DATE_FORMAT 'DD-MON-YYYY. "
DATE MASK ASG_INFORMATION_DATE6 CHAR(20) DATE_FORMAT 'DD-MON-YYYY. "
DATE MASK ASG_INFORMATION_DATE7 CHAR(20) DATE_FORMAT 'DD-MON-YYYY. "
DATE MASK ASG_INFORMATION_DATE8 CHAR(20) DATE_FORMAT 'DD-MON-YYYY. "
DATE MASK ASG_INFORMATION_DATE9 CHAR(20) DATE_FORMAT 'DD-MON-YYYY. "
DATE MASK ASG_INFORMATION_DATE10 CHAR(20) DATE_FORMAT 'DD-MON-YYYY. "
DATE MASK ASG_INFORMATION_DATE11 CHAR(20) DATE_FORMAT 'DD-MON-YYYY. "
DATE MASK ASG_INFORMATION_DATE12 CHAR(20) DATE_FORMAT 'DD-MON-YYYY. "
DATE MASK ASG_INFORMATION_DATE13 CHAR(20) DATE_FORMAT 'DD-MON-YYYY. "
DATE MASK ASG_INFORMATION_DATE14 CHAR(20) DATE_FORMAT 'DD-MON-YYYY. "
DATE MASK DATE_FORMAT ASG_INFORMATION_DATE15 CHAR (20) 'MON-DD-YYYY ".
)
)
location ("PER_ALL_ASSIGNMENTS_M.csv")
)
REJECT LIMIT UNLIMITED;

.. example report CSV:

E040101, EE040101, 1-Aug-00: 31-Dec-12, 1, NDVC, YES, SFC, N, STIP Plan - pressure, E040101, 2080, 5, 31113, 31113, 31113, 31113, 31113, 31113, 1-Jan-12, 31-Dec-12.

Thank you
Thai

Message details pl of the OS and database versions

Use the RRRR instead of AAAA - http://docs.oracle.com/cd/E11882_01/server.112/e26088/sql_elements004.htm#SQLRF00215

HTH
Srini

Tags: Database

Similar Questions

  • PC Hung and will now restart not [XP Pro SP3]. SYS error at startup as follows; Lsass.exe - system error. The endpoint Format is invalid.

    Original title: PC Hung and will now not restart not [XP Pro SP3]

    PC Gardner - [open Excel, open outlook, being viewed in PDF and word doc being edited].

    Restarted, then - loading SYS error window at startup as follows; lsass.exe - system error. The endpoint Format is invalid.

    Can not very well, or at the end of the message have to turn it off. Tried to reboot several times, same result.

    Just before this happened was a dialogue window appear on my PC, which indicates that Microsoft wanted to investigate problems of software they had observed on my PC that I had not sent the reports to. I approved this request and they took the reports...

    Am currently bimbling turn of safe mode with networking.

    Any smart people able to help me please?

    Thanks George

    Hello

    We will try these steps and check.

    Step 1: Try using some know last good configuration and check.

    Step 2: System Restore from safe mode or safe mode with network.

    Reference:
    A description of the options to start in Windows XP Mode
    http://support.Microsoft.com/kb/315222
    To start the computer in safe mode
    http://www.Microsoft.com/resources/documentation/Windows/XP/all/proddocs/en-us/boot_failsafe.mspx?mfr=true
    How to restore Windows XP to a previous state
    http://support.Microsoft.com/kb/306084

  • Tried to use iTunes to restore iPhone 5s, but the 17 error happens: "this device is not eligible for the requested build". No problem to enter the mode of recovery, apple server and the internet. Help?

    I tried to use iTunes to restore my iPhone 5s, but the 17 error happens: "this device is not eligible for the requested build". No problem to enter the recovery mode, connection to the apple Server (the software update download was complete) and internet connection. Help? I do an Apple store to restore?

    Error 17 refers to network problems. Take a look at these articles and try the suggestions:

    Solve the iOS update and restore error in iTunes - Apple Support

    Get help with iOS update or restore errors - Apple Support

  • get the error "no sequence valid is not found for the set of patches" msg trying to launch Acrobat XI for the first time after installing - suggestions?

    get the error "no sequence valid is not found for the set of patches" msg trying to launch Acrobat XI for the first time after installing - suggestions?  Using Windows XP.

    Hi James,

    Let me know if the problem persists.

    Kind regards

    Nicos

  • a new datastore iSCSI (disk/lun) appears in the inventory. Warehouses of data, but not availble for quick vMotioning...

    Hello

    We have added the new datastore iSCSI (disk/lun)

    This new data store appears in the inventory. Warehouses of data, but not availble for quick vMotioning or the creation of a new virtual machine.

    did we miss a step?

    Ty

    r

    The reason is that the data store is not presented to all hosts in a cluster. When you create the VM in vCenter Server, only warehouses of data visible to the host on which the virtual machine is created are displayed.

    Make sure the presentation on your storage system is correct and rescan your hosts.

    To check the above, take a look at the Configuration-> Storage for guests.

    André

  • error code 80080005 'Windows could not search for new updates"

    error code 80080005 'Windows could not search for new updates"

    What operating system?

    http://support.Microsoft.com/kb/910337
    This error message is similar to the error message "error 5: access is denied." To resolve this problem, follow the steps described in the section "error 5: access is denied."

    This error indicates that access for FOREST permissions have been modified. To repair these access permissions, use one of the following methods, depending on the operating system.

    Windows XP

    1. Click Start, click run, type cmd, and then click OK.
    2. Type the following command and press ENTER:
      SC tisb strands D: (A; CCLCSWRPWPDTLOCRRC; SELLERS) (A; CCDCLCSWRPWPDTLOCRSDRCWDWO; (BA) (A; CCLCSWLOCRRC; AU) (A; CCLCSWRPWPDTLOCRRC; CENTRAL UNIT)
    3. Click Start, click run, type services.msc and click OK.
    4. Double-click on Background Intelligent Transfer Service.
    5. On the general tab, click Start.

    TaurArian [MVP] 2005-2010 - Update Services

  • I paid £8,57 for photoshop cc 2015 already. I have a cornfirm email to buy site why I cannot accese to my App. how I can do but I'm not paying for this application two times per hour, I said... Thank you

    I paid £8,57 for photoshop cc 2015 already. I have a cornfirm email to buy site why I cannot accese to my App. how I can do but I'm not paying for this application two times per hour, I said... Thank you

    Check your account indicates the subscriptions that you expect (and that the adobe, used in the next step id is correct) by logging in here and checking the status of your subscription, https://www.adobe.com/account.html

    then, if it's current, disconnect and then back to your client application using the adobe with the link above in cc id: http://helpx.adobe.com/creative-cloud/kb/sign-in-out-creative-cloud-desktop-app.html

    If you don't have the cc desktop application, retrieve it and use it to install your programs cc/tests, https://creative.adobe.com/products/creative-cloud

  • Sloow SAN performance. How can I confirm the vmfs format?

    Best practices says format SAN storage through the VI client.

    This is done for the blocks and the SAN pieces line up properly.

    It also provides more efficient storage for initial commissioning management and ongoing management of shared storage resources.

    How can I check the san and the vmfs format is aligned properly?

    Current situation of our under execution SAN:

    the 4 mb block size

    filesystem 3.31

    Also where do I check for bottlenecks and performance problems?

    Double post:

    Re: Sloow SAN performance. How can I confirm the vmfs format?

    André

  • How can errors during the isntalation I fix?

    Exit code: 6

    Please see the faults and warnings below for troubleshooting. For example, ERROR: DF012, DF024... WARNING: DF054...

    -------------------------------------- Summary --------------------------------------

    -0 fatal Error (s), 16 (s), 4 warning (s)

    -Payload: {DE7C6FA1-AF75-48A8-B495-CFAD529BCC3D} recommended Installation of common fonts 2.0.0.0.

    WARNING: DF054: failed to read the version of the Adobe file for the file path ' C:\Windows\Fonts\CharlemagneStd-Bold .otf '(Seq 27)

    ERROR: DF012: cannot find the file (Seq 27)

    ERROR: DF024: impossible to preserve the original in 'C:\Windows\Fonts\CharlemagneStd-Bold.otf' error 32 the process cannot access the file because it is being used by another process. (Seq 27)

    ERROR: DW063: ARKDeleteFileCommand of command failed. (Seq 27)

    -Payload: {8085C16A-3148-40B4-BC8B-12ED59C9C478} recommended Installation of common fonts x 64 2.0.0.0.

    WARNING: DF054: failed to read the version of the Adobe file for the file path ' C:\Windows\Fonts\CharlemagneStd-Bold .otf '(Seq 28)

    ERROR: DF012: cannot find the file (Seq 28)

    ERROR: DF024: impossible to preserve the original in 'C:\Windows\Fonts\CharlemagneStd-Bold.otf' error 32 the process cannot access the file because it is being used by another process. (Seq 28)

    ERROR: DW063: ARKDeleteFileCommand of command failed. (Seq 28)

    -Payload: {311CDC89-AC18-4344-9EC9-0225328C73D3} necessary Installation of common fonts 2.0.0.0.

    WARNING: DF054: failed to read the version of the Adobe file for the file path ' C:\Windows\Fonts\MinionPro-Bold .otf '(Seq 34)

    ERROR: DF012: cannot find the file (Seq 34)

    ERROR: DF024: impossible to preserve the original in 'C:\Windows\Fonts\MinionPro-Bold.otf' error 32 the process cannot access the file because it is being used by another process. (Seq 34)

    ERROR: DW063: ARKDeleteFileCommand of command failed. (Seq 34)

    -Payload: {63594DD4-0241-422A-93A5-B6530040E1C7} necessary Installation of common fonts x 64 2.0.0.0.

    WARNING: DF054: failed to read the version of the Adobe file for the file path ' C:\Windows\Fonts\MinionPro-Bold .otf '(Seq 35)

    ERROR: DF012: cannot find the file (Seq 35)

    ERROR: DF024: impossible to preserve the original in 'C:\Windows\Fonts\MinionPro-Bold.otf' error 32 the process cannot access the file because it is being used by another process. (Seq 35)

    ERROR: DW063: ARKDeleteFileCommand of command failed. (Seq 35)

    ERROR: DW050: the following payload errors were found during the installation:

    ERROR: DW050:-Installation of common fonts required: installation failed

    ERROR: DW050:-common x 64 required font Installation: installation failed

    ERROR: DW050:-Installation of fonts common x 64 recommended: installation failed

    ERROR: DW050:-Installation of recommended common fonts: installation failed

    -------------------------------------------------------------------------------------

    also here is my sytem Info

    OS nameMicrosoft Windows 7 Home Premium
    Version6.1.7601 SP1 Build 7601
    Other OS DescriptionNot available
    Manufacturer of operating systemMicrosoft Corporation
    Name of the systemJOE - PC
    System manufacturerDell Inc.
    System modelStudio 540
    Type of systemPC x 64
    ProcessorIntel (r) Core (TM) 2 Quad CPU Q8200-2.33 GHz, 2336 Mhz, 4 Lossnay, 4 logical processors
    Version of the BIOS/DateDell Inc. 1.0.9, 12/25/2008
    SMBIOS version2.5
    Windows directoryC:\Windows
    System directoryC:\Windows\System32
    Boot device\Device\HarddiskVolume3
    Regional settingsUnited States
    Layer of HALVersion = "6.1.7601.17514".
    UsernameJoe-PC\Joe
    Time zonePacific daylight time
    Physical memory (RAM) installed4.00 GB
    Total physical memory4.00 GB
    Available physical memory1.68 GB
    Total virtual memory8.00 GB
    Available virtual memory4.98 GB
    Page file space4.00 GB
    Swap fileC:\pagefile.sys

    my graphics card is the radeon ati 5450 1 GB

    Errors ' Exit Code: 6, "" Exit Code: 7 ".

    In your case, you will need to the permissions of the fonts listed in the errors of difficulty and/or to know what program is actively using them during installation.

    Mylenium

  • I get an error that the file format is not supported on the opening of excel, pdf, and images.

    When I open excel spreadsheet that looks like they are encrypted, and I can't read them. diag box says that the file is not a recognizable format

    PDF message is not that a type of supported file file was damaged

    When I try to see the photos I get a message that the file format is not supported

    any suggestions?

    Hello

    Please contact the Microsoft Community.

    I wish that you refer to this article and choose the default program to open files-

    http://Windows.Microsoft.com/en-us/Windows/change-default-programs#1TC=Windows-Vista

    We know if that helps.

  • Cannot import the EXHD catalog to new mac error message: Parent folder does not allow for files to be created in the breast of this

    I have an old mac in 6 years that the battery exploded so I bought a new mac (Macbook Pro 13, 2015, running OS X El Capitan). I have an external hard drive that I backed up my LR5 the catalog and raw files on my old Mac. On my new mac, I have my EXHD plugged and the LR5 (of membership cloud of Adobe) running. I'm sailing LR5 to open the catalog on my EXHD do, essentially, on all my edits on my photos on my new computer. I get the attached message that it does not bc the parent folder does not allow for files to be created in the breast of the it.

    What should I do?

    Old mac still works so I was wondering if I could try to save the catalog on a USB (its about 4 GB) and rather than the new mac. Or try to save the EXHD catalog in a different way or something.

    Thank you very much!

    Screen Shot 2016-07-20 at 7.14.08 PM.png

    I copied the EXHD catalog to my new Mac desktop computer and then sailed LR5 catalog on my desktop. WORKED LIKE A CHARM!

  • Vista - Error Code: 80070426 (Windows could not search for new updates)

    I have Windows Vista Home Premium Service Pack 2 on HP Pavilion dv6700 Notebook PC 64 - bit operating system. For about a month, it stopped updating. Whenever I want to update it gives me the same message "Windows could not search for new updates. Error encountered, Code 80070426 ".

    After the possible solutions for others, which posted a similar problem, I typed "service" on start search and on the side slsvc, it gives a description. When I click Start the service, it gives me the message "error 2: the system cannot find the file specified."

    I appreciate any back feeding to help me solve the problem.

    Thank you

    Mikielle

    mikielle,

    0x80070426 - ERROR_SERVICE_NOT_ACTIVE the service has not been started

    Make sure that the automatic update services has been started.  Make sure that BITS is started.

    1. click on start and run, type services.msc, and then click ok.

    2. in the list of services, click on automatic updates, and then click Properties.

    3. in the startup type list, click Automatic, and then click on apply.

    4. If the service status is stopped, click Start, and then click ok.

    5. right click on background intelligent transfer service, and then click Properties.

    6. in the startup type list, click Manual, and then click on apply.

    or

    1 ddwnload and install the wga http://go.microsoft.com/fwlink/?linkid=56062 diagnostic tool

    2. after running the wga diagnostic tool, click the "windows" tab and then click on 'copy to clipboard '.

    3. then, visit the following Web site and create a post in the forum "problems of wga validation" and paste the results of the diagnostic data in a detailed post wga:

    http://forums.Microsoft.com/genuine/default.aspx?siteid=25

    4. a wga troubleshooting specialist will analyze the data and recommend an appropriate solution.

  • System Restore error: file spp.dll is not designed for windows or there is an error.

    Original title: download spp.dll

    My SPP.dll file is 0 kb.  When I try to access the system restore, it indicates that the file spp.dll is not designed for windows or there is an error.

    How can I get another spp.dll file? I can download one from the internet.  I tried but just keep getting a service offering public fixit. I bought RegUtility, but it did not fix the file.

    Try to run the System File Checker:

    http://support.Microsoft.com/kb/929833/en-us

  • How to get back the original format of e-mail? Is there a choice? I feel that outlook has too many restrictions!

    How to get back the original hotmail format? Is there a choice? I feel that outlook has too many restrictions. For example, I have to send an e-mail during the... For some reason, Outlook does not allow me to.

    Unfortunately, if you were auto update, there is no option to return back.  Microsoft upgrades everyone to Outlook.com in the coming weeks

    http://Windows.Microsoft.com/en-us/Windows/Outlook/auto-upgrade-Outlook-FAQ
    If you have specific questions, we would be happy to help but Outlook.com is here to stay.
  • Error code 80072EE2: Windows could not search for new updates.

    I am unable to get the Windows updates.  I repeatedly receive 80072EE2 error code: Windows could not search for new updates.  The help of instructions indicate I would add three updated addresses my firewall.  I am running McAfee Total Protection with a firewall, but I don't see an option to add addresses.  Do you have suggestions about this problem?

    Hello

    Did you face this problem after installation of McAfee?

    Follow these steps:

    Method 1: There is no option to add the URL of Web site in McAfee firewall.  However, you can add the URL in the filtered McAfee Web site. Click Parental control, clicking n config on the right panel, by clicking the forward button, and then click filtered Web sites on the left had Panel Add URL.

    Windows Update error 80072ee2
    http://Windows.Microsoft.com/en-us/Windows-Vista/Windows-Update-error-80072EE2

    Method 2: Run the Fixit and check.
    The problem with Microsoft Windows Update is not working
    http://support.Microsoft.com/mats/windows_update/

     

    Method 3: If this does not help, you can temporarily disable the antivirus and check if that helps.
    Disable the antivirus software
    http://Windows.Microsoft.com/en-us/Windows-Vista/disable-antivirus-software

    Note: Antivirus software can help protect your computer against viruses and other security threats. In most cases, you should not disable your antivirus software. If you need to disable temporarily to install other software, you must reactivate as soon as you are finished. If you are connected to the Internet or a network, while your antivirus software is disabled, your computer is vulnerable to attacks.

Maybe you are looking for

  • HP Pavilion g4-2111tu drivers for windows 7 and 8

    I installed windows 8 pro but it isn't install the pci driver. It's hp pavilion core i3 laptop with 4 GB ram and intel pc g4-2111tu.  When I install windows 8 pro that I can not find the driver for pci and when I install windows 7 I could not find th

  • Trim or not to TRIM under OSX

    Well, here's a question that I bet many of you have come up with your own answers for. I would like the official answer from sandisk... Use trim enabler on osx to use the PAD with your (awsome) ssd or not. Story based sandforce controllers require no

  • remove the old registered user or name of the owner for this operating system

    I would like to remove the old name of the owner of the operating system of my computer and update the info with my own.

  • How can I recover my backup password because I forgot it on my HP laptop?

    I forgot my password to my HP laptop backup. When I hit reset password and Password Wizard turns on, I struck then and plug my USB drive but it tells me to enter the password reset disk. (WHICH I DID NOT). I put a new cd - r disc and it tells me that

  • eGames Solitaire Master does not work with Windows 7

    Original title; Programs Application Applications Apps game games Legacy Crash crashes Hang Application Compatibility hangs Tried master eGames Solitaire, this does not work with windows 7. When will Microsoft a compatabillaty mode that actually work