Xsl:if not working in bi publisher template

Hi,
I have a template which has form field, which I defined as below:
<xsl:if test="string(number((//ROW/TOTALDATACHECKS))) != 'NaN' ">
<xsl:value-of select="format-number((1-(sum(//ROW/TOTALDATADISCREPANCIES) div sum(//ROW/TOTALDATACHECKS)))*100,0.00)"/>%
</xsl:if>
I see that, if I replace xsl:value-of tag with plain text "xxxxx" , it is rendering fine in the rendered report. But I need xsl:value-of to evaluate the farmula I have in the above implementation.
I did the above implementation to avoid xsl errors in case of denominator in the farmula being null.
Please suggest solution for the xsl:if issue I had. Any alternate solution to avoid xsl error for denominator being null is also welcome.
Thanks,
-Vijay-

I am using rtf file as a template in BI Publisher. The rtf file has several form fields which gets populated by the sql query executed by BI Publisher.
The form field I was referring has a farmula in which the denominator has a field read from sql query result. When the denominator becomes zero, BI publisher is throwing error and not rendering report.
To handle above scenorio, I pasted the xsl piece of code (pasted in my first post of this thread) in that to handle this. But for the reason mentioned in the prior post its not successful.

Similar Messages

  • 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.

  • 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

  • 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

  • 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.

  • Hello World XML/XSL example not working in IE

    I am trying to get the "Hello World" XML/XSL example to work in IE.
    Could anyone help me out?
    The code follows:
    hello.xml
    <?xml version="1.0"?>
    <?xml-stylesheet type="text/xsl" href="hello.xsl"?>
    <hello-world>
    <greeter>An XSLT Programmer</greeter>
    <greeting>Hello, World!</greeting>
    </hello-world>
    hello.xsl
    <?xml version="1.0"?>
    <xsl:stylesheet
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    version="1.0">
    <xsl:template match="/hello-world">
    <HTML>
    <HEAD>
    <TITLE></TITLE>
    </HEAD>
    <BODY>
    <H1><xsl:value-of select="greeting"/></H1>
    <xsl:apply-templates select="greeter"/>
    </BODY>
    </HTML>
    </xsl:template>
    <xsl:template match="greeter">
    <DIV>from
    <I><xsl:value-of select="."/></I>
    </DIV>
    </xsl:template>
    </xsl:stylesheet>
    Both files are in the same directory.
    When hello.xml is opened in IE, the output displayed is just, "from".
    What's wrong, and where?
    Please help!
    - Edwin.

    Hi edwinwaz,
    In response to your question, pls refer to this url
    http://www.w3schools.com/xsl/el_template.asp
    and take a look at the "note" in red.
    It says that IE5.X have non-standard behavior on the element <xsl:template>
    In addition, I have tested your code it works fine.
    Just to add something on your code here.
    I noticed that you do this
    <xsl:apply-templates select="greeter"/>
    and then in another template you do this
    <xsl:template match="greeter">
    <!-- code -->
    </xsl:template>
    In this case, it does work because "greeter" is a top-level element but if "greeter" is anything underneath the top-level element. It won't work.
    Actually, I discovered this after taking a look at your example and
    I was surprised that the code above worked and then I did some testing and discovered this.
    I am learning XML too now... So, I am happy to know this :).
    regards

  • 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.

  • Smart Resizing not working for RDWEB Published desktop

    I have a working RDS deployment, I am able to change the screen resolution of the published desktops both in powershell and registry. However if I add the 'smart sizing' option, this does not get published in the .rdp file. I have added the entries
    in registry but that did not work either. Is this a feature that is disabled by default or I am missing something ?

    Sorry for the wrong information. Smart Resizing  is works with older version of rdp client too (in win 8 you can switch this mode via GUI).
    You must distribute updated version of .rdp file (with smart sizing:i:1 line) to RDS client

  • Iweb: Why do navigation bar page links not work live when published?

    Why do the navigation bar page hyperlinks not work when site is published? There are no objects or boxes over. Works fine until published live. Help!!!

    this image: http://extravorganza-events.com/extravorganza/Home_files/droppedImage.png
    has a large transparency section above the visible (lower section), crop off the transparency section.

  • TOC, Search, Index does not work after hosting published files in Multiscreen HTML5

    I have generated and published the files for multiscreen html5. The default screen layout is Desktop_layout. When I access index.htm directly from the published location, every function and all details work beautifully. However, once I host the published files in IIS, and type the URL in Google Chrome, the screen layout is all messed up. TOC, Index, Glossary and the Search function does not work. Please help/suggest/guide.

    Could this be related to IIS? I host it locally on IIS (8.0 on Windows 8.1 Pro) and on Apache without any problems. But IIS can give trouble if the folder security options are not set correctly, so please make sure the IIS User has full read rights on all directories and files.
    Kind regards,
    Willam

  • Reverser Replication not working for 2 Publish Instance

    We have setup environment for 1 author and 2 Publish servers.  Configured replication agent and reverse replication agent for both Publish Instances. For custom created comments (Java code from external Portal to create comment node) then reverse replication does not replicate comment on Author Instance. But when I post comment for campaign through CQ publish environment then it works properly. It gets replicated on Author Instance. So can anyone let me know what could be missing part for comments generated through custom java script.
    Yogesh

    Hi Sham,
        In one of environment we are using publish and author server. Custom comments are replicating on Author environment.  We are not using custom workflow or JCR observation.Created one more environment for Production setup where 2 publish and 1 author instance. For this comment are not auto replicated on Author instance.
    Default comment modification and comment activation launcher are in place, no change in this. Does it not working due to additional Publish Instance and if so what additional setting will required to address it ?
    Thanks
    Yogesh

  • Captivate 5.5 project -links are not working when i publish to the IE server

    I was wondering if someone had a solution to my Captivate 5.5 project with external links. 
    Here is my problem:
    I have a page that has an external link that opens another window. 
    For some reason the window will open in preview.  However, when I publish to the IE browser it does not work. 
    Does someone have a solution to this problem?  I saw some verbiage that stated adjusting something swf file.  I don't quite understand were to change this file.  Is it in Captivate?
    Any information you have is greatly appreciated.
    Thank you!
    Kat

    Google for information about Flash Global Security.
    It looks like you need to trust the publish folder location as a trusted location in your Flash Global Security settings.

  • HTTPPOST is not working when i publish to azure

    Hello,
    I am working on a sample application using MVC, WebApi. I have created a sample Dashboard type of page and its working fine on ma local machine even with Azure Database ConnectionString but when i publish the same to Azure Portal i am able to see the data
    but when i am trying to add something its not working.
    I want to know the reason why its not working with published.
    Thanks

    hi,
    What is error message? I suggest you could try this solution:
    Please make sure that the Microsoft.SqlServer.Types is referenced and marked as Copy Local = true AND you have to bring over into your BIN directory the dependency for the file which is sqlserverspatial.dll .
    And if it doesn't work, please share the error message for further support.
    Regards,
    Will
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for

  • Accounts Verification Center Nightmare. Service Suspended. No Explanation. HELP.

    Yesterday, 9/26, at around 12pm I was trying to access my account to pay my Verizon bill for my internet and TV service. Through multiple attempts I was getting the prompt that my account could not be accessed and so I called technical support and wa

  • HELP! NEW 3G Error message when syncing to itunes

    Has anyone ever seen this message? I just bought phone today, tried to sync for 1st time with just updated itunes and apple software and I get this message: "APPLE MOBILE DEVICE HELPER HAS STOPPED WORKING!" The iphone icon will eventually show up on

  • Standard COGS cannot be Transferred from Sales Order to Billing Document

    I did a test in current client with the following steps: Create Sales Order for Configurable Material -> Execute Sales Order Costing Run, marked and Saved the result via CK51 -> Create Prodcution Order for such Sales Order -> Confirm Prod Order -> Co

  • Installed runs for 10 seconds then turns off continues doin it

    i installed firefox 4 it runs for about 10 seconds then turns off i re apply the programe thing runs a short while then turns off i have re installed from different sites several times still no joy

  • Attempt to upgrade

    I was upgrading to the new version of itunes when i recieved an error message. It said 'Quicktime intallation failed error code: -3 ' i even tried uninstalling and reinstalling itunes same probelm. . . help please