CFPDF GetInfo 'invalid date format. "

We receive PDFs via a download function , we have incorporated and once the file is saved on our server perform us the following action

<cfpdf action="getinfo"
      name="pdfInfoStc"
      source="#uploadResult.serverDirectory#/#uploadResult.serverFile#">
    

This works very well if the PDF file has been made from an authentic source, but many times we receive files of low-end scanners or banks who are not save a created thus date the getinfo action fails with the message "invalid date format", which is logical that the date is not clearly However, it is not really acceptable that the getinfo process could not simply return a null value or empty string rather than throwing an error massive coldfusion?

Running Coldfusion Enterprise version is 8,0,1,195765


Has anyone ever encountered this bug / problem before and found a solution?

Hello

I have not used this tag, in surfing, I got this.

Created

D:20061121155226 - 05'00 '

Creation date generated by the system of the PDF document. You can specify a string of text with the action of setInfo.

We can define the created using this setInfo.

PDF is to throw an error, you may catch the exception and using this setInfo, you can set the date of creation.

     


Tags: ColdFusion

Similar Questions

  • CS3 breaks date format in MS Access on insert record

    It's strange.

    I worked on one of my old sites, built in MX 2004. After updating the record insertion on the page using CS3 behavior, I noticed that my date fields are messy. My LCID is set to 2057 UK date (dd/mm/yyyy) format, but it is now getting back to mm/dd/yyyy.

    I recall it being a 'Date, MS Access' option in the ' submit under "fall down on the insert record behavior MX 2004, but this seems to be missing.

    I have nothing on the output allows to reverse the change, so now my old disks display dates in the correct format, and new records have the wrong date on them.

    And of course, you don't notice this error before the 12th of the month, after which the system can decide who should be the month.

    So my clients resonate me up to two weeks after that day to tell me that their application is broken. Arrgh.

    Is there an extension for this problem / add the necessaru to the insertion of a plug or someone behavior at - it a snippet of code that works?

    Is this something a bug in CS3?

    OK, I found a solution quick and dirty, which is basically does not submit the field as a date.

    I found that I needed to change this line of code:

    Quote:
    MM_editCmd.parameters.Append MM_editCmd.CreateParameter ("param5", 135, 1, -1, MM_IIF (UploadFormRequest ("article_date_updated"), UploadFormRequest ("article_date_updated"), null)) ' adDBTimeStamp

    with this:

    Quote:
    MM_editCmd.parameters.Append MM_editCmd.CreateParameter ("param5", 202, 1, 150, MM_IIF (UploadFormRequest ("article_date_updated"), UploadFormRequest ("article_date_updated"), null)) ' adDBTimeStamp

    The difference being these settings: "135, 1, - 1" becomes "202, 1, 150".»

    I don't understand what these are (can't find a reference for them), but the third should be the length of the string, the first of the type of data (e.g. variable text, number, date) and one in the Middle, unsure, whether his need maybe?

    If the first of these parameters can be set for the exact date, it would be the right solution, but I don't know if this is possible.

    Anyway, the work around is OK - condition that there is sufficient validation on the form to choose the invalid date formats.

  • Check invalid date and display error message for that forms 10 g or 12 c

    Hi all

    a text element text_fdate is of data type date mask and the format is dd/mm/rrrr

    In this text element that I want to display validation message "you have entered an incorrect date that does not exist.

    When the user enters an invalid date as 30/02/2016 which is not exists.

    What trigger I use and when.

    Florian wrote:

    Hey Hamid,

    GET_ITEM_PROPERTY ('ITEM_NAME', ITEM_IS_VALID);<--it is="" not="">

    Above will work only on the query mode.

    The code works, but the below error code you gave does not work in forms 12 c.

    1. IF ERROR_CODE = 50012 THEN
    2. MESSAGE ("Please enter the correct date.");
    3. MESSAGE ("Please enter the correct date.");
    4. END IF;

    The correct error code is 50004 12 c forms.

    Just change the ERROR_CODE of 50012 to 50004 and it will work.

    I'll check the error code in form 10g and will play with you again.

    I already checked and functional at 10g.

    Hamid

  • Date Format help: LUN-JJ-AA

    Hello everyone.

    Nice day.

    I would like to ask for your help regarding my inquiry on the output of the PL/SQL script that I am creating.

    Please find below my script output:

    L7, CU4450278, 70X1W01AGA-ASY, 11813,20-6ae-13, 0

    L7, CU4464442, 747X32VH9015-ASY, 3394,20-6ae-13, 0

    L7, CU4464766, 747X22VH9015-ASY, 3383,21-6ae-13, 0

    As you can see in the output CSV, the date has an invalid value, the "6ae" should be Jun (e.g. a format short month of June).

    My script has this code for date dbms_output to_char(startplan_rec.str_startdate,'DD-MON-YY')


    The startplan_rec.str_startdate is of type date.

    I tried to interview the same table in oracle sql developer, but I am getting output correctly (for example 20 June 13).

    Please, help me to have my out of date format on my pl/sql. Why is my release date on my incorrect script?

    Thanks in advance.

    Kind regards

    Jeff.

    In your PL/SQL, try to specify the language setting in the optional 3rd parameter that is often ignored in to_char(), as follows:

    to_char(startplan_rec.str_startdate,'DD-MON-YY','nls_date_language=english')
    
  • Date format does not not in 11G?

    Hi all

    I'm using Oracle 11 g on windows 7

    I try to run this date format not allways show me same format

    Select To_date (' 02 / 02/2012 ', ' DD/MONTH/YYYY') twice; (when I want to record on column date) but the error is NOT VALID MONTH
    Select To_date (' 02 / 02/2012 ', ' DD/MM/YYYY') twice; (when I want to record on column date) it's OK



    Also, when I want to display the date
    Select To_char (' 02 / 02/2012 ', ' DD/MM/YYYY') twice; (when I want to record on column date) error NUMBER INVALID

    Select To_char (' 02 / 02/2012 ', ' DD/MONTH/YYYY') twice; (when I want to record on column date) error NUMBER INVALID
    Select To_char (' 02 / 02/2012 ',' MON/DD/YYYY "") double; (when I want to record on column date) error NUMBER INVALID

    I try to get NLS_DATE_FORMAT in windows registery under oracle but not found I have try to search in the registry, but not found.

    using regedit in cmd

    concerning

    Isabelle wrote:
    It's good, but I want the output like this JJ/MM/AAAA allways

    Date of some time

    09/12/2012
    12 OCTOBER 2012

    How can I give him standard format?... because the user enter different format, so I want to convert it to standard format.

    .

    with t as
    (
    select '12/09/2012' d from dual
    union all
    select '12/OCT/2012' from dual
    )
    select to_char(to_date(d,'dd-mm-rr'),'dd-mm-yyyy') d from t;
    
    D
    12-09-2012
    12-10-2012
    
  • varchar2 to the date format conversion

    I have converted the formats of date several times, but for some reason, I get an error invalid number when you try to convert a varchar2 column. I tried the to_char and to_date function and I get the same result. The column is a date and it is formatted like ME-DD-YYYY, but I want to change it to DD/MM/YYYY. My query is below:

    Select to_date('fccpdate','MM/DD/YYYY')
    of cc_class_scmast_v

    When I try to_date I get this:

    Error from the 1 in the command line:
    Select TO_DATE ('fccpdate ',' MON-DD-YYYY "") of cc_class_scmast_v, where fccpdate IS NOT NULL
    Error report:
    SQL error: ORA-01858: a non-digit character was found here where was waiting for a digital
    01858 00000 - "a non-digit character found here where was waiting for a digital".
    * Cause: Input data to convert using a date format model has been
    incorrect answer. The input data did not contain a number where is a number
    required by the format model.
    * Action: Fix the input data or the date format model to ensure that the
    elements correspond to the number and the type. And then try the operation again.



    When I try to_char I get this:

    Error from the 1 in the command line:
    Select TO_char ('fccpdate ',' MON-DD-YYYY "") of cc_class_scmast_v, where fccpdate IS NOT NULL
    Error report:
    SQL error: ORA-01722: invalid number
    01722 00000 - "invalid number."
    * Cause:
    * Action:


    I tried to remove the single quotes of my column and that does make a difference. Any help is appreciated.

    Hello

    housetiger77 wrote:
    I have converted the formats of date several times, but for some reason, I get an error invalid number when you try to convert a varchar2 column. I tried the to_char and to_date function and I get the same result. The column is a date and it is formatted like ME-DD-YYYY,

    If the column is a DATE, then it has the same format that all DATEs, which is nothing like 'DD-MON-YYYY '. Formats like which apply only to chains.
    Conversely, if it is in the format "DD-MON-YYY", then it is a string, not a DATE.

    but I want to change to DD/MM/YYYY. My query is below:

    Select to_date('fccpdate','MM/DD/YYYY')
    of cc_class_scmast_v

    To_date (x, "MM/DD/YYYY") tries to convert the string x in a DATE. Let's say it starts by taking the first 2 characters of x, for the month. The first 2 characters of 'fccpdate' are "fc", which is not a valid number (at least not in base 10), not to mention a number from 1 to 12, TO_DATE so will raise an error.

    When I try to_date I get this:

    Error from the 1 in the command line:
    Select TO_DATE ('fccpdate ',' MON-DD-YYYY "") of cc_class_scmast_v, where fccpdate IS NOT NULL
    Error report:
    SQL error: ORA-01858: a non-digit character was found here where was waiting for a digital
    01858 00000 - "a non-digit character found here where was waiting for a digital".
    * Cause: Input data to convert using a date format model has been
    incorrect answer. The input data did not contain a number where is a number
    required by the format model.
    * Action: Fix the input data or the date format model to ensure that the
    elements correspond to the number and the type. And then try the operation again.

    When I try to_char I get this:

    Error from the 1 in the command line:
    Select TO_char ('fccpdate ',' MON-DD-YYYY "") of cc_class_scmast_v, where fccpdate IS NOT NULL
    Error report:
    SQL error: ORA-01722: invalid number
    01722 00000 - "invalid number."
    * Cause:
    * Action:

    I tried to remove the single quotes of my column and that does make a difference. Any help is appreciated.

    It's a good first step. Literals are enclosed in single quotes are not identifiers (including the column names). "fccpdate" is the literal string of 8 characters containing 'f', ' c; Another 'c', 'p' 'd', 'a', 't' and 'e'. " fccpdate (without the single quotes) can be the name of a column.

    If fccpdate is a string, as July 18, 2012', then you can convert it to a DATE using TO_DATE.

    TO_DATE (fccpdate, 'DD-MON-YYYY')
    

    If you want to display a DATE in a particular format, use

    TO_CHAR ( d
            , f
            )
    

    where d is a DATE, and f is the format string. In this case, d is perhaps the TO_DATE expression above

    TO_CHAR ( TO_DATE (fccpdate, 'DD-MON-YYYY')
            , 'MM/DD/YYYY'
            )
    

    I hope that answers your question.
    If not, post a small example data (CREATE TABLE and only relevant columns, INSERT statements) for all of the tables involved and also publish outcomes from these data.
    Explain, using specific examples, how you get these results from these data.
    Always tell what version of Oracle you are using.
    See the FAQ forum {message identifier: = 9360002}

  • date format not correctly displayed

    Hi all
    I am writing a procedure to download an excel file in a table. for this, we use a csv format.
    I have a DATE column in my spreadsheet. prior to the main question. I want you to know is that this spreadsheet is generated by another application (so there is no possibility to manually change the column format in excel).

    the format in which the date is stored is lun-JJ-AA. so, if the date is January 1, 2000, it is displayed as January 1 00.

    When convert us this spreadsheet to CSV data are not complete in the csv file. This is the January 1 00.

    now the problem is that u cannot use a function to_date for the above data. It gives an error like invalid date.

    can you let me know how can I handle this in the query and the query only?

    Thank you
    Belin
    select to_date('1-jan-00','dd-mon-YYYY') from dual
    
    ORA-01841: (full) year must be between -4713 and +9999, and not be 0
    
    select to_date('1-jan-00','DD-MON-RRRR') from dual
    
    1/1/2000
    
    for more details
    Difference between YYYY n RRRR date format
    
  • Play with the date format TO_CHAR

    Hi all
    I'm learning how function TO_CHAR date format and code using the table double, but I had a few difficulties:
    SQL> select to_char(sysdate,'dl') test from dual;
    
    TEST
    -----------------------------
    Monday, December 20, 2010
    
    SQL> select to_char(sysdate) test from dual;
    
    TEST
    ---------
    20-DEC-10
    
    SQL> select sysdate test from dual;
    
    TEST
    ---------
    20-DEC-10
    
    SQL> select to_char('20-DEC-10','dl') test from dual;
    select to_char('20-DEC-10','dl') test from dual
                   *
    ERROR at line 1:
    ORA-01722: invalid number
    How can I place an explicit function TO_CHAR date?

    Best regards
    Valerie

    Valerie Debonair wrote:
    Hi all
    I'm learning how function TO_CHAR date format and code using the table double, but I had a few difficulties:

    SQL> select to_char('20-DEC-10','dl') test from dual;
    select to_char('20-DEC-10','dl') test from dual
    *
    ERROR at line 1:
    ORA-01722: invalid number
    

    How can I place an explicit function TO_CHAR date?

    Oracle converts implicitly your string to a date so that it can convert it to a string using your to_char function. Implicit conversion is based on your NLS_DATE_FORMAT settings, but you can never count on these implicit conversions.

    You can be...

    SQL> select to_char(to_date('20-DEC-10','DD-MON-RR'),'dl') from dual;
    
    TO_CHAR(TO_DATE('20-DEC-10'
    ---------------------------
    Monday 20 December 2010
    

    or

    SQL> select to_char(date '2010-12-20','dl') from dual;
    
    TO_CHAR(DATE'2010-12-20
    -----------------------
    Monday 20 December 2010
    

    Note that this one used Oracle fixed-date internal format YYYY-MM-DD, so if ever you use this method, you must specify the date string in this format. It also only deals with dates, not the component "hour".

  • continue the request despite invalid date in a view

    Hello

    SQL:
    SELECT id, bird mydate
    where mydate > = sysdate - 1

    Error: ORA-01858, a non-digit character was found there where was waiting for a digital

    I'll try to find the record that shows that is not a valid date

    on the other will have to do a manual search
    or write a procedure to locate the record

    but is it possible to continue the discovered despite the existence of an invalid date?
    with a status column 'VALID_DATE', which show there - valid date and N - date not valid?

    Please notify

    TKS & rgds

    Should we assume that the MYDATE column is not a DATE? Despite its name, is really a VARCHAR2?

    You can write a function along the lines of

    CREATE FUNCTION my_to_date( p_date_str IN VARCHAR2 )
      RETURN DATE
    IS
    BEGIN
      RETURN TO_DATE( p_date_str, your_format_mask );
    EXCEPTION
      WHEN others THEN
        RETURN NULL;
    END;
    

    and then do

    SELECT *
      FROM your_view
     WHERE my_to_date( mydate ) IS NULL
    

    Alternatively, you can write a similar function that returns 0 or 1 depending on whether the string can be converted to a date in the expected format.

    Justin

  • How to advocate for regional change of short date format

    This is something relatively trivial but annoying all the same, but I don't know where to go to advocate for change.

    Have just updated for Sierra and one of the first things I notice is the addition of a point at the end of the month in short date format, i.e. 'September 19, 2016'.

    "In Australia, as in the United Kingdom, the standard must not use this period - it should be just'19 Sep 2016", and in the past, that's how it appeared in OSX for the Australia. Don't know why the change.

    This abbreviation is not replaceable by the user, so where can I go to provide appropriate feedback and I hope to have this problem on the track?

    A solution is to make my default language and region of the United Kingdom, but do not know if there is a price to pay for it.

    You can provide feedback to Apple asking them to change it:

    www.Apple.com/Feedback

  • How do I change the date format in the section of the United States to the United Kingdom

    As in the question.

    Hello

    I had a glance in this and have found that Thunderbird uses the date format of your computer system. If you change it, it should be reflected in Thunderbird.

    I hope this helps, but if not, please come back here and we can look at another solution for you.

  • How can I configure the cell data format

    How can I configure data format of cell numbers: for example, I want to capture 123456.78 and need to be 12A3456.78?

    I tried to put #A # #. # format option, but it didn't work a few time and it became A123456.78.

    I also tried on excel and it worked very well, but I like the numbers better. is there a solution to this problem?

    Thank you

    HEY Chi - Lun,

    I don't think that this is possible as many number format. You should be able to insert A in a text string using a formula, but this would happen in a second cell, not that the number has been entered.

    "Assuming all the"numbers require the same inserted letter after the second number, this should do the work."number" entered in column A; the formula in column B. In the table below, your value as an example is A6.

    = Left (A, 2) & "A" & RIGHT (A, LEN (A) - 2)

    Kind regards

    Barry

  • Date format of messages is absolutely ugly

    Hi all.

    I'm really frustrated format of date/time of Messages on my iPhone6 (and also on my OS - X).

    What the main reason for the use of the words 'Today', 'Yesterday', 'Saturday' and other?

    Who need this lyrical sh * t? All my friends is also frustrated by this function, because if you need a specific date for the quote or shipping screen, you will need to do a lot of unnecessary travel.

    I mean - if you want to find something and need to translate "what the date was Saturday?", you need to go to calendar and look here, what date was Saturday.

    Apple !

    Please, I beg you! Make this switchable feature!

    This date format looks like completely unnecessary and useless decoration.

    Simply return the precise date.

    p.s. this message angry wrote after a misunderstanding with screenshots attached in the e-mail Messages.


    iOS version: 9.3.3

    The OS - X version: 10.11.6

    Not something anyone here can do for you. You can offer your comments Apple here.

  • How canI change the date format of dd/mm/yyyy to dd/mm/yyyy in filed?

    I just got and try things my new Alcatel fire E with FirefoxOS (just updated) 2.0.0.0.

    It is usual in most operating systems to be able to customize the date and time (among others). After a few hours of unsuccessful fiddling with the phone and checking the various forums, I came to the conclusion that it is currently not possible on my phone with this version of FirefoxOS. Or did I just miss something?

    Achim

    Hi achim_59,

    I understand that you want to set the date format to display the jj/mm/aaaa on your Firefox OS device.

    This feature has been implemented in Firefox OS v2.1. Unfortunately, this feature is not available in v2.0:

    For other questions about the updates and implementation of your specific device features, please contact your device manufacturer, Alcatel.

    -Ralph

  • How can I change the date format in Thunderbird for the list of received messages?

    Through 19/02/2015 12:28, I received my email with this format. Since that time, all the date Watch column is the time, the date does not show. How to get back to the default time and date format?

    The default is to show all the time on messages from today, with the date and time on all the other messages.

    http://KB.mozillazine.org/Date_display_format

Maybe you are looking for

  • How to increase the distance of minimum drag

    Is it possible for an end user increase the minimum distance or the time it takes to move the cursor in order so that it can be regarded as a movement? I am constantly of Drag Queens or moving recorded when I want to save the cursor as being always.

  • Given to nine hp w2408 flashes red/blue/green/black/white when idle

    How can I disable this?  I think that it is still factory testing or burn-in mode, but I can't seem to find how to turn it off. At least he only does when idle, but I'd rather turn it off except closing cycle through these colors. Thank you! -Jason

  • Quick start Intel stops working when upgrading RAM

    I have a laptop dv7-7212nr of nine ENVY running 64-bit Windows 8. This machine has Intel Rapid Storage Technology that caches the data on the hard drive (I think on the SSD of 32 GB) and active Intel Rapid Start technology that stores memory in the S

  • STOP: 0x0000007A - new large hybrid drive; no model BSOD

    I put a 1 to Seagate hybrid drive in a Samsung R580 laptop and reinstalled Windows 8 House (64-bit). I now get to chance the Kernel_Data_Inpage_Error with the following code: STOP: 0X0000007A (0XFFFFFFFFC000000E, 0X000000000DFE1860, 0XFFFFF6FC40006E0

  • Use just JavaME or BlackBerry JDE

    Hi all, I have this simple doubt, im begins with the programming of blackberry, I already checked the docs of blackberry and examples, got the eclipse plugin and I like the API and everything,but I wonder how you can do just with javeME, maybe in thi