Error ORA - 01858 Apex report working / valid underlying the request

After two days of searching for these forums and AskTom, I think I need to put the following problem.

I have what seems to be a valid view of certain data that is created as follows (with apologies for the formatting - doesn't seem to be a way to use a fixed font here):

CREATE OR REPLACE VIEW "PRICING_CAPABILITY" OF THE FORCE. "" POW_EXEC_SUMM010 "("Item",
"Jul-09", "Aug-09", "Ms-09", "Oct-09", "Nov-09", "Dec-09", "Jan-10", "" "" "
'Feb-10', '10-Mar', 'Apr-10', '10-may', 'Jun-10', 'CDA')
AS
SELECT
"Item."
Sum (decode("ItemMonth",'Jul-09',"ItemValue",0)) "Jul - 09,
Sum (decode("ItemMonth",'Aug-09',"ItemValue",0)) "Aug - 09,
Sum (decode("ItemMonth",'Sep-09',"ItemValue",0)) "Sep - 09,
Sum (decode("ItemMonth",'Oct-09',"ItemValue",0)) "Oct - 09,
Sum (decode("ItemMonth",'Nov-09',"ItemValue",0)) "Nov - 09,
Sum (decode("ItemMonth",'Dec-09',"ItemValue",0)) "Dec - 09,
Sum (decode("ItemMonth",'Jan-10',"ItemValue",0)) "Jan - 10,
Sum (decode("ItemMonth",'Feb-10',"ItemValue",0)) "Feb - 10,
Sum (decode("ItemMonth",'Mar-10',"ItemValue",0)) "Mar - 10,
Sum (decode("ItemMonth",'Apr-10',"ItemValue",0)) "Apr - 10,
Sum (decode("ItemMonth",'May-10',"ItemValue",0)) "may-10,
Sum (decode("ItemMonth",'Jun-10',"ItemValue",0)) "Jun - 10."
Sum ("ItemValueOptional") AS "CDA".
Of
(
SELECT
"Received new proposals" AS "Item."
To_char(T1.scope_received,'Mon-RR') AS "ItemMonth."
Count (*) AS "Valeurelement."
10. AS 'SortOrder '.
Of
PRICING_CAPABILITY. POW_DATA t1
WHERE
T1.scope_received IS NOT NULL
AND extract it (FROM AN t1.scope_received) IN (2009,2010)
' AND t1.scope_received > = July 1, 2009.
GROUP BY
«New proposals received.»
To_char(T1.scope_received,'Mon-RR'),
10
UNION
SELECT
"New proposals complΘtΘ' AS"Item. "
To_char(T2.pricing_approval,'Mon-RR') AS "ItemMonth."
Count (*) AS "Valeurelement."
20. AS 'SortOrder '.
Of
PRICING_CAPABILITY. POW_DATA t1
JOIN PRICING_CAPABILITY. POW_LAST_HISTORY t2
WE
T1. POW_DATA_ID = t2. POW_DATA_ID
WHERE
T2.pricing_approval IS NOT NULL
AND extract it (FROM AN t2.pricing_approval) IN (2009,2010)
' AND t2.pricing_approval > = July 1, 2009.
GROUP BY
"End of new proposals."
To_char(T2.pricing_approval,'Mon-RR')
)
GROUP BY
"Item."
'SortOrder '.
ORDER BY
"SortOrder";

This view works, IE produced good results by operating (i.e. select * from...) with SQL Developer and SQL Workshop of the Apex section.

But when I try to produce an Apex report, use it as a data source, I get the following error:

ORA-01858: a non-digit character was found here where was waiting for a digital

The error is displayed before that appear part any report itself, that is to say the header of the region is displayed and then the error message.

So far, everything I could find on the forums or AskTom suggests that this is probably due to a problem. But the goal here is to summarize records dated by month, so I've extracted the elements year and date values, convert them to strings (using TO_CHAR) and then using the resulting chains of "MON - YY" to group the results.

If there is a better way, I'm interested.

But I do not understand why the Apex seems to be rejecting what appears to be valid results from a query of valid work.

Any ideas? Suggestions?

See you soon,.

Peter

You hit some implicit date conversion problem, probably caused by the preferred language of the browser in combination with the use of literals in the query.
It's a bad idea to use literals as July 1, 2009"in an environment like Apex, which may have different date forrmats according to the preferences of the user.

At the beginning of the rendered page Apex performs a SESSION of ALTER to change various NLS parameters.
You can see this by turning on debugging, look for NLS in the resulting output and take a look at the settings that the Apex is application.
The literal 1 July 2009"means the format DD-MON-YYYY mask, but regional settings applied through Apex may involve a different date format mask.

Flavio

------
http://oraclequirks.blogspot.com

Tags: Database

Similar Questions

  • Basic sql oca lession doubts 3 on error ora-01858

    SELECT last_name, hire_date
       FROM   employees
       WHERE  hire_date = TO_DATE('May 24, 1999', 'fxMonth DD, YYYY');
       
    talk about books, it will leave an error (ora-01858 which is a non-numeric error) but the statement being executed perfectly while
    by removing this "fx" - prefix gives an error called ora-01861.

    I'm confused here? can someone show me the right way?

    Hello

    The result depends on your NLS parameters. Yours probably are on something different than AMERICAN. In you language in may can then have a different number of characters (?)

    That's why you hit the ORA-01861 FX Format model with something else without. (Do not see why you should get ORA-01858, however)

    Concerning
    Peter

  • SQL error: ORA-01840: value not long enough for the format of the date of entry

    It is a delete SQL in a driver of demand, which gives no error, but does remove all the lines either. I have converted the removal 'from' to ' Select * ' and may see the following error:

    Select * FROM PS_GPDE_DV_TRIG40 WHERE EXISTS (SELECT FROM 'X'
    PS_GPDE_DV_ELIG_MO ELG WHERE ELG. EMPLID = PS_GPDE_DV_TRIG40. EMPLID AND
    ELG. EMPL_RCD = PS_GPDE_DV_TRIG40. EMPL_RCD AND TO_DATE (TO_CHAR (ELG. PRD_END_DT
    "YYYY"). TO_CHAR (ELG. PRD_END_DT, "MM"). '01', "YYYY-MM-DD") =.
    PS_GPDE_DV_TRIG40. GPDE_DV_EVT_EFFDT AND ELG. CAL_RUN_ID = "CAL_0812")
    Error report:
    SQL error: ORA-01840: value not long enough for the format of the date of entry


    The interesting thing is that if I attach a condition of emplid, then the SQL above does not give an error and return lines:

    Select * FROM PS_GPDE_DV_TRIG40 WHERE EXISTS (SELECT FROM 'X'
    PS_GPDE_DV_ELIG_MO ELG WHERE ELG. EMPLID = PS_GPDE_DV_TRIG40. EMPLID AND
    ELG. EMPL_RCD = PS_GPDE_DV_TRIG40. EMPL_RCD AND TO_DATE (TO_CHAR (ELG. PRD_END_DT
    "YYYY"). TO_CHAR (ELG. PRD_END_DT, "MM"). '01', "YYYY-MM-DD") =.
    PS_GPDE_DV_TRIG40. GPDE_DV_EVT_EFFDT AND ELG. CAL_RUN_ID = "FM_CG_0812")
    and emplid = "1234"

    now, if the number of lines is identified (by giving more number of emplids), it begins to give the error when the number of rows returned is greater than about 30. It is completely independent of what employee is used, so there is no question of data dependence.

    Function optimizer cost is off and a subquery nest is off on the init.ora file

    subquery UNNEST= false

    optimizercost_based_transformation = off


    I don't know if it has something to do with this problem.

    Explanations would be welcome!

    Thank you
    Vikas

    I think it is question of data combined with a not very sensible date format mask (it could fail when the null data, because of your concatenation with '01' and work when not null data).
    Have you tried with a simple TRUNC?

    Your code:

    ...TO_DATE(TO_CHAR(ELG.PRD_END_DT, 'YYYY') || TO_CHAR(ELG.PRD_END_DT , 'MM') || '01' , 'YYYY-MM-DD') =PS_GPDE_DV_TRIG40.GPDE_DV_EVT_EFFDT...
    

    After change:

    ...TRUNC(ELG.PRD_END_DT , 'MM') =PS_GPDE_DV_TRIG40.GPDE_DV_EVT_EFFDT...
    

    Nicolas.

  • Sound does not work. Under the properties of sounds and Audio, peripheral devices by default "sound" is grayed out.

    Original title: audio device problem
    just reinstalled windows xp.  Sound does not work.  Under the properties of sounds and Audio, peripheral devices by default "sound" is grayed out.  Microsoft Fix it, but the best I get is "do not set as default audio device.  The lack of sound recording does show a device.  Ideas?  BTW, I sometimes get static noises out of the speakers.

    Hello

    I suggest you to follow the steps from the link and check if it helps.

    No sound in Windows

    I hope this helps.

  • Development in error "Installer.exe has stopped working" while installing the new modem.

    Development in error "Installer.exe has stopped working" while installing the new modem. I try to install the ZTE AC8710 modem on my 32-bit windows vista (home edition) system, but whenever the facility is subject to the full I get the error 'Installer.exe has stopped working' and complete Setup doen't. The same error is hit when I try to uninstall the ZTE modem that is installed intestinal. The installation file has CD/install drivers for windows vista. Information below is displayed in the application event viewer for this error log. Help, please

    Log name: Application

    Source: Application error

    Date: 2010-01-03 02:04:50

    Event ID: 1000

    Task category: (100)

    Level: error

    Keywords: Classic

    User: n/a

    Computer: Monica-PC

    Description:

    Application Installer.exe, version 0.0.0.0, time stamp 0x4b208462, Installer.exe module, version 0.0.0.0, time stamp 0x4b208462, exception code 0 x 40000015, offset error 0x0002efec, 0xadc process id, failed failed application start 0x01cab8b5797299e1.

    The event XML:

    1000

    2

    100

    0 x 80000000000000

    309

    Application

    Monica-PC

    Installer.exe

    0.0.0.0

    4b 208462

    Installer.exe

    0.0.0.0

    4b 208462

    40000015

    0002efec

    ADC

    01cab8b5797299e1

    Hi Tonio saini,.

    Navigate to the location of the programs .exe file and right click on the .exe file, and then select run as administrator to install the modem.

    You can also check the following link, try the suggestions and check if that helps:

    http://social.answers.Microsoft.com/forums/en/w7hardware/thread/4ce21286-3a77-4A06-923c-889d657f8e33

    Hope this information is useful.

    Jeremy K
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

    If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • Error creating a salary. ORA-01422: exact fetch returns more than the requested number of rows in the hr_maintain_proposal_swi procedure insert_salary_proposal package

    Hi all

    We try to add new proposal for a salary of some employees from form August 1, 2015 (the Date of the beginning of employee)

    There is no existing salary proposal doesn't exist for these employees.

    We get below error.


    ORA-01422: exact fetch returns more than the requested number of rows in the hr_maintain_proposal_swi procedure insert_salary_proposal package


    Help, please.

    Thank you

    Tarun

    Hi John,.

    If it helps, take a look at the following note:

    ORA-01422 exact Fetch returns more than number of lines requested in Hr_maintain_proposal_swi (Doc ID 1673527.1)

    Kind regards

    Rajen

  • Stop the Modbus slave server works if have the request to address 0 frame (from

    Stop the Modbus slave server works if have the request at the address 0 (broadcast massage) frame

    Hi alexart,

    How do you define the address 0? When I put my server Modbus slave address 0 in the communication parameters, it is by default to 1, so I am not able to change the address 0.

    In addition, the server does not work? What is happening and how do you know? Is there an error code, or what else is happening?

    Kind regards

    Stephen S.

  • 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

  • Clear cache page after deletion to avoid errors ora-1403 Apex 5.01

    Hi all

    Always 'new' at Apex!

    I'm getting ORA-01403: no data available error after deleting a line in a 5.01 Apex form created from the interactive report + model form.

    After searching the forum, I found a direct reference to this situation:

    ORA-01403: no data available on the deletion of a record

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

    After deleting a record, you must clear the page cache. If you do not have the primary key item session state can keep the old value of the deleted record. The page loading process will try to retrieve this value from the table and meet no data found.

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

    Unfortunately, I do not know where or how to " " " clear the cache of the page ' after deleting a record.

    I saw the reverence to APEX_UTIL. CLEAR_PAGE_CACHE but I don't know where to use

    Others say still set the value of the key null column.

    The documentation of the Apex is said to use the URL:

    2.9.3.2.2 example: clear cache on a Page and passing an element value

    This example shows how to implement a form of update. It erases the existing information and sets the value of the element (usually a primary key).

    f?p=6000:6003:&APP_SESSION.::NO:6003:MY_ITEM:1234 

    This example:

    • Runs the application 6003 6000 page and uses the ID of the current session

    • Specifies to not show debug information ( NO )

    • Clears all values maintained by the current session for the items on page 6003 cache

    • Sets the State of an element called session MY_ITEM value1234

    But I do not know where or how to do that in the context of the key Suppr.

    Can someone point me in the right direction? I'm learning the Apex using as many integrates native as possible features.

    If clearing the cache of the page, that's what needs to be done after the removal of a line, would not these features have been integrated to the Delete key?

    Thank you

    Mason

    OK, after wandering in the desert for a while, I tried this approach to clear the cache once you press the button Delete and it doesn't seem to work.

    I created a new process called "Clear the cache" after the process of "line process of...» »

    The process to clear the cache was of type PL/SQL Code with the section of Code PL/SQL, the value 'APEX_UTIL. CLEAR_PAGE_CACHE (2); »

    I don't know if it's a good way to do this, or if the accepted practices, or what side effects will rain down on me that they are, but at least I got a result that has solved my immediate problem.

    So nice to click on delete and not greeted with an ORA-01403 error!

    Thanks to everyone who helped me in on it!

    Mason

  • Problem with error ORA-06502: PL/SQL: numeric string or the error value

    Hello

    I use a loop for the coil just out of data using 'dbms_output.put_line' and I get this error after a few records. I've been using and it happens at a different interval. He would have to do with the length of the question, I am trying to spool? Thank you.

    ORA-06502: PL/SQL: numeric string or the error value

    SD wrote:
    Hello

    I use a loop for the coil just out of data using 'dbms_output.put_line' and I get this error after a few records. I've been using and it happens at a different interval. He would have to do with the length of the question, I am trying to spool? Thank you.

    ORA-06502: PL/SQL: numeric string or the error value

    Yes, it's a mistake to dependent data.

    Manage: SD
    Status level: Beginner
    Join date: November 21, 2001
    Messages total: 289
    Total Questions: 189 (183 pending)

    Why wasting you time here when you get rarely answers your questions?

  • How can I add a straight line in a State of working capital under the heading of menu nav?

    Can we do this in Adobe Muse? I want to include a line that appears in the menu item, under the title of the menu, a mouse is reversed or tapped a finger on the item on a mobile device. For example the House with a line just below that will appear when I change the rollover State. I don't want to underscore. I mean a line of a few pixels to the bottom of a menu item name.

    You can do this by adding a line to the bottom of the menu items (remember to separate the four sides). You must do this for all four States - use the same color for the States you want to see the line, otherwise, the text will jump.

    David

    Creative muse

  • Error message "Windows Resource Protection could not perform the requested operation" when running SFC scan.

    As suggested, I tried to run scannow to repair Windows Vista.  I did, but then the scan only ran up to 76%, I received the message: Windows Resource Protection could not perform the requested operation. "How can I complete the scan and fix my Windows Vista computer

     

    Hi rdoran,
    You perform the steps from the administrator account?

    To determine which files can be repaired by the System File Checker tool, follow these steps:
    Step 1:
     
    NOTE: When SFC is running, it records its actions in the C:\WINDOWS\LOGS\CBS\CBS. NEWSPAPER. You can find specific entries of SFC searching [SR] tags in the newspaper.

    For how, see the SFC analysis details in the CBS. JOURNAL:
     
    * Open an elevated command prompt.

    * In the elevated command prompt, type findstr/c: "[SR]" %windir%\logs\cbs\cbs.log > %userprofile%\Desktop\sfcdetails.txt and press ENTER.
     
    * Close the elevated command prompt.

    * Click the sfcdetails.txt file just set your desktop to see the SFC scan details (those with the tags [SR]) to the CBS. NEWSPAPER.
     
    * You can safely delete the sfcdetails.txt file later if you wish.
    Reply back with the details in the log file.

    If it does not help to complete the scan, you can complete the steps below and check out them.

    You're able to boot in safe mode ?
     
    Step 2:
     
    For more information on how to log in to safe mode, see the following Microsoft article:
     
     
    If you're able to boot in safe mode, you can perform a scan of the file system (CFS) auditor.
     
    Reference:
     
    How to use the System File Checker tool to fix the system files missing or corrupted on Windows Vista or Windows 7
    http://support.Microsoft.com/kb/929833

    Step 3:

    In addition, you can connect to the command prompt and check the drive for errors, and check if that makes things more simple.
     
    At the command prompt, type the following command and press ENTER:
     
    Chkdsk /r
     
    Note: If bad sectors are detected when running check disk utility and attempt recovery of bad sectors is verified during the verification of the drive for errors, data in the bad sector can be lost as they tried to recover bad sectors.
     
     
    Aziz Nadeem - Microsoft Support

    [If this post was helpful, please click the button "Vote as helpful" (green triangle). If it can help solve your problem, click on the button 'Propose as answer' or 'mark as answer '. [By proposing / marking a post as answer or useful you help others find the answer more quickly.]

  • Parse error SFC "Windows Resource Protection could not perform the requested operation".

    Original title: my computer is messed up, and I'm unable to fix
     
    (1) double click on files will open in a new window
    (2) not possible to delete several records
    I tried to find and implement several solutions found on these forums for the 1st problem listed above. I tried to go into folder options and disable double click open files option and I tried to replace with original system files according to the http://answers.microsoft.com/en-us/windows/forum/windows_7-files/folders-open-in-new-window-despite-folder-option/5fba3897-7655-4068-8992-2d8b20063b3f and nothing has worked. I tried to run the command prompt in administrator mode to scan files using the command "sfc/scannow" and even that did not work, as when checking for 59%, it says "Windows Resource Protection could not perform the requested operation"
    I tried to create new administrator user accounts and the problem persists.
    I am also unable to delete some files. Internet Explorer would be my best and later example. I ran microsoft update, it installed IE10, and I was unable to start IE. I have not found in the list of uninstaller, so I tried to delete the files manually but Icould do not, that I needed approval from "TrustedInstaller". I played a bit with permissions and gave myself all permissions, with the exception of special permissions (which was grey), and then he said I needed the permission of 'Administrators' when I tried to delete the folder. Well, I'm on my administrator account, what the devil?
    I ran some virus scans of Malwarebytes Anti-malware, Virus of Sophos, Microsoft Security Essentials, and 2013 Bitdefender removal tool and removed something taken before implementing ALL the solutions mentioned above attempts. Try a system restore after that these scans completed, I discovered that I had no restore point before the installation of the Microsoft fix - it (i.e. when I was first trying to tackle these questions)
    Is there something I can do?

    You could make a backup of the image to a DVD or disk.

    Renee

  • Util error message advising apex-> report error: ORA-01460: unimplemented

    Hello

    I run the Util Apex Advisor and everythingis ok, except that I get this error shown below the result of the filter:

    error report:
    ORA-01460: dead letter or unreasonable conversion requested

    Request Express 4.0.2.00.09
    DB 11 XE

    I don't get this error anywhere else.

    Any suggestions?

    Thank you

    Daniel

    Seems to be a bug in database: + {: identifier of the thread = 1100619} +.

  • Error ora-02019 in PL/SQL call in the apex, but not in a SQL Client

    Hello

    I encountered a strange problem. I have a process page type PL/SQL that runs on submit a form.

    This process calls a PL/SQL package function.

    When I run the PL/SQL Code from a SQL, for example SQL Navigator Client it works without problems.

    When trying to run from the APEX, it is always fails with the error:

    ORA-02019: description of the connection to the remote database not found

    It's the SAME code in both situations.

    It's the process code:

    DECLARE

    v_result INTEGER. v_result_msg VARCHAR2 (4000);

    v_ref_date DATE; v_reset INTEGER.

    BEGIN

    -Prepare the arguments

    v_ref_date: = TO_DATE (: P73_REFERENCE_DATE, ' DD/MM/YYYY');

    v_reset: =: P73_RESET;

    -Use the feature

    TRC.trc_jobs.xade_daily_job (v_ref_date, v_reset, v_result, v_result_msg);

    END;

    When I debug Apex I trace to the bottom of the error, in a job that makes a join with a table in a database link.

    It is the offending function:

    FUNCTION (p_series_name IN VARCHAR2, p_date AS get_series_cfi_code,

    p_date_active_flag in FULL)

    RETURN VARCHAR2

    IS

    v_cfi_code instrument_type.full_cfi_code@dl_herds%TYPE;

    CURSOR c_get_series_cfi_code IS

    SELECT it.full_cfi_code

    I, instrument_type@dl_herds INSTRUMENTS it

    WHERE i.series_name = p_series_name

    AND ((i.expiration_date = p_date AND p_date_active_flag = 0) OR)

    (i.expiration_date > = p_date AND p_date_active_flag = 1))

    AND i.product_id2 = it.id

    ORDER BY i.expiration_date;

    BEGIN

    OPEN c_get_series_cfi_code.

    SEEK c_get_series_cfi_code INTO v_cfi_code;

    CLOSE C_get_series_cfi_code;

    RETURN v_cfi_code;

    END get_series_cfi_code;

    No idea why this is happening?

    I think to reproduce the table locally to eliminate the use of dblink as a last resort.

    APEX Version: 4.2.4.00.08

    Database version: 12.1.0.1.0

    NLS: UTF - 8

    TIA,

    Dionisis

    Are you sure that the dblink is accessible from the scheme of the analysis of the application? Run the code in your sql client in the same pattern?

Maybe you are looking for

  • Wireless game controllers?

    Hi there, people Can I use a third-party wireless gamepad that is NOT certified IFM, that is to say, an XBox 360, One, PS3, PS4? How about PDP AfterGlow PS3 wireless controller? What is the minimum Bluetooth protocol for connectivity: 2.0 and more? N

  • Firefox does not open my email account

    Firefox does not open my Yahoo email account, I open it with another browser, Internet Explorer or Chrome, but with Firefox not more! This has happened Each time Firefox opened is 2 months ago

  • locked out using my Windows Mail by accident.

    How can I know it as the user name and password is for my Windows Mail? I've never had to use it and can't remember what they are. How to recover or get news? [Moved from the community centre of Participation]

  • can I reinstall vista without installation disc

    Ive lost the installation disc toshiba satellite

  • 1c55nr G6 cooling fan

    Fan cooling in my g6-1c55nr made a lot of noise and the motherboard seems to be a bit warmer there must be (in general @ 165 (F), so I think I need to replace the fan... problem is I find two different wiring for this model configurations.  Is a thre