-You also get an invalid identifier error when executing this query sql for a data model, but not in TOAD/SQL Developer?

Hello OTN.

I don't understand why my sql query will pass by in the data model of the BI Publisher. I created a new data model, chose the data source and type of Standard SQL = SQL. I tried several databases and all the same error in BI Publisher, but the application works well in TOAD / SQL Developer. So, I think it might be something with my case so I'm tender hand to you to try and let me know if you get the same result as me.

The query is:

SELECT to_char (to_date ('15-' |)) TO_CHAR(:P_MONTH) | » -'|| (To_char(:P_YEAR), "YYYY-DD-MONTH") - 90, "YYYYMM") as yrmth FROM DUAL


Values of the variable:

: P_MONTH = APRIL

: P_YEAR = 2015

I tried multiple variations and not had much luck. Here are the other options I've tried:

WITH DATES AS

(

Select TO_NUMBER (decode (: P_MONTH, 'JANUARY', '01',))

'FEBRUARY', '02',.

'MARCH', '03'.

'APRIL', '04'

'MAY', '05'.

'JUNE', '06'.

'JULY', '07',.

'AUGUST', '08'.

'SEPTEMBER', '09'.

'OCTOBER', '10',.

'NOVEMBER', '11'.

"DECEMBER", "12."

'01')) as mth_nbr

of the double

)

SELECT to_char (to_date ('15-' |)) MTH_NBR | » -'|| (TO_CHAR(:P_YEAR), 'DD-MM-YYYY') - 90, "YYYYMM")

OF DATES

SELECT to_char (to_date ('15-' |: P_MONTH |)) » -'|| ((: P_YEAR, 'MONTH-DD-YYYY')-90, "YYYYMM") as yrmth FROM DUAL

I'm running out of ideas and I don't know why it does not work. If anyone has any suggestions or ideas, please let me know. I always mark answers correct and useful in my thread and I appreciate all your help.

Best regards

-Konrad

So I thought to it. It seems that there is a bug/lag between the guest screen that appears when you enter SQL in the data model and parameter values, to at model/value data.

Here's how I solved my problem.

I have created a new data model and first created all my settings required in the data model (including the default values without quotes, i.e. APRIL instead "Of APRIL") and then saved.

Then I stuck my sql query in the data model and when I clicked ok, I entered my string values in the message box with single quotes (i.e. "in APRIL' instead of APRIL)

After entering the values of string with single quotes in the dialog box, I was able to retrieve the columns in the data model and save.

In the data tab, is no longer, I had to enter the values in single quotes, but entered values normally instead, and the code worked.

It seems the box prompted to bind the values of the variables when the SQL text in a data model expects strings to be wrapped in single quotes, but no where else. It's a big headache for me, but I'm glad that I solved it, and I hope this can be of help to other institutions.

See you soon.

Tags: Business Intelligence

Similar Questions

  • Error when executing the convertersamples.exe for converter Standalone command line 5.5

    Hello

    I use the latest SDK Standalone.  I use the default convertersample file.  Here is my file of properties.

    physicalsource. Address =

    physicalsource. UserName = *.

    physicalsource. Password = *.

    physicalsource. OSTYPE = windowsOs

    physicalsource.agentport = 9089

    physicalsource. Thumbprint =

    physicalsource.reboot = false

    vcserver. Address =

    vcserver. Thumbprint =

    vcserver.username = root

    vcserver. Password = *.

    conversion.job.Name = 1

    conversion.job.Description = This is a work of P2V Windows Live

    conversion.vmtocreate.Name = VM15

    conversion.vmtocreate.vCPU = 1

    conversion.vmtocreate.Memory = 4098

    converterserver. Address =

    converterserver. UserName = Administrator

    converterserver. Password = *.

    After that I run the following command

    c:\Users\Administrator\Desktop\P2V\Upload\ > ConverterSamples.exe submitwinp2vjob.properties

    I get the following error

    To proceed with the connection to the destination server?

    (Enter [y] ES, [n] o or [c] ancel): > y

    Caught exception:

    Name: WebException

    Message: The operation has timed out

    Trace: At System.Web.Services.Protocols.WebClientProtocol.GetWebResponse (we

    bRequest request)

    at System.Web.Services.Protocols.HttpWebClientProtocol.GetWebResponse (WebRequ

    application of the East)

    at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke (String methodN

    SOUL, Object [] parameters)

    to (Ma ConverterApi.ConverterService.ConverterServerConversionManagerCreateJob

    nagedObjectReference _this, spec, Obj ConverterServerConversionConversionJobSpec

    extraInfo ect)

    at ConverterSamples.ConverterConnection.SubmitJob (ConverterServerConversionCo

    nversionJobSpec jobSpec)

    ERROR: Impossible to present the work of P2V Conversion.

    But when I opened the converter I see a running job where it says it will take 1 day 19 hours to complete.

    And I have the following queries

    1. Why do we say it will take so long?

    2. If the work has successfully started why do I get the error when I run the above command.

    3. also the vcenter we use support vmx 8 but the new converter creates vmx10. So, what is the setting in the properties file to specify the converter to use vmx 8.

    Any help would be very useful.

    Thanks and greetings

    Debs

    Hello

    The time-out and the conversion time long expected that both point to a slow network. Check your environment.

    The hardware version of destination is not in the properties file, you must change the code. Search for BuildCloningParams in the program, cs and set targetVMSpec.hardwareVersion to 'vmx-08'

    In general I advise to use improved samples (Re: samples improved c# SDK) they are much more configurable, but in the case of the destination hw version also are not.

    Concerning

    Plamen

  • We get a "invalid number" error when the Xref database of fill

    Hi all

    My table (XREF_DATA) target has the following parameters and its respective data types: -.

    XREF_TABLE_NAME
    XREF_COLUMN_NAME
    ROW_NUMBER
    VALUE
    IS_DELETED
    LAST_MODIFIED
    LAST_ACCESSED

    All are varchar2

    But when I am executing the interface and observing the results then this error pops up:-1722: 42000: java.sql.SQLException: ORA-01722: invalid number to the stadium
    Insert flow I$ Table(I$_XREF_DATA)

    I used CKM, LKMSql for Oracle and the incremental update of the IKM Oracle)


    My target table has all the varchar2 data type, then why it gives this error number invalid?



    Kind regards
    Sourav

    Hello

    You can copy the SQL code generated by ODI (for the stage which gives this error) and then try to run it through any SQL client like toad / developer sql etc.
    This will help you find erroneous data.

    Also is LAST_MODIFIED and LAST_ACCESSED have as VARCHAR2 data type? The name it seems that it is lying do DATE.

    Thank you
    Fati

  • Error when executing a query that has measures of these two facts

    Hi guys,.

    I have three tables. 1 dimension table D1 and two tables of facts F1 and F2.

    D1 has columns-> Accountid, account number
    F1 has columns-> Accountid, current reserve1, Balance Type
    F2 has columns-> Accountid, 2 courses

    Now, I want to run a report

    D1. Account number, F1. Current reserve1, F2. Course 2, F1. The type of balance.

    When I run this report while I'm values only for the F1. Current reserve1 and F2. 2 current is Null.

    But when I remove the F1. Balance Type of query, I get the two F1. Current reserve1 and F2. 2 current.

    Can someone help me with this.

    Thank you
    Rondo.

    RONDO says:
    Hi guys,.

    I have three tables. 1 dimension table D1 and two tables of facts F1 and F2.

    D1 a columns---> Accountid, account number
    F1 has columns---> Accountid, current reserve1, Balance Type
    F2 a columns---> Accountid, 2 courses

    Now, I want to run a report

    D1. Account number, F1. Current reserve1, F2. Course 2, F1. The type of balance.

    When I run this report while I'm values only for the F1. Current reserve1 and F2. 2 current is Null.

    But when I remove the F1. Balance Type of query, I get the two F1. Current reserve1 and F2. 2 current.

    Can someone help me with this.

    Thank you
    Rondo.

    Hi Rondo,

    Balance column come from the same logical source than the current balance of F1? If so, then compare the levels of content at the level of the column against the Dimension to ensure that they are on the same granularity.

    Thank you.

  • Access to the Internet and get a "atl100.dll" error when you try to use Firefox

    I just reinstalled Vista Home Premium and everything was going well for two days, but I can not access the internet regardless of the browser that I use and when I open Firefox, I got an error of "atl100.dll", I am afraid that my files cd, especially the .dll files can be altered, where can I find a good (and costs nothing) copy of the file atl100.dll? Please help as soon as possible. Thank you!!

    Original title: Re-installed Vista Home Premium and cannot access the internet & get a "atl100.dll" error when trying to use Firefox and IE just is not access to the internet either

    Hello

    1 did you changes to the computer before the show?

    2. What is the full error message?

    3. who is the antivirus installed on the computer program?

    4 are you using wired or Wi - Fi to access the Internet?

    5. What is the version of Internet Explorer installed on the computer?

    The possible causes:

    • ATL100.dll file is missing, as it was accidentally deleted from your computer
    • ATL100.dll file is damaged by viruses and your computer cannot access the file.
    • ATL100.dll associated with registry files is corrupt and obsolete.

    Perform the steps:

    Method 1: Perform a SFC scan on your computer to fix the corrupt dll files.

    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

    Method 2: Run a scan antivirus on your computer.

    www.Microsoft.com/Security/Scanner

    Note: If infections are detected during the scan, there is a risk of data loss because infected files will be deleted.

    Method 2: Reset of internet explore and check. (If you use Internet Explorer)

    How to reset Internet Explorer settings

    http://support.Microsoft.com/kb/923737

    Warning: Reset the Internet Explorer settings can reset security settings or privacy settings that you have added to the list of Trusted Sites. Reset the Internet Explorer settings can also reset parental control settings. We recommend that you note these sites before you use the reset Internet Explorer settings.

    For more information, see the links:

    The problems of Internet connection

    http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-Internet-connection-problems

    Windows wireless and wired network connection problems

    http://Windows.Microsoft.com/en-us/Windows/help/wired-and-wireless-network-connection-problems-in-Windows

    I hope this helps.

  • Get the 194:6 error when you try to deactivate CS4

    I get an 194:6 error when I am trying to deactivate CS4.

    I can't find anything online to CS4 but found this solution for CC:

    1. close the CC application
    2. go to the support/adobe folder
    3 try to delete the content in the files SLCache and SLStore files

    4 run the CC application
    5. try to connect

    Can I use these same steps or what should I do to turn off?

    Thank you!

    Please contact the Support from Adobe on the Customer Contact

  • Get a zip code error when your book order

    Getting a zip code error when your book order is exact zip code th for my address.

    In the Canada.

    Help

    You order the Canadian Apple store online? If this isn't the case, then you must change your store site online on the Canadian site. Scroll down to the bottom of the page where you should find an icon of circled on the right corner flag. Click it, and then select the Canadian store in the list and re - buy article. It must now accept Canadian postal codes rather than postcodes American.

  • I get the msvcr100.d11 error when I try to open Lightroom 4.

    I get the msvcr100.d11 error when I try to open Lightroom 4. What can be done. I tried MS Fixit, it uninstalled and said it fixed the registry, but when I reinstalled LR4 he still gave me the missing erroe of MSV CR100.d11.

    What to do next?

    Thank you

    CAL

    You have Visual C++ 2010 Redistributable Package installed.

    If not, you can download the latest version here: http://www.microsoft.com/download/en/details.aspx?id=26999

  • I can't uninstall nero programes from my computer it install to properly dose not work and I get a critical system error when I try to burn lightscribe cover__

    I can't uninstall nero programes from my computer it install to properly dose not work and I get a critical system error when I try to burn the lightscribe cover

    http://www.Nero.com/enu/tools-utilities.html

    Uninstalling a Nero product did not work properly?
    Use Nero General CleanTool to delete all remaining Nero entries from your system.

    Read the above info.

    See you soon.

    Mick Murphy - Microsoft partner

  • I get the Windows 0xc0000135 error when opening new tabs in Google Chrome. Help!

    I get the Windows 0xc0000135 error when opening new tabs in Google Chrome. Help!

    It gets really annoying. The very first 2 or 3 times I opened a new tab, I get this error message and
    I have to close and open a new one until I get a tab that works. Anyone who can help is greatly appreciated.
    -Eric

    Hi EricKelso,

    The question you have posted is related to Google Chrome and would be better suited to the community of Google chrome. Please visit the link below to find a community that will support what ask you
    http://www.Google.com/support/forum/p/chrome

  • Why I get an ORA-04052 error when I try to compile a procedure?

    Hello
    The following procedure I get an ORA-04052 error when I try to compile the following procedure.
    CREATE OR REPLACE PROCEDURE APPS.Find_String (
     pin_referenced_name IN dba_dependencies.referenced_name%TYPE) 
    
    IS
    
    cursor cur_get_dependancy
    is
    SELECT distinct owner, name, type 
      FROM [email protected]        -- prod.world 
     WHERE lower(referenced_name) = lower(pin_referenced_name) --'ftbv_salesrep_all_1d' 
       AND referenced_type <> 'SYNONYM'
       AND owner <> 'SYS'
     order by name;
     
    v_owner  varchar2(40);
    v_name   varchar2(50);
    v_type   varchar2(40);
     
     
        BEGIN
    
           dbms_output.put_line(upper(pin_referenced_name)||' is found in the following objects.');
           dbms_output.put_line(' ');
           dbms_output.put_line(RPAD('OWNER', 30, ' ')||RPAD('NAME', 60, ' ')||RPAD('OBJECT TYPE', 30, ' '));
           dbms_output.put_line('-------------------------------------------------------------------------------------------------------------------');
    
            FOR i IN cur_get_dependancy
            LOOP
                v_owner := RPAD(i.owner, 30, ' ');
                v_name  := RPAD(i.name, 45, ' ');
                v_type  := RPAD(i.type, 30, ' ');
                
               
                dbms_output.put_line(v_owner ||v_name|| v_type);
    
            END LOOP;
    
    END find_string;
    I use the [email protected] link. Commented compiles it procedure for other links of database used in the cursor, including the one to the right of the code 'prod.world '.

    What is even more strange is that I took the SELECT statement
    SELECT distinct owner, name, type 
      FROM [email protected]        -- prod.world 
     WHERE lower(referenced_name) = lower(pin_referenced_name) --'ftbv_salesrep_all_1d' 
       AND referenced_type <> 'SYNONYM'
       AND owner <> 'SYS'
     order by name;
    the procedure and he ran on the command line by using the link to @pinp.world, the SQL statement is fine. But when I tried to compile the procedure above to this exact same SQL query with the same exact link I get the following string of errors.
    ORA-04052: error occurred when looking up remote object [email protected]
    ORA-00604: error occurred at recursive SQL level 1
    ORA-02068: following severe error from PINP
    ORA-03113: end-of-file on communication channel
    How the link can work very well in a regular SQL but then cause an error when its code compiled in that otherwise compile correctly when you use any link, or even just a simple database. Does anyone have any suggestions?

    Hello

    Good thounght, but no, there is no privilege SELECT ANY VIEW; SELECT ANY TABLE includes views and materilaized.

    I suspect that the problem is something specific to the data dictionary. I have just connected as SYS and granted SELECT ANY TABLE to another user with minimum privileges, X. X, ALL_VIEWS included so all views dba_, including the dba_dependencies. However, X was still unable to dba_dependencies the query either in SQL * more or PL/SQL.

  • Error when deploying to the Simulator application: BUILD FAILED StandardInstall does not exist.

    I get the above error while deploying the blackberry Simulator application. I have
    Download the Java SDK 1.7, Apache Ant, BlackBerry WebWorks Smartphone SDK (OS 7 or earlier) and
    PhoneGap 2.8.1.I put in JDK and Ant path in environment variables.

    The project is to build successfully in the directory of the project with the command "ant blackberry construction."

    Generation of blackberry D:\ProjectBB>ant
    BuildFile: D:\ProjectBB\build.xml
    BlackBerry:
    Update:
    generate-cod-name:
    [echo] Generated name: __NAME__.cod
    clean:
    [Remove] Delete the D:\ProjectBB\build directory
    package-app:
    [mkdir] Created dir: D:\ProjectBB\build\widget
    [copy] Copy of 22 files to D:\ProjectBB\build\widget
    [zip] Building zip: D:\ProjectBB\build\__NAME__.zip
    Update:
    [exec] [INFO] Parsing of the command line options
    [exec] [ERROR] Invalid application - archive name of archive is not valid
    BUILD SUCCESSFULLY
    Total time: 4 seconds

    While deploying Simulator using 'ant blackberry simulator load' command in the command prompt, it
    shows build failed with the error message "StandardInstall does not exist.

    Responsible for blackberry D:\ProjectBB>Ant-Simulateur
    BuildFile: D:\ProjectBB\build.xml
    BlackBerry:
    Load Simulator:
    generate-cod-name:
    [echo] Generated name: __NAME__.cod
    clean:
    [Remove] Delete the D:\ProjectBB\build directory
    package-app:
    [mkdir] Created dir: D:\ProjectBB\build\widget
    [copy] Copy of 22 files to D:\ProjectBB\build\widget
    [zip] Building zip: D:\ProjectBB\build\__NAME__.zip
    Update:
    [exec] [INFO] Parsing of the command line options
    [exec] [ERROR] Invalid application - archive name of archive is not valid
    Load Simulator:
    [echo] Simulator directory = C:\Program Files\Research in Motion\BlackBerry WebWorks SDK
    2.3.1.5\simpack\7.0.0.318
    [echo] Simulator directory = C:\Program Files\Research in Motion\BlackBerry WebWorks SDK
    2.3.1.5\simpack\7.0.0.318
    [echo] Simulator of executable = C:\Program Files\Research in Motion\BlackBerryWebWorks SDK
    2.3.1.5\simpack\7.0.0.318/9930.bat
    [echo] All simulators of closing...
    [exec] No sessions running.
    [exec] Result: 1
    [echo] MDS directory = C:\Program Files\Research in Motion\BlackBerry WebWorks SDK 2.3.1.5/mds
    BUILD FAILED
    D:\ProjectBB\build.XML:51: The following error occurred when executing
    This line:
    D:\ProjectBB\blackberry.XML:153: D:\ProjectBB\build\StandardInstall does not exist.

    Total time: 7 seconds

    Please help me solve this problem

    Thanks in advance

    For the version of the SDK BlackBerry Smartphone (i.e. BBOS), please note that you need JDK1.6 and there are also 32 bits.

    Can you please try this change (uninstall previous versions of the JDK/JRE) and only install JDK1.6 32-bit (it will automatically install the JRE too.)

    As well, I see a problem in the community newspapers:

    [exec] [ERROR] Invalid application - archive name of archive is not valid

    There seems to be a problem with the name of the ZIP file:
    __Name__.zip

    Can you please try to remove the symbols _ the name of the archive?

  • LabVIEW VI error when executing DLL functions

    Hello OR developers!

    I have driver for windows application created by Jungo WinDriver program for PCI-E card.

    Application works very well. I have edited and compiled the project as DLL manual suite.

    I can read successfully resource information of the PCI-E card such as bars of memory, its size, disruption of functions etc.

    Next, I need to perform DMA transfers. The application supports these functions and works.

    I followed feature-by-feature and see if my code works correctly and he returned to Labview information - successful execution of the function.

    First of all is strange that whenever I close VI I have error message:

    "LabView.exe has encountered a problem and needs to close. We are sorry for the inconvenience ".

    fDebug: 0 Offset: 0083002e

    Exception information

    Code: 0xc0000005 flags 0x0

    Address record 0 x 0 0x0000000000c3002e

    ......................................................................

    ......................................................................

    But when I'm building application EXE of VI - this error do not occur.

    Maybe someone can help me or point on the string I managed properly resources LabView and C?

    LabView block sometimes after a few seconds after successful execution of VI.

    The code below:

    If an application calls a DLL written in a given buffer, the application should allocate memory buffer and release it afterwards. This is the case for all languages, not only for the LV for create a buffer tank one way would be to create a U8 array with sufficient size and to convert the table to a string using the function 'Type Cast'. See the documentation for the DLL for the minimum size of the buffer. Maybe the DLL returns an error code if the buffer size is to small. If you can get the maximum size of the tank messages, add 1 (for the trailing NULL character) as the size of the array U8 and you should be on the safe side. Same for the other settings, especially for tables.

  • Error when calling bean 'delivery': waiting for reply has expired.

    Hello

    I run a process that currently catches an exception since a partnerlink. When the exception is caught, I send an email and the process stops. When I submit an application since the BPEL console, I have to wait the JTA timeout before the return of the page. However, the instance goes smoothly and I got the email before the time-out occurs. That's what I see in the newspapers. When I look at the audit workflow and activity, all activities were time-stamped before throwing exception. Has anyone seen this problem or knows what is happening. Is there a problem of in a catch block or catch-all mail?

    < 2009-04-19 22:33:41, 859 > < ERROR > < iCareTest.collaxa.cube > < BaseCubeSessionBean::logError > error when the bean 'delivery': waiting for reply has expired. The conversation id is cf9324c9be114336:513ede58:120c17e1922:-7 fc 0. Please check the detail process instance.
    com.oracle.bpel.client.delivery.ReceiveTimeOutException: waiting for reply has expired. The conversation id is cf9324c9be114336:513ede58:120c17e1922:-7 fc 0. Please check the detail process instance.

    Thanks in advance

    Jim

    There is no question why it happens to expire is because you don't have a response to the client in your tote.

    If you look at your processes, you will see that the default response is in the main field of application. When the Tote is called this response is in the past, that's why no reply is sent.

    Please answer in your catch all back to the client and it will work.

    see you soon
    James

  • New to OAF - oracle.jbo.RowCreateException: Houston-25017: error when creating a new entity for HeaderTableEO line

    Hi I'm new to OFA. I am trying to create a master-details form based on the example given on Youtube (but using my own paintings).

    I have already defined in table colums.

    AM code is as follows:

    Public Sub CreateEmailHdrRow()

    {

    xxVmmcSendEmailDefHdrVOImpl vo = getxxVmmcSendEmailDefHdrVO1();

    String s = "Test";

    Line = vo.createRow ();

    If (!) VO.isPreparedForExecution ())

    {

    vo.setMaxFetchSize (0);

    }

    row.setAttribute ("EmailDefName", s);

    row.setNewRowState (Row.STATUS_INITIALIZED);

    }

    When I run, the error occurs at the level of line (rank rank = vo.createRow ();)

    Error message: oracle.jbo.RowCreateException: Houston-25017: error when creating a new entity for xxVmmcSendEmailDefHdrEO line.

    Any help is appreciated.

    Anjan,

    Please check that the type of the CreatedBy attribute is a number representing the id in FND_USER and not the actual text of the name of the user. Standard Oracle columns that use a number for this value not varchar.

    Kristofer Cruz

Maybe you are looking for

  • Looking for a SuperDrive drive as a device for Blu - ray

    I'm looking for a SuperDrive as device for Blu - Ray player. I'm looking for something that is portable and reliable. Someone at - it recommendations for me? I want to use it with my Macbook Pro and perhaps with an iMac. Thank you!

  • HP probook 450 g2: hp simplepass does not

    I bought a brand new hp probook 450 g2 pc laptop last week.and than th pass simple version 6 nuts also, I installed his does not not the sensor I does not please hep to solve this problem

  • IDF302 SMAR

    NOR-FBUS Configurator works with a SMAR IDF302? I have not found any specfic DDs? I would avoid using the SMAR System320/SYSCON software. IDF302 bridge has 10 MPS Eithernet and RS232 port.

  • HP Pavilion dv7: Wireless connection problems

    My laptop says it's connected wireless, with the signal strength excellent, however when I click on search via IE or Chrome, it indicates that it is not connected to the internet. On the network and sharing Center, this also indicates that it is not

  • Trying to format Vista since the repair screen (command prompt)

    I'm trying to find an ad that says how to format the hard drive of the repair screen during installation. He explained how to format the drive by going to the command prompt while trying to repair the installation. I can access the command prompt, bu