'IN 'operator not working in BI publisher report

Hi,
I am using BI publisher10.1.3.4.1. I am using 'IN' operator in my SQL query embedded in data template. But I am not getting the expected result. When only single value is being passed to the :storeID parameter then the query works but when I pass multipe comma separated values like '1111,0892,6754,0997 ' then it doesn't work.
The SQl query is as follows:
select
REGION ,
UNIT ,
STORE,
REGISTER,
sum(CASH_TRN) cashTrxn,
sum(CHCK_TRN) checkTrxn,
sum(CRDT_TRN) creditTrxn,
sum(CASH_SALES) cashSales, sum(CHCK_SALES) checkSales, sum(CRDT_SALES) creditSales,
sum(TOTALNOTRXN) trxnTotals, sum(TOTALAMOUNT) amtTotal
from
POSS_SALES_SUMMARY_RPT
where ID_STR_RT in (:storeID)
group by REGION,UNIT,STORE,REGISTER
Hard coding the same query with these values also works fine.
Example: Can you please tell me s there any issue in passing String value (like 1111,0892,6754,0997) in parameter.
select
REGION ,
UNIT ,
STORE ,
REGISTER ,
sum(CASH_TRN) cashTrxn,
sum(CHCK_TRN) checkTrxn,
sum(CRDT_TRN) creditTrxn,
sum(CASH_SALES) cashSales, sum(CHCK_SALES) checkSales, sum(CRDT_SALES) creditSales,
sum(TOTALNOTRXN) trxnTotals, sum(TOTALAMOUNT) amtTotal
from
POSS_SALES_SUMMARY_RPT
where ID_STR_RT in(1111,0892,6754,0997)
group by REGION,UNIT,STORE,REGISTER

Have you find the solution for this? I think that I have an look like problem. I want that, when the parameter is null, query return all values. Like this:
where ((:P_Store IS NULL) OR (store in (:P_Store)))
Can please help me with this?
Thanks

Similar Messages

  • Date comparision not working in BI-Publisher in one scenario.

    Hi,
    Iam using sqlquery as a datamodel for BI-Publisher report. I have a requirement that the input parameters startdate and endate are Date types. When the user enters startdate and enddate and clicks on view, the report should show data which falls in between those dates.
    Here is the sample query i used.
    select * from
    table1
    where begintime >= :p_StartDate and begintime <=:p_EndDate
    Here begintime is a timestamp and p_StartDate and p_EndDate are just dates. So when comparing begintime with p_StartDate/p_EndDate, i guess its taking default time from that date and because of that the comparision is failing in 1 case. i.e, In the above query, though the comparision operator is >= or <= , ultimately > or < is getting effective. So to acheive the actual result, I need to give one day more for start and end dates.
    However I found a way to acheive this without adding extra day to both the dates. Here it is :
    select * from table1 where
    ( begintime >= to_timestamp(to_char(:p_StartDate) || '00 00 00', 'DD Mon YYYY HH24 MI SS')) and
    ( begintime <= to_timestamp(to_char(:p_EndDate) || '23 59 59', 'DD Mon YYYY HH24 MI SS'))
    But the above is working in sqleditor like jdeveloper database navigator. But not working in BI-Publisher.
    BI-Publisher is throwing error saying
    "ORA-01830: date format picture ends before converting entire input string"
    Please help as to how to go about this problem or any alternative solution.
    Thanks & Regards,
    -Vijay-

    Hi,
    I think it will be fine to trunc the begin time since :p_StartDate and p_EndDate are just dates without time stamp
    i.e:
    select * from
    table1
    where trunc(begintime) >= :p_StartDate and trunc(begintime) <=:p_EndDate;
    any problem with this.Please share the thought.
    Best Regards,
    mahi

  • Scheduling is not working in BI Publisher

    Hi all,
    I am trying to schedule the report on BI publisher it's giving the following error:
    oracle.apps.xdo.servlet.scheduler.ProcessingException: java.sql.SQLException: Listener refused the connection with the following error:
    ORA-12519, TNS:no appropriate service handler found
    The Connection descriptor used by the client was: localhost:1521:xe (I am using oracle database 10g and obiee 10.1.3.2).
    I have followed the instructions provided in the link "Exploring Advanced Features of Oracle Business Intelligence Publisher"
    Created mail server as instructed in the link ...
    Problems are:
    Unable to connect incoming and outgoing mail servers. I have used my machine host name i.e user as both incoming and outgoing server (u.ser.com)
    also Scheduled jobs are not working in BI publisher.
    Please let me know the solution for the above problem.
    regards
    chandra kanth.

    gurus,
    pls answer the above one, as i am unable to proceed further.
    regards
    chandra kanth.

  • Why Dynamic Parameter is not working, when i create report using stored procedure ?

    Post Author: Shashi Kant
    CA Forum: General
    Hi all
    Why Dynamic Parameter is not working, when i create report XI using stored procedure ?
    Only i shaw those parameters which i used in my stored procedure, the parameter which i create dynamic using stored procedure
    is not shown to me when i referesh the report for viewing the results.
    I have used the same procedure which i mention below but can not seen the last screen which is shown in this .
    ============================================================================================
    1. Select View > Field Explorer2. Right-click on Parameter Fields and select New from the right-click menu.3. Enter u201CCustomer Nameu201D as the name for your parameter4. Under u201CList of Valuesu201D select u201CDynamicu201D5. Under the Value column, click where is says u201Cclick here to add itemu201D and select Customer Name from the drop-down list. The dialog shown now look like the one shown below in Figure 1. Click OK to return to your report design.
    Dynamic Parameter Setup6. Next, select Report > Select Expert, select the Customer Name field and click OK.7. Using the drop-down list beside select u201CIs Equal Tou201D and using the drop-down list, select your parameter field (it should be the first field). 8. Click OK to return to your report design and see the parameter dialog.The parameter dialog will appear and show you a dynamic list of values that is updated each time your run your report. It couldnu2019t be easier! In our next tutorial, we will be looking at how to use this feature to create cascading parameter fields, where the values are filtered by the preceding selection.
    Dynamic Parameters in Action
    My question is that whether dynamic parameter is working with storedprocedure or not.
    When i added one table and try to fetch records using dyanmic prameters. after that i am not be able to find the dynamic parameter option when i referesh my report.
    One more thing when i try the static parameter for my report, the option i see when i referesh the screen.
    Please reply soon , it's urgent
    Regards
    shashi kant

    Hi Kishore,
    I have tested the issue step by step by following you description, while the first issue works well in my local environment. Based on my research, this can be caused by the lookup expression or it indeed return Male value based on the logic. If you use the
    expression below, it will indeed only return the Male record. So please try to double-check the record in the two datasets and the expression in your environment:
    =lookup(first(Fields!ProgramID.Value,"DataSet1"),Fields!ProgramID.Value,Fields!Gender.Value,"DataSet2")
    As to the second issue, please try to use the following expression:
    =Count(Lookup(fields!ProgramID.value,fields!ProgramID.value,fields!Gender.value,"DataSet2"))
    Besides, if this issue still exist, in order to trouble shoot this issue more efficiently, could you please post both the .rdl  file with all the size properties to us by the following E-mail address?  It is benefit for us to do further analysis.
    E-mail: [email protected]
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Dashboard link is not working from BI Publisher

    Dashboard link is not working from BI Publisher. Please let me know How to fix this problem.

    Please somebody guide me.
    Dashboard link is working fine from the Apps Server Machine. But the link is not working from other machines. Do I need to setup machine.domain:<port_number> any where.
    Thanks,
    Vara

  • Javascript is not working in the published file

    Hi ,
    I using the javascript in the captivate 5.5 to generate the text from variable in the textbox. It is working when I press the F12 button, But it is not working in the Published file.
    I called the function in the button and I written the script in the slide.
    Please let us know how to proceed..
    Thanks
    Sathish BC

    This is the Script I used in the captivate 5.5 and I called the text using variable in the text box.
    var objCP = document.Captivate;
    function valText()
    var a  = objCP.cpEIGetValue('A');
    var b  = objCP.cpEIGetValue('B');
    if (b>=5)
    objCP.cpEISetValue('B',0);
    GetAryVal(b);
    objCP.cpEISetValue('rdcmndGotoFrameAndResume', objCP.cpEIGetValue('currSlide'));
    function GetAryVal(e)
    var a1  = objCP.cpEIGetValue('Txt');
    var b1 = a1.split("#");
    var c1 = b1[e-1].split("$");
    objCP.cpEISetValue('C', c1[0]);
    objCP.cpEISetValue('D', c1[1]);
    valText();

  • The Open URL or File function is not working when I publish as a exe?

    The Open URL or File function is not working when I publish as a exe.  I have tried putting the exe in the same location as the files with no luck.  How do I get the buttons to function properly with a exe file.

    Have you set the Publish folder as a trusted location in Flash Global Security?
    If not, please read this post:
    http://www.infosemantics.com.au/adobe-captivate-troubleshooting/how-to-set-up-flash-global -security
    It may explain your issue.

  • Comments Not Working on Website - published to non-.mac server

    Hi there. I've read on a few non-apple sites of users having trouble with Comments and some other functions of their websites, built in iWeb, not working when they publish to a non-.mac server. I've built my website in iWeb, published via CyberDuck to a BlueHost server -- but now users can not post comments on my blog.
    Has anyone found a way to fix this issue??
    It seems incredibly pointless to even now have my own domain. I'm super close to giving up on iWeb all together because of this ridiculous issue.
    Thanks in advance.
    www.kellerowski.com

    Unfortunately, blog comments are a MobileMe only feature along with the hit counter etc.
    You have to publish to MobileMe if you want these features.
    There are workarounds however. If you want to continue to use an iWeb blog, then you can use a third party comments feature. Take a look here http://www.intensedebate.com. It is free to set up on the site and all you then do is copy and paste the code into an html snippet on the page you want comments to appear in whatever format you want them.
    Your other option is to ditch iWeb and if it is just a blog you want, use something like http://www.wordpress.com. This is free and you don't need a domain name and the blog is published on WordPress servers.
    Your other option for a blog is http://www.posterous.com.
    The iWeb blog system is not that good, so you might look into changing if a blog is what you want rather than a website.

  • Web.Show_Document does not work with long running reports

    I am using Web.Show_Document() to call reports from Forms. Everything works fine for smaller reports. However for long running reports I do not get the output instead get the page "This page cannot be displayed.". On checking the job status on the report server I find that report is still running and completes after some time but by that time my http request has already timed out. What configuration do I have to change to make my long running reports work.
    Thanks

    So, looks like this is an IE issue. I need to add the form server site to my list of Trusted Sites. Once I did that, everything started to work fine. Thought I'd share in case anyone is really interested.....

  • Right click not working on BI web report

    Hi,
    We are facing an issue while working with BI 7.0 on Web.
    When we execute a report on the web and right-click anywhere on the characteristics, Menu options-Filter, Change Drilldown, Broadcast & Export etc - are displayed for the first time. After some time when we right click again, the menu options do not appear and even drag and drop does not work.

    Hi Nisha,
    Could you help us with what GUI front end version and patch do u have, What BEx version are u using.
    May be you should upgrade you gui to 7.10 and patch 11 or 12, and also install the corresponding BW and BI addOn.
    Bim, Let us know what your version of BEX and GUI front end is.
    reagards,
    Sree.
    Edited by: Sree Nair on Sep 8, 2009 7:19 AM

  • Buttons not working on updateable SQL report

    Hello
    I have created an updateable SQL report using the wizard but for some reason none of the buttons (Add Row, Delete, Submit) are working.
    When I click on 'Submit', the changes aren't saved.
    When I click on Add Row I get 'Page cannot be displayed error with the URL 'http://rthuas11:7781/pls/htmldbcdbs/wwv_flow.accept'
    When I select a few rows by clicking on the checkbox by each row then click 'Delete' , no rows are actually deleted!
    Any ideas what is going wrong? Do I need to create extra processing? The buttons were created by the wizard
    Thanks
    Simon

    Hi Umry,
    Welcome to the HP Forums!
    I see that your buttons on the left of the screen are not working with your HP Deskjet Ink Advantage 4645. I am happy to help you with this issue!
    Please take a look through this guide. The HP Printer Won't Turn On or Respond When the Power Button is Pressed.
    If that does not fix the issue, please call our technical support at 800-474-6836. If you live outside the US/Canada Region, please click the link below to get the support number for your region. Country-language selector.
    Hope this information helps, and have a great day!
    RnRMusicMan
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" to say “Thanks” for helping!

  • Restrictions not working in BO Webi Report

    Hello,
    I have created a universe on BEx query. Now on this universe when i create reports with restrictions the restrictions are not working.
    For example:
    If i create a BO query with restriction say Doc_Number= 108994 and display Doc_Number and Delivery_Number then:
    in Doc_Number column i get 108994 but in Delivery_Number column i get all the delivery numbers from the cube. In other words all Delivery_Numbers are retrieved when i restrict data for one Doc_Number and vice versa is also true.
    Can anyone help me solve this issue?

    Hello,
    If i remove all the filters and include any of key figures then i get correct data.
    But if i remove the key figure and apply a restriction say on Delivery_Number then i get incorrect data.
    I too believe that ideally this should not happen.
    eg:
    Doc_NumDelivery_Number
    111                      1010
    222                      1234
    333                      5678
    Now if i include Doc_Num and Delivery_Number in query and apply filter Delivery_Number = 1010 then the output is
    Doc_Num           Delivery_Number
    111                      1010
    222                      1010
    333                      1010
    Same is the case if i apply filter on Doc_Num i get all Delivery_Number.
    What should be the reason behind such behaviour of the query????

  • Container Operation not working properly

    Hi,
    In my workflow,  container operation is not working properly sometime.
    I am assigning agents from class attribute to workflow container . sometime the value is not correct.
    scenario: class attribute - WFAGENT - value USABC
    workflow container: WFAGENT_VAR.
    assigning class attribute - WFAGENT to workflow container: WFAGENT_VAR.
    instead of USABC, workflow container WFAGENT_VAR is having value as USWF-BATCH.
    Please suggest.
    Thank you.
    Regards.
    SG

    Hi,
    It is fairly logical to exclude the option that the container operation doesnt not only work but also that it passes on different information all of a sudden.
    In your situation, either the class attribute has the incorrect information at the time of the containeroperation.
    That, or your workflow container gets overwritten with another container operation,or with a binding from method-->container element in some step in your workflow.
    Kind regards, Rob Dielemans

  • JMS-send operation not working in a SessionBean [OC4J10.1.3.1.0-standalone]

    Salut,
    i am envisaged with a nasty problem calling a message-send operation from
    a method (transaction-type="required") inside a session bean (transaction-type="container").
    This problem occured in OC4J 10.1.3.1 and may fail also in 10.1.3.0. The same
    code run under OC4J 10.1.2.x without any problems.
    The adressed JMS type is a OEMS JMS and fails to work regardless if the JMS ressource
    is using a file-persistence or is running in-memory. Anyway the factory is a
    jms/XAQueueConnectionFactory, so the created queue must support XA transactions.
    Another test with an advanced-queue JMS provider succeeded.
    As a consequence of this, i believe that the OEMS provider shall cause the problem.
    The original code is quite unspectaculary:
    * The non-surprising thing is, that the QueueConnectionFactory
    * is a XAQueueConnectionFactory.
    QueueConnectionFactory qcf = (QueueConnectionFactory) (jndiContext.lookup(MY_QFAC));
    Queue q = (Queue) (new InitialContext().lookup(MY_QUE));
    c = qcf.createQueueConnection() ;
    QueueSession s = c.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
    [... create a message ]
    QueueSender qs = s.createSender(q)
    qs.send(m);
    qs.close()
    s.close();
    c.close()
    The funny thing is, that the queue-session behaves as it is working outside
    of a transaction context. Inside the JMX-Console you will notice the
    arrival of a message and ... a cancellation of it. This would not surprise
    me, if this code sequence would have been called outside of
    a Session bean, cause the absence of a queue-session.commit does not
    fix the send message in the jms ressource.
    As a matter of fact the code is executed inside a Session bean and
    the connection.createQueueSession will notice this and forget both
    given parameters, and let the covering transaction take over of the
    JMS ressource. But this does not happen (completly).
    The acknowledge-mode has been modified (SESSION_TRANSACTED)
    but the code still does not work!
    After i recognized that the enlist-ment did not work, i
    decided to enfore the use of XA transaction by using the
    XA classes and methods of JMS.
    I startet to cast the jndi-references and:
    XAQueueConnectionFactory qcf = (XAQueueConnectionFactory) (jndiContext.lookup(MY_QFAC));
    Queue q = (Queue) (new InitialContext().lookup(MY_QUE));
    XAQueueConnection c = qcf.createXAQueueConnection() ;
    XAQueueSession s = c.createXAQueueSession();
    [... create a message ]
    QueueSender qs = s.createSender(q)
    qs.send(m);
    qs.close()
    s.close();
    c.close()
    The funny thing is ... the code worked without any problem until
    the send operation, where i received an JMSException, containing
    the text:
    Oc4jJMS.Session.hpcl057.4e9c06e4:1112674930d:-7fff.41,true,SESSION_TRANSACTED]: An attempt was made to perform work in a XA-backed session without being enlisted. Either the session must be enlisted (using the JMS Connector or JMS Adapter) to participate in the global transaction, or a non-XA connection and a non-XA session should be used to not participate in the global transaction.
    How bizarre, i thought the enlistment has been taken place by invoking
    the c.createXAQueueSession or c.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
    How bizarre how bizarre
    any clues ????

    OC4J JMS was changed to not auto-enlist in XA transactions.
    In releases prior to 10.1.3 XA usage was not actually supported. (It did not meet all of the XA requirements when used with OC4J.)
    Auto-enlisting by the JMS provider was also a spec violation, which was causing trouble for people who needed to do out-of-transaction work and had no way to do it.
    In 10.1.3 XA usage is fully supported, but only when you use the JMS Connector. You can find the JMS Connector ("Oracle's Generic JMS Resource Adapter") demos here:
    http://www.oracle.com/technology/tech/java/oc4j/1013/how_to/index.html#JMS
    The JMS Connector is documented in the OC4J Services Guide, OEMS/JMS chapter.
    -Jeff

  • Edit button not working on a publishing site on sub-level pages only (SP 2010)

    When I create a top level page, the Edit button/edit page works fine with checkout and checkin.  However, once I create a sub-level page - that is I create a second page within the first page then the edit button does not work and there is a message
    displayed on the ribbon in yellow background: 
    Status:
    Published and visible to all readers 
    I have read all responses to similar posts and tried them but problem is not resolved. 
    I don't have workflow turned on, I don't have content approval, yet, issue is still there. 
    Please help. 

    Hi Wynnit,
    Pinning will not work in most devices - desktop only. To do the same in your device layouts you need to use the scroll motion tools.
    To add code to the <head> tags in Muse you go to your page properties and under the meta tab you will see a section you can paste your code.
    When  you do push live with Business Catalyst you will be given prompts as to how to go about it.

Maybe you are looking for

  • Video upload from Iphone 5 to pc plays slow after few times in Quicktime player

    I uploaded a video from my Iphone 5 to my pc and in the beginning it played well But now if i try to play it plays really slow and chobby.. not good. Can't find any solution.

  • Problems Resizing "Macintosh HD" Partition

    I recently bought a macbook with Leopard installed on it. I wanted to install XP on it, and with bootcamp, created a 32GB partition. (I had 232GB of internal hard drive space altogether) After concluding the first XP install stage (blue screens with

  • Airport Only Sees One Network

    This might sound like a bizarre problem, but here goes. When I first start my computer and scan for networks, I can see all of the available networks in range. When I connect to one and look again, all of the networks have now disappeared. The card w

  • TT query very slow - solution is simple - hopefully

    Hello I have a simple view on a simple cached Table in the TT. When i run a query on the View - the Query Optimizer Plan sayed " NOT INDEXED:" on one column. The same Query on the OracleDB is faster...;-( Here some Informations... TIMESTEN ==========

  • 16:9 and iDVD/iMovie question.

    hey all again lol. I dont know why the general questions stump me and the more detailed ones i understand. but here it goes. 1 If i shoot a movie on my cam in 16:9 that means i want my imovie and idvd sessions to be 16:9 right? 2 and if i shoot my mo