EText PERIODIC_SEQUENCE

Hi
One of my customer is using an eText template for NZ payments and he is getting below error when format payment program is run:
java.lang.NumberFormatException: For input string: "null"
     at java.lang.NumberFormatException.forInputString(NumberFormatException.java:60)
     at java.lang.Integer.parseInt(Integer.java:461)
     at java.lang.Integer.parseInt(Integer.java:511)
     at oracle.apps.xdo.oa.schema.server.TemplateHelper.runProcessTemplate(TemplateHelper.java:6131)
     at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3490)
     at oracle.apps.iby.engine.ExtractFormatter.applyFormat(ExtractFormatter.java:114)
     at oracle.apps.iby.engine.ExtractFormatter.applyFormat(ExtractFormatter.java:259)
     at oracle.apps.iby.scheduler.FDFormatProgramUtils.doExtractAndFormatCore(FDFormatProgramUtils.java:342)
     at oracle.apps.iby.scheduler.FDFormatProgramUtils.doExtractAndFormatCommon(FDFormatProgramUtils.java:227)
     at oracle.apps.iby.scheduler.FDFormatProgramUtils.doPmtInstrExtractAndFormat(FDFormatProgramUtils.java:90)
     at oracle.apps.iby.scheduler.FDExtractAndFormatting.doExtractAndFormat(FDExtractAndFormatting.java:456)
     at oracle.apps.iby.scheduler.FDExtractAndFormatting.runMainLogic(FDExtractAndFormatting.java:278)
     at oracle.apps.iby.scheduler.FDExtractAndFormatting.runProgram(FDExtractAndFormatting.java:159)
     at oracle.apps.fnd.cp.request.Run.main(Run.java:157)
Error: an error occurred during formatting. Please verify the template is valid.
oracle.apps.iby.exception.PSException: Internal Error to Payment Server: For input string: "null"
     at oracle.apps.iby.engine.ExtractFormatter.applyFormat(ExtractFormatter.java:150)
     at oracle.apps.iby.engine.ExtractFormatter.applyFormat(ExtractFormatter.java:259)
     at oracle.apps.iby.scheduler.FDFormatProgramUtils.doExtractAndFormatCore(FDFormatProgramUtils.java:342)
     at oracle.apps.iby.scheduler.FDFormatProgramUtils.doExtractAndFormatCommon(FDFormatProgramUtils.java:227)
     at oracle.apps.iby.scheduler.FDFormatProgramUtils.doPmtInstrExtractAndFormat(FDFormatProgramUtils.java:90)
     at oracle.apps.iby.scheduler.FDExtractAndFormatting.doExtractAndFormat(FDExtractAndFormatting.java:456)
     at oracle.apps.iby.scheduler.FDExtractAndFormatting.runMainLogic(FDExtractAndFormatting.java:278)
     at oracle.apps.iby.scheduler.FDExtractAndFormatting.runProgram(FDExtractAndFormatting.java:159)
     at oracle.apps.fnd.cp.request.Run.main(Run.java:157)
Upon research we pinpointed the patch that is causing the failure (9501440:R12.XDO.B) which delivers an updated version of the file: TemplateHelper.java.
One of the bugs that is fixed in this version of file relates the way the periodic sequences generates next sequence number. Customer removed below sequence definition from the template and the issue is resolved.
Sequences:
<DEFINE SEQUENCE>     AllRecordsSeq
<RESET AT LEVEL>     PERIODIC_SEQUENCE
<INCREMENT BASIS>     RECORD
<START AT>     /OutboundPaymentInstruction/PaymentInstructionInfo/InstructionReferenceNumber + 1
<MAXIMUM>     999999
<END DEFINE SEQUENCE >     AllRecordsSeq
As per user guide I understand all the Periodic Sequences will have the data stored in database. Customer question is how does the next sequence number gets generated or where does the periodic sequence number store the value in database i.e., like they are looking for specific sequence name or the underlying functionality in derivation of sequence number. We ran below query in the customer instance and found the sequence name and that is the best research we could do.
select * from xdo_eft_sequence_names where language='en' and territory='00';
Will this sequence name be in database as an object? Could someone throw some light on some additional details on how the sequence number is generated?
Thank you very much.

Ron,
The sequence info is stored in iby_payment_profiles
PERIODIC_SEQUENCE_NAME_1 (2,3)
RESET_VALUE_1 (2,3)
LAST_USED_NUMBER_1 (2,3)
and you reset using the "Reset Periodic Sequences" concurrent program
by default this is not in the AP request set so you may have to add it if you don't see it as a valid concurrent request.

Similar Messages

  • Creation of sequence in etext template

    Hi All,
    I am creating a custom etext template for a invoice payment which will be forwarded to bank.
    The file will be generated for each invoice payment made one at a time.
    So, I have a requirement where in need to generate a sequence number in of the fields of the extext template. When the first file is send to bank, the sequence should be 1, for the second run the sequence should display 2 and so on.
    Here we cannot use the <RESET AT LEVEL> as RECORD or LEVEL as we need to control the sequence outside the etext template and in the database. So, I believe we should use PERIODIC_SEQUENCE that controls the value in database level.
    My question is how to achieve the relation between the database value and the etext template value.
    ex:
    <DEFINE SEQUENCE> allrecordsequence
    <RESET AT LEVEL> PERIODIC_SEQUENCE
    <INCREMENT BASIS> /outboundtransaction/paymentsequence[sequencename=allrecordsequence]/lastvalue + 1
    <END DEFINE SEQUENCE> allrecordsequence
    In the etext template
    sequence(allrecordsequence)
    The value in the etext template is always generation as 1, as the database record paymentsequence/lastvalue is null.
    Here is the user guide notes:
    Reset at Level
    The reset at level subcommand defines where the sequence resets its starting number. It is a mandatory subcommand. For example, to number the payments in a batch, define the reset at level as Batch. To continue numbering across batches, define the reset level as RequestHeader.
    In some cases the sequence is reset outside the template. For example, a periodic sequence may be defined to reset by date. In these cases, the PERIODIC_SEQUENCE keyword is used for the reset at level. The system saves the last sequence number used for a payment file to the database. Outside events control resetting the sequence in the database. For the next payment file run, the sequence number is extracted from the database for the start at number (see start at subcommand).
    But the sequence value in the database is not getting incremented.
    Appreciate an early response as it is really urgent.
    Thank you in advance.

    I have developed the solution using the below approach-
    Requirement - ( My requirement was a little different to what was mentioned above)
         To generate a sequence number in the e-text template of a invoice payment file.
         In a day when the first file is send to the bank, the sequence should be 1, for the second file the sequence should be 2.
         For the next day run the sequence value should be reset to 1.
    Approach 1) Use the IBY_FD_EXTRACT_EXT_PUB hook and Use sequence in the e-text template.
    GET_INS_EXT_AGG procedure is called once only for the payment instruction.
    It will add XML data element under OutboundPaymentInstruction tag.
    Add a new XML tag with the successful count of the formatted payments in a day.
    SQL query.
    SELECT COUNT (1)
    INTO v_payment_count
    FROM iby_payments_all a
    WHERE UPPER (a.org_name) = <org_name>
    AND UPPER (a.payment_profile_sys_name) =
    'profile system name'
    AND TRUNC (a.creation_date) = TRUNC (SYSDATE)
    AND a.payment_service_request_id <
    (SELECT MAX (b.payment_service_request_id)
    FROM iby_payments_all b);
    In the e-text template use the sequence number
    <DEFINE SEQUENCE>     RecordSeq1
    <RESET AT LEVEL>     OutboundPaymentInstruction
    <INCREMENT BASIS>     LEVEL
    <START AT>          1
    <END DEFINE SEQUENCE >     RecordSeq1
    While referring to the sequence use :- SSPN_PAYMENT_COUNT + SEQUENCE_NUMBER(RecordSeq1)
    to get the latest count of payment files.
    Approach 2) Using payment system
    <DEFINE SEQUENCE>      RecordsSeq1
    <RESET AT LEVEL>      PERIODIC_SEQUENCE
    <INCREMENT BASIS>      LEVEL
    <START AT> /PaymentSequence[SequenceName=’RecordsSeq1’]/LastValue + 1
    <END DEFINE SEQUENCE > RecordsSeq1
    By using a PERIODIC_SEQUENCE it will periodically generate the numbers.
    SEQUENCE_NUMBER(RecordsSeq1) is used to generate the number.
    I believe we need to have a payment system defined and associate the same to a Payment Process Profile.
    Only then can it have association with the last sequence number in the database.
    Please correct me if the Approach#2 set up is incorrect.
    Since Payment system was not necessary for the payment profile that we have used I have used approach 1
    Approach 2 can be used as a guideline :)

  • Header and Footer in eText outbount Template

    Output generated with etext template needs Header and Footer margins fixed in Oracle Payments of R12 which has multiple invoices with more than 1 page.
    The template was designed with 60 lines per page, when generating the output say for example 100 invoices payment, the header(7 lines) and
    footer(3 lines) margins must be fixed and remaining 50 lines must print the
    invoices details and continue printing in next page leaving the header and
    footer margins which were fixed. That is between the header and footer margins
    the invoice details has to be printed.
    My query is how to fix the Header and Footer margins in etext outbound template?
    If anyone has solution pls. send me that.
    Appreciate your help in advance.

    hi..
    chk this presentation...
    http://csc-studentweb.lrc.edu/swp/Berg/articles/NW2004s_what_is_new.ppt#352,3,Why NW 2004s?
    http://www.sap-hefte.de/download/dateien/1090/086_leseprobe.pdf'
    hope this helps...

  • How to use XDOXSLT in rtf template layout for etext template creation

    <DEFINE CONCATENATION>     BookDetails
    <BASE LEVEL>     Category
    <ELEMENT> Name || '/' || Price     
    <DELIMITER>      '/'
    <END DEFINE CONCATENATION>     BookDetails
    With EFTProcessor the above details are created in xsl file as follows
    <xsl:template name="CONCAT_BookDetails">
    *I need to declare one more variable here
    EG: <xsl:value-of select="xdoxslt:set_variable($mycount, count(.//Category))"/>
    --and use this variable for any dyanamic process inside this template. How to achieve this in rtf template by declaring a xdoxslt function. How to declare this
    syntax in rtf layout so that it creates a varibale in xsl template using the EFTProcessor. Please help me out. The main point here is to include xslt functions in
    rtf template layout for etext template creation.*
    <xsl:for-each select=".//Category">
    <xsl:call-template name="CONCAT_BookDetails_V"/>
    </xsl:for-each>
    </xsl:template>

    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

  • How to Print multiple Records under one level in Etext templates.

    Hi,
    I am working on the Etext templates and customizing the standard template “US NACHA PPD FORMAT”.
    This standard template don’t have a addenda record.. I have modified and it is working for single Addenda records. But when I have multiple ADDENDA records to be printed in one particular *<outboundpayment>* level, it is not printing.
    How do I modify the template so that Multiple Addenda records get printed?
    Note:     I have multiple *<MyPayables>* tags under *<OutboundPayment>* tags.
    Please help me in understanding this…
    Regards
    Pradeep G

    What you probably need to do is generate each bio
    individually with the
    <cfdocument...> tag just the way you want them. And
    then use some of
    the advanced <cfpdf...> functionality that allows you
    to append two or
    more individual PDF's into a single large PDF.
    Here are some resources that describe some of the
    <cfpdf...> functionality.
    http://www.coldfusionjedi.com/index.cfm/2007/7/9/ColdFusion-8-Working-with-PDFs-Part-1
    http://www.coldfusionjedi.com/index.cfm/2007/7/10/ColdFusion-8-Working-with-PDFs-Part-2
    http://cfpdf.blogspot.com/
    http://cfpdf.blogspot.com/2007/06/cfpdf-action-merge_27.html
    http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=cfpdf_02.html

  • Preview Etext template in XML Publisher Desktop (Template Builder)

    Is there a way, or are there plans, to be able to preview an eText template using the template builder, in MS Word, like you can with PDF type templates. This is a great feature when creating PDF output and saves a lot of time. It would be great to be able to do the same for eText templates.
    Cheers,
    Dave

    You can create a dummy data definition and dummy template(etext) in xml publisher admin responsibility.
    For the Data definition , in the bottom if you scroll down you will see a link for upload preview xml data file.
    After uploading the xml file access your template and you can see a preview icon.If you click it you will see a txt file popping up
    thanks
    prasanna

  • Sum of void and normal payments in Etext for Positive Pay

    Hi
    Have a question on EText
    My situation is that
    For example, i have the following amounts(issuin checks)
    100
    200
    300
    When I void 100$ total will be 500
    In oracle When we void it wont get a -100 amount.XML TAG SHOWS only +100.
    This is the issue..How can I get sum=500 in Etext
    In the last section with positivepayextract I sum up amounts..But I end up in 600 not 500
    How can I fix this?
    thanks
    kp

    Hi Vetri
    following is how xml looks like:
    <PositivePayDataExtract>
    <OutboundPayment>
    - <PaymentStatus>
    <Code>VOID</Code>
    <Meaning>VOID</Meaning>
    </PaymentStatus>
    - <PaymentAmount>
    <Value>100</Value>
    </OutboundPayment>
    <OutboundPayment>
    - <PaymentStatus>
    <Code>ISSUED</Code>
    <Meaning>Printed</Meaning>
    </PaymentStatus>
    - <PaymentAmount>
    <Value>200.19</Value>
    </OutboundPayment>
    </PositivePayDataExtract>
    When the detail records are @ level of <Outboundpayment> group. Here this will go for 2 times like for
    example
    accountno123 check no0001 100 ABC Corp
    accountno234 check no0002 200 ABC Corp
    Now when I write SUM @level of <PositivePayDataExtract> group..So it goes for only ONCE.
    totaldetail_record_count=2 total_amount_300 ....[should be 200-100=100]
    When I write your syntax like @<PositivePayDataExtract> group it just check ONLY ONCE and at the first record it cheks for condition
    SUM((OutboundPayment/PaymentAmount[OutboundPayment/PaymentStatus/Code ='ISSUED']/Value))
    SUM(OutboundPayment/PaymentAmount/Value
    [OutboundPayment/PaymentStatus/Code=’VOID’])
    BUT it DOES NOT go to 2nd record.
    Bank wants SUM in one line..and still struggling..
    Any thoughts?
    thanks
    kp

  • Can we have a for loop/ the loop control construct in an etext template?

    Hi All,
    Can we have a loop control construct in etext templates?
    I have to print a remittance advice of only 11 invoices per page only. How can I do this?
    Your help in this regard is really appreciated.
    Rgds,
    Kiran Panditi

    Hi Ravi,
    Do you use SharePoint Designer 2007?
    Have you tried to use sequence approval workflow with participants in serial order?
    http://office.microsoft.com/en-001/sharepoint-designer-help/understand-approval-workflows-in-sharepoint-2010-HA101857172.aspx
    If you use SharePoint Designer 2013, there is an "loop" operation available you can take a look.
    http://prasadtechtactics.blogspot.in/2012/07/sharepoint-designer-2013-workflows-part_24.html
    Thanks
    Daniel Yang
    TechNet Community Support

  • Need to Generate a eText File for Payments

    Hi,
    I have a requirement to generate a eText Outbound file using Payment Process profile. I have understand the basic steps and template we need to use to generate the eTEXT output.
    Q1. But here is my question is that the XML tags will be repeated for more than one invoice then the below tags will repeat like this. For this case how to read the two blocks.
    Normal rtf we will use the loop condition but here how to use this in eTEXT file format. Please provide some example.
    Q2. And also if the multiple blocks will contains different data but here I need to print all the data in a single line up to a fixed length then again I go for second line if the fixed length
    reaches the maximum limit.
    <DocumentPayable>
    <DocumentNumber>
    <DocumentInternalIDSegment1>30076</DocumentInternalIDSegment1>
    <DocumentInternalIDSegment2>83026</DocumentInternalIDSegment2>
    </DocumentPayable>
    </DocumentNumber>
    <DocumentPayable>
    <DocumentNumber>
    <DocumentInternalIDSegment1>100100</DocumentInternalIDSegment1>
    <DocumentInternalIDSegment2>123456</DocumentInternalIDSegment2>
    </DocumentPayable>
    </DocumentNumber>

    Hi Prasana,
    Here is the dll compile in CVI. You should be able to use the file import the driver.
    The best thing would be for you to be able to compile the driver in case you want to modify something. You will also need to install the CVI run-time engine:
    CVI Run-time Engine
    With a little work you could compile the driver with MSVC++. You just need to replace some functions. At a glance, this are some of the functions that need to be changed.
    The first thing would be to use the NI-488.2 driver interface for MSVC++. You would only need to replace the header file with the ni488.h file. It would be a good idea to replace the OpenDev a
    nd CloseDev functions with the ibdev and ibonl functions. Make sure you include the object file in your project settings.
    The other function, which might require more work is the Fmt function. This is a CVI specific function to perform string formatting. You could replace with one of the standard library C functions, such as sprintf, to do the formating. Or you could redefine the Fmt using these standard functions.
    Hope this helps.
    DiegoF
    National Instruments.
    Attachments:
    hp8165.dll ‏50 KB

  • Problem in Formatting Number in eTEXT template

    Hi All
    We want to format the payment amount for check in the eTEXT template.
    We want a number with 2 digits after decimal point and a comma before 3 digits to the decimal point.
    We tried using
    Number, ####,###.##
    But for the data 135 it is printing 0000135.00, But we want it in 135.00
    Similary for data 1356.7, we would like to have 1,356.70
    I tried with some trial and errors, but no luck.
    your help is appreciated.
    Thanks & Regards
    Naga

    it should work,
    I would like to see your template,
    drop me xml and template to my id , its in profile.

  • Junk characters in etext report

    Hi all,
    I have 3 data tables in my etext .rdf template .This telmplate is for eft format report.
    The output report for the 1st and 3rd data table is ok in terms of display ,but I get '????????????????' in my through my 2nd data table in the report output .
    I lack experience in bi publisher
    could someone please suggest tips ?
    ta
    s

    What is your database characterset?
    Please see these docs.
    How to Setup Pasta Quickly and Effectively [ID 356501.1]
    How To Generate And Print Reports In PDF Format From EBS With The UTF8 Character Set [ID 443778.1]
    How To Print XML Publisher PDF Reports From The Concurrent Manager [ID 338990.1]
    Arabic Data Appears As Junk , Currently using Forms Patchset 16 & XML [ID 755786.1]
    Thanks,
    Hussein

  • Preview of Fixed Position Based eText template displays the formatting

    Hi,
    I am trying to create an EFT template using the eText Fixed Position Based instructions. I copied an existing Fixed Position Based template and made the changes that were needed. When I hit the Preview link, it displays the payments in the formatted template, not in the output that I'm trying to create by using the template.
    Can anyone tell me what step I'm missing? I have created other types of templates and they preview fine.
    Thanks

    There is no difference between DELIMITER_BASED and FIXED_POSITION_BASED
    you can pick up the fixed and convert it into delimiter based,
    allowed columns are MaximumLength,Format,Data,Tag,Comments. delete the rest of the columns.
    And for DELIMITER_BASED templates,After every data field row,you have to insert a delimiter row and put appropriate field delimiters in separate rows between the fields.

  • How do I set the delimiter to Tab in a etext template?

    HI , I would like to set a tab delimiter for an etext rtf template. Does any one know what section do I enter the parameter to do this (format,data level, detail, does it matter)? Also what is the correct snytax and the value for the tab delimiter? Thanks in advance!
    Matt

    I'm just starting a sizeable eText setup and I agree it's not documented well. I found useful analyzing the XDO file, which is created off the RTF template and used to actually process the XML data. Gives more clues on how the RTF needs to be structured. Issues I'm running into is that the RTF->XDO conversion is what it is, so there may be a need for custom pre-post- update of the XDO and/or the final output. But still beats formatting by hand.

  • Date formats and etext templates

    I have been working with etext templates in the last few days and am struggling with date conversion. My XML file has dates in the format DD-MON-YY and my output requires DDMMYYYY. It seems that the format conversion in etext template only works when the xml date is in the format YYYY-MM-DD. I thought I would convert the DD-MON-YY using a combination of TO_DATE and TO_CHAR but TO_CHAR doesn't seem to accept the date mask in etext templates. It looks like I will have to modify the original report unless someone has a way to achieve this in the template.
    Thanks,
    Dave

    I had to change the report. You may be able to change the setup in the reports server to alter the default date format but I didn't want to do that in case it affected the output of any of the other reports that are being run. (N.B. I haven't tried this myself so not sure it can be done).
    The change to the report is pretty simple, I just added a formula column that took a copy of the standard column in the report and used to_char to reformat the date. In my case I reformatted to YYYY-MM-DD so that I could use the template to change the format to the required style. This is just in case there is a later change in the output style so I won't have to modify the report again.
    When the date in the XML is in the format YYYY-MM-DD the documented formatting options work (e.g. "Date , DDMMYYYY" would convert "2005-10-26" to "26102005").

  • Save output of BIP report that uses etext template

    Hi,
    I have made a BIP report using etext template and when I click on View, it displays the data fine. But I want to save this as a text file with all the formatting intact. If I try to Export, the formatting goes haywire in the resultant txt file.
    Can anyone advise me how to save this as a txt file without disturbing the formatting?
    Thanks
    MS

    HI ,
    I'm new to Bi Publisher.Please help in creating the etext format. Can u exlpain me the step by step basic procedure.Is it a word or rtf format but while loading giving an etext file. Because only etext format can be burt to csv file. pleasse help me . maile me to [email protected]

Maybe you are looking for

  • Mail receipt error

    Dear All, I am working OBIEE 10.1.3.4 in linux machine. When i create iBots i set delivery content in HTML formate,it's working fine. When i set PDF formate.I can received mail but i cant view the PDF. As well as i can't view the report answer page i

  • How to change background movie in CS5?

    When I try to delete a background movie it errors "cannot be deleted because it is in current use"  How do I detach it from the project to swap in another movie?

  • VOD doesn't work properly and customer service sucks!!!

    I contacted Verizon on 5/2 about my problem. I was told there was an outage and it would be fixed within 24 hours. 36 hours have come and gone and still no resolution to my problem, so I call back and I am told it will be another 12 hours or so until

  • How to restrict decimal point entry in numeric field?

    Hi All, There is a requirement from our client that, they cannot accept amount in decimals. That is, they cannot accept the cents, the amount that can be received from them is only in EURO and the same will be entered in the field. They want me to re

  • What product do I need to easily cut and paste parts of a photo?

    What product do I need to EASILY cut and paste parts of a photo