Gettin error Cannot convert to number in RTF Template

Hi,
I am working on xml template development i am getting the followinf error
Font Dir: C:\Program Files\Oracle\XML Publisher Desktop\Template Builder for Word\fonts
Run XDO Start
RTFProcessor setLocale: en-us
FOProcessor setData: D:\Tickets\Remittance Advice XMLP\canada_report1.xml
FOProcessor setLocale: en-us
java.lang.reflect.InvocationTargetException
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:324)
     at oracle.apps.xdo.common.xml.XSLT10gR1.invokeProcessXSL(XSLT10gR1.java:586)
     at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:383)
     at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:201)
     at oracle.apps.xdo.common.xml.XSLTWrapper.transform(XSLTWrapper.java:161)
     at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:1015)
     at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:968)
     at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:209)
     at oracle.apps.xdo.template.FOProcessor.createFO(FOProcessor.java:1561)
     at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:951)
     at RTF2PDF.runRTFto(RTF2PDF.java:626)
     at RTF2PDF.runXDO(RTF2PDF.java:460)
     at RTF2PDF.main(RTF2PDF.java:251)
Caused by: oracle.xdo.parser.v2.XPathException: Cannot convert to number.
     at oracle.xdo.parser.v2.XSLStylesheet.flushErrors(XSLStylesheet.java:1526)
     at oracle.xdo.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:517)
     at oracle.xdo.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:485)
     at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:264)
     at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:150)
     at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:187)
     ... 16 more
I have checked the code and problem was due to following code i dont know where i went wrong
<xsl:variable xdofo:ctx="incontext" name="inner_group" select=".//G_SEL_INV_DATA"/><?for-each:$inner_group?><?if:(position()-1) mod $no_of_lines_per_page=0?><xsl:variable name="first_rec" xdofo:ctx="incontext" select="position()"/>
Please help me to solve this issue...
Thanks
Rajesh

What was the problem in the template? I am facing the same error, when I put a conditional in the data field, it throws the XML-22036: (Error) Cannot convert to number.
error, where if the element was printed directly it works fine.
error
<Line 984, Column 130>: XML-22036: (Error) Cannot convert to number.
@Line 984 ==> <xsl:variable name="v148" select="format-number(string(xdoxslt:one($v147)), string('###0.00'), string('_DECIMALFORMAT'))"/>
End of Process.
<format>
Number, ###0.00
<DATA >BROKEN
If (to_number(../DocumentPayableCount) + to_number(Extend/NumberOfPO) + sum(to_number(../DocumentPayable/Extend/Commentlength))) <= 7 then Extend/InvoiceAmount end if
<DATA >ALSO BROKEN
If (../DocumentPayableCount + Extend/NumberOfPO + sum(../DocumentPayable/Extend/Commentlength)) <= 7 then Extend/InvoiceAmount end if
<DATA> WORKS
then Extend/InvoiceAmount

Similar Messages

  • Internal error, cannot load engine Number 2 due to error 5

    I have had a StartStop transcription program for several years. I bought my Dell computer with Windows 8 (now 8.1) in late 2014. I had no problems running the StartStop program until it got a tune-up by my regular tech.  Since then, when I click to
    open it, I get the message: "##### Internal error, cannot load engine Number 2 due to error 5."  My tech couldn't figure it out and another tech couldn't fix it either after looking at it for hours.  StartStop could not figure it out either.
    Since then, I bought a Digitope digitalizer, which converts cassette tapes to CD's. When I try to open that program the exact same error message comes up!  
    So I am thinking there is something awry with certain audio programs. I am able to run another transcription program, Express Scribe. 
    Any thoughts!  
    The 2nd tech suggested rebooting the entire computer and reinstalling all programs, but I'm not sure I can find all my original programs. 
    Thanks!

    Hello Silent Fisher,
    What StartStop transcription program do you mean?
    Please share me a screenshot.
    If it is a third-party software, it is recommended to contact the support of the software.
    If the issue occurs after your change, please use the system restore to restore your computer’s system files to an earlier point in time.
    http://windows.microsoft.com/en-HK/windows-8/restore-refresh-reset-pc
    Best regards,
    Fangzhou CHEN
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • RFC Function Error: Cannot convert a value of 'MM/DD/YYYY' from type java.l

    hi experts,
    iam calling an RFC using SAP_JCO_Function. one of the input parameters is date which shud be in the format 'MM/DD/YYYY' but when i create a transaction property of data type DATETIME the format changes to " 2007-06-21 14:31:50 ". to refrain form passing this value at run time i have defined the transaction property as string and defaulted the value to MM/DD/YYYY.
    When i execute the RFC i get the error "Cannot convert a value of 'MM/DD/YYYY' from type java.l".
    Issue is with time field as well. Any suggestions would be appreciated.
    Thanks,
    Avinash

    Hi
    You can use datefromxmlformat( datetime, toformat ) .
    in toformat you give: "MM/dd/yyyy" and in datetime you pass your xml format date like: 2007-06-21 T14:31:50.
    Try like this. Hope this may help you.
    Thanks

  • How to Format number in RTF template?

    Hi,
    In RTF template i am using Format_number for custom requirement. when i am using below conditon <?format-number(ENTERED_CR,'##,##0.00')?> number is getting formatted if above 1000 only. My requirement is 1). 444 should format like 444.00 2). 444.55 should format like 444.55 only. Can anyone suggest on this ASAP.

    in the next time use BI Publisher forum - BI Publisher
    <?format-number(ENTERED_CR,'##,##0.00')?>it's works for me
    output:
    444    ->  444.00
    444.55 ->  444.55

  • Cannot convert string to date

    Hey Guys,
    I'm starting powershell and I'm having a headheck (I'm searching for hours) with a piece of code :)
    I'm trying to do that :
    $LogLines = (Get-Content -Path $LogPath)
    Foreach ($LogLine in $LogLines) {
    $LogSubString = $LogLine.Substring(21,15)
    [datetime]$date = $LogSubString
    But I have an error
    Cannot convert value "‎10‎-‎22‎-‎2014" to type "System.DateTime". Error: "String was not
    recognized as a valid DateTime."
    As you see, the value I read from a file is "10-22-2014".
    When I try this, it is working :
    $LogLines = (Get-Content -Path $LogPath)
    Foreach ($LogLine in $LogLines) {
    $LogSubString = "10-22-2014"
    [datetime]$date = $LogSubString
    So I don't understand why it's not working since "10-22-2014" and $LogLine.Substring(21,15) represents the same value but one is not working.
    Can someone please help me ? :)
    Cheers,
    Jeremie

    Get-Content has a parameter -Encoding UTF-8
    But I not sure that's the way to go, that could result in data loss / confusion
    Or take a good look at the string, leave $LogLine.Substring(21,15)
    as is.
    $LogLines = (Get-Content -Path $LogPath)
    Foreach ($LogLine in $LogLines) {
    $LogSubString = $LogLine.Substring(21,15)
    "LogSubString=$LogSubString"
    "LogSubString.Length=$($LogSubString.Length)"
    FOR ($I=0;$I -LT $LogSubString.Length;$I++)
    $Char = $LogSubString.Chars($I)
    "I=$I Char=$Char Int=$($Char -as [Int])"
    [datetime]$date = $LogSubString

  • Cannot convert ÿØÿà of type class java.lang.String to class BFileDomain.

    Hi All,
    I am using Jdeveloper 11.1.2.3.0.
    I have a scenario of making an ADF page where I have a IMAGE field to show on the page. So,I have a table called "PRODUCT" with fields called photo with BFILE type. Now when I the data i have inserted using the DML command and i can see the path at the backend.
    However,when i am runnig my ADF page in the Filed called "PHOTO" I can only see a junk character stating 'yoyo'.
    When I click on it, it says ERROR "Cannot convert ÿØÿà of type class java.lang.String to class oracle.jbo.domain.BFileDomain".
    Your help will be appreciated ASAP.
    Regards,
    Shahnawaz

    Hi,
    did you show the id-value in the user interface as a input-component, and did the input-component include a converter?
    If yes, show the id as output-text and remove any existing converter-components.
    Best Regards

  • Cannot convert value "......." to type

    I'm running the following script on Exchange 2010. The script reads 3 text files and then removes everyone from the Distribution Group / Universal Distribution Group  "Messages Delivery Restrictions - Accept Messages Only From" before adding
    a new list of users
    $People = gc C:\ps_scripts\Staff_Aliases.txt
    $UDGroups = gc C:\ps_scripts\Universal_Distribution_Groups.txt
    $DDGroups = gc C:\ps_scripts\Dynamic_Distribution_Groups.txt
    ForEach ($UDGroup in $UDGroups) {
       Set-DistributionGroup $UDGroup -AcceptMessagesOnlyFrom $null
       Set-DistributionGroup $UDGroup -AcceptMessagesOnlyFrom((Get-DistributionGroup $UDGroup).AcceptMessagesOnlyFrom + $People)
    ForEach ($DDGroup in $DDGroups) {
       Set-DynamicDistributionGroup $DDGroup -AcceptMessagesOnlyFrom $null
       Set-DynamicDistributionGroup $DDGroup -AcceptMessagesOnlyFrom((Get-DistributionGroup $DDGroup).AcceptMessagesOnlyFrom + $People)
    and I'm getting the following error:
    Cannot convert value "a.abcd h.qwerty staff-abc staff.bcd" to type "Microsoft.Exchange.Data.MultiValuedProperty`1[Microsoft.Exchange.Configuration.Tasks.DeliveryRecipientIdParameter
    ]". Error: "Cannot convert value "" to type "Microsoft.Exchange.Configuration.Tasks.DeliveryRecipientIdParameter". Error: "Parameter values of type Microsoft.Exchange.Configuration.Tasks.DeliveryRecipientIdParameter can't
    be empty. Specify a value, and try again.
    Parameter name: identity""
        + CategoryInfo          : InvalidData: (:) [Set-DynamicDistributionGroup], ParameterBindin...mationException
        + FullyQualifiedErrorId : ParameterArgumentTransformationError,Set-DynamicDistributionGroup
    I'm getting the content from three text files, the first contains the User Alias and the 2nd/3rd contain the Universal and Dynamic Distribution Groups.
    This is an exact copy and paste from the EMC screen and I know that the script should work but I can't see what I'm doing wrong
    Help or ideas please
    Darryn

    Set-DynamicDistributionGroup $DDGroup -AcceptMessagesOnlyFrom((Get-DistributionGroup $DDGroup).AcceptMessagesOnlyFrom + $People)
    Look closely at this line.  Read the documentation to see how it is used.
    What you h ave typed makes no sense and I cannot understand what you want to do with this.
    Start here for a tutorial on how to use these CmdLets:
    http://blogs.msdn.com/b/ukeducloud/archive/2011/10/05/dynamic-distribution-groups-part-1.aspx
    http://blogs.technet.com/b/educloud/archive/2011/10/06/dynamic-distribution-groups-part-2.aspx
    ¯\_(ツ)_/¯

  • Error in converting video?? not enough memory??

    I've tried converting a 1 hour video but halfway through conversion it stops and a message comes up saying "error: cannot convert video, not enough memory"
    I've tried deleting heaps of stuff off my itunes as well as my computer but it still keeps on doing that. I've also tried leaving itunes as the only application open while it is converting.
    Is it talking about a different type of memory? on just itunes? or computer?

    So you have about a gig of ram? Well, that isn't so high when it comes to video encoding, especially if you may be doing other things on the computer at the same time (web browsing, etc etc etc). Try quitting EVERY program except the current conversion you're doing.

  • Cannot convert from IPrivate{cn}view.I{cn}Element to IPublicTabComp.IPeople

    Hi,
    I have 2 context node Person and People in a view context and context node People in component controller's context ,now i want to create new People element in the implementation of view
    so when i had written code below in eventhandler method in view implementation:
    IPeopleElement newPerson = wdContext.nodePeople().createPeopleElement();
    it gives me an error :
    Cannot convert from IPrivateview.IElement to IPublicTabComp.IPeopleElement
    Any help will be appreciated.
    Thanks,
    Rashmi.

    Hi,
    i hope you mapped the component controller context "People "to view .
    then to create a element do like this,
    IPrivate<View Nmae>View.IPeopleNode pnode= wdContext.nodePeople().createPeopleElement();
    Regards,
    ramesh

  • How to fix "cannot convert between unicode and non-unicode string data types" :/

    Environment: SQL Server 2008 R2
    Introduction:Staging_table is a table where data is being stored from source file. Individual and ind_subject_scores are destination tables.
    Purpose: To load the data from a source file .csv while SSIS define table  fields with 50 varchar, I can still transfer the data to the entity table/ destination and keeping the table definition.
    I'm getting validation error "Cannot convert between a unicode and a non-unicode string data types" for all the columns.
    Please help

    Hi ,
    NVARCHAR = DT_WSTR
    VARCHAR = DT_STR
    Try below links:
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/ed1caf36-7a62-44c8-9b67-127cb4a7b747/error-on-package-can-not-convert-from-unicode-to-non-unicode-string-type?forum=sqlintegrationservices
    http://social.msdn.microsoft.com/Forums/en-US/eb0d1519-4be3-427d-bd30-ae4004ea9e8d/data-conversion-error-how-to-fix-this
    http://technet.microsoft.com/en-us/library/aa337316(v=sql.105).aspx
    http://social.technet.microsoft.com/wiki/contents/articles/19612.ssis-import-excel-to-table-cannot-convert-between-unicode-and-non-unicode-string-data-types.aspx
    sathya - www.allaboutmssql.com ** Mark as answered if my post solved your problem and Vote as helpful if my post was useful **.

  • Subtemplates in RTF templates

    this is a quick one. I can not get a RTF template that includes a subtemplate to run when executed from publisher website by view or by scheduling. I can get it to work just fine in the Word Add on just fine. (preview as rtf command)
    Here are the simple things I am doing (The template actually does nothing)
    <?template:replacenull?>
    <?param:p_value;string('0')?>
    <?param:p_replace;string('-')?>
    BJKLKLKL
    <?end template?>
    And call to template
    <?call@inlines:replacenull?>
    <?end call?>
    Exception I recieve
         at java.lang.Thread.run(Unknown Source)
    Caused by: oracle.xdo.parser.v2.XPathException: Cannot convert to number.
         at oracle.xdo.parser.v2.XSLStylesheet.flushErrors(XSLStylesheet.java:1534)
         at oracle.xdo.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:521)
         at oracle.xdo.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:489)
         at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:271)
         at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:155)
         at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:192)
    NOTE: there is two spaces between "convert" and "to" this may be a clue of some type.
    Edited by: danscan1712 on Feb 4, 2011 11:24 AM

    I have retried this whole thing from scratch and now it works. I don't know why but i am chalking it up to an errant typo somewhere.

  • I cannot convert pdf to word even thuogh i have subscribed to the service, please advise. Invoice Number 0646799448.pdf

    I cannot convert pdf to word even thuogh i have subscribed to the service, please advise. Invoice Number 0646799448.pdf

    Hi gregorr22536759,
    I've checked your account, and it appears that there was a payment processing error. Please Contact Customer Care so that an agent can help you resolve that.
    Best,
    Sara

  • ActionScript 3.0: Error #1034: Type Coercion failed: cannot convert displayObject$ to DefaultPackage

    I'm a student I have a final project want to deliver it after two days.
    I'm making a drag and drop game, I watched a tutorial to do that.
    But after ending coding I faced a weird error!
    I've I checked that my code is the same as the code in the tutorial.
    This is the Debug error report:
        Attempting to launch and connect to Player using URL E:\FL\ActionScript\Drag and Drop Project\DragAndDrop.swf
        [SWF] E:\FL\ActionScript\Drag and Drop Project\DragAndDrop.swf - 87403 bytes after decompression
        TypeError: Error #1034: Type Coercion failed: cannot convert paper1$ to DragDrop.
                  at Targets()[E:\FL\ActionScript\Drag and Drop Project\Targets.as:23]
    My `.fla` File is containing 12 Objects to drag and another 12 Objects to drop on it.
    The idea here is when drop the Object on the target the Object will become invisible and the target become visible (in `.fla` file `target alpha = 0`).
    I made two classes:
    DragDrop.as : for the objects that I'm going to drag.
    Targets.as  : for the targets that I'm going to drop Objects on it.
    Note: match function is to animate "GameOver" MovieClip When complete the game.
    DragDrop.as:
        package
                  import flash.display.*;
                  import flash.events.*;
                  public class DragDrop extends Sprite
                            var origX:Number;
                            var origY:Number;
                            var target:DisplayObject;
                            public function DragDrop()
                                      // constructor code
                                      origX = x;
                                      origY = y;
                                      addEventListener(MouseEvent.MOUSE_DOWN, drag);
                                      buttonMode = true;
                            function drag(evt:MouseEvent):void
                                      stage.addEventListener(MouseEvent.MOUSE_UP, drop);
                                      startDrag();
                                      parent.addChild(this);
                            function drop(evt:MouseEvent):void
                                      stage.removeEventListener(MouseEvent.MOUSE_UP, drop);
                                      stopDrag();
                                      if(hitTestObject(target))
                                                visible = false;
                                                target.alpha = 1;
                                                Object(parent).match();
                                      x = origX;
                                      y = origY;
    Targets.as:
        package
                  import flash.display.*;
                  import flash.events.*;
                  public class Targets extends MovieClip
                            var dragdrops:Array;
                            var numOfMatches:uint = 0;
                            var speed:Number = 25;
                            public function Targets()
                                      // constructor code
                                      dragdrops = [paper1,paper2,paper3,paper4,paper5,paper6,
                                                                     paper7,paper8,paper9,paper10,paper11,paper12,];
                                      var currentObject:DragDrop;
                                      for(var i:uint = 0; i < dragdrops.length; i++)
                                                currentObject = dragdrops[i];
                                                currentObject.target = getChildByName(currentObject.name + "_target");
                            public function match():void
                                      numOfMatches++;
                                      if(numOfMatches == dragdrops.length)
                                                win.addEventListener(Event.ENTER_FRAME, winGame);
                            function winGame(event:Event):void
                                      win.y -= speed;
                                      if(win.y <= 0)
                                                win.y = 0;
                                                win.removeEventListener(Event.ENTER_FRAME, winGame);
                                                win.addEventListener(MouseEvent.CLICK, clickWin);
                            function clickWin(event:MouseEvent):void
                                      win.removeEventListener(MouseEvent.CLICK, clickWin);
                                      win.addEventListener(Event.ENTER_FRAME, animateDown);
                                      var currentObject:DragDrop;
                                      for(var i:uint = 0; i < dragdrops.length; i++)
                                                currentObject = dragdrops[i];
                                                getChildByName(currentObject.name + "_target").alpha = 0;
                                                currentObject.visible = true;
                                      numOfMatches = 0;
                                      addChild(win);
                            function animateDown(event:Event):void
                                      win.y += speed;
                                      if(win.y >= stage.stageHeight)
                                                win.y = stage.stageHeight;
                                                win.removeEventListener(Event.ENTER_FRAME, animateDown);
    ...Thanks

    Thank you very much for replying.
    - dragdrops represents: the dragable objects.
    - Targets obtaining the dropable objects by hitTestObject, then the dropable objects visible is turned to false, & the target visible turned to true.
    Dragable objects is a 12 elements all of them have an instance names: paper1....paper12.
    When I focused to the project I noticed that I forget to give the dragable objects an instance names!
    after making the instance names to them, a new error occures:
    E:\FL\ActionScript\Drag and Drop Project\Targets.as, Line 11
    1046: Type was not found or was not a compile-time constant: paper1.
    This error is continuing to paper2, paper3.....paper12 !
    Please download my project, I must deliver it to my college in 24/12. I will never forget your favor. thanks.
    https://www.dropbox.com/s/8mdg5w17vvryzso/Drag%20and%20Drop%20Project.rar | 715KB

  • HT204053 I have an iPhone 4S and when I try to add an iCloud account is gives me an error "Cannot Sign In, The maximum number of free accounts have been activated on this iPhone." Is there any way to deactivate an account?

    I have an iPhone 4S and when I try to add an iCloud account is gives me an error "Cannot Sign In, The maximum number of free accounts have been activated on this iPhone." Is there any way to deactivate an account? I have one for myself, one for my family and one for my work. I had all three on my iphone and then I deleted my work. I wanted to get my own person @me.com account. It wouldn't let me create it from my iphone, so I created it from my Macbook Pro. I am trying to add it to my iphone, but it keeps giving me that error. If there is a way I can deactivate my work one so I can use my @me.com personal account?

    Welcome to the Apple Community.
    Unfortunately once all the 3 iCloud accounts have been created on your mobile device, you cannot create any more regardless of what you do. You will need to re-use one of the accounts that you have already created or create your new account on another device or computer.
    You should however be able to add existing accounts to your device, are you sure you aren't trying to create on rather than simply use an existing one.

  • Error :cannot show the value of the filter.The Field may not be filterable or the number of items returned exceeds the list view threshold enforced by administrator

    Issue : In sharepoint 2013, I am experiening below error while using filter in the list view due to the number of items in this list exceeds the list view threshold, which is 10000 items. Tasks that cause excessive server load (such as those
    involving all list items) are currently prohibited.
    Error :cannot show the value of the filter.The Field may not be filterable or the number of items returned exceeds the list view threshold enforced by administrator
    Could you please suggest a way to avoid this issue apart from incrementing the list view threshold limit .
    Prashanth

    Reorganizing content, or creating more specific views. sharepoint is warning you that the content is structured in such a way that it can cause performance issues, which should be addressed in some way.
    Kind regards,
    Margriet Bruggeman
    Lois & Clark IT Services
    web site: http://www.loisandclark.eu
    blog: http://www.sharepointdragons.com

Maybe you are looking for

  • Report displayed on PDF

    I created a simlpe report. When I call it from the button in my form, I would like to have acrobat pop up and display it on the screen. So far, when the user clicks the button, my form creates the a pdf file with the report on it. But it does not ope

  • Nokia Lumia 920 Photos/Video are blurry on iPhones...

    Hi. Whenever I send pictures or videos to an iPhone or Computer they're all very blurry. They look perfectly fine on my Nokia but the moment I send them to an iPhone/Computer they look hideous. They literally look like I took them with a cheap flip p

  • I'm Getting an error (-69) cannot sync ipad?

    My photos sync fine in itunes, but my music and video's show titles on my ipad but on data to view them. I'm getting an error that I can't sync. My ipod sync's fine with all my content from itunes on it. Please help...

  • Someone mind answering a few questions?

    I have a coupld of questions that may be kind of specific and I kind of need the answers explained in layman's terms. I'm new to Adobe video editing, so please be gentle. I am doing a video project for school with a few friends. We shot on a Canon Op

  • Accessing 3 or 4 databases tables through apex.

    Hi There, I have a requirement, I have to create few dashboards on apex and each dashboard corresponds to different databases. For example: I will have a list of databases name in the first page of apex (or it could be tab name) and when I click on t