Procedure to track - I/U/E records in package

Hello All,
Am trying to build a procedure to track Insert/Update/Error records from the last interface in the package. For for some silly reason it gives SQL error. Can any one, help me find what's wrong?
Here's the content of the procedure:
INSERT INTO ODI_AUDIT_CT
(STEP_NAME,INSERT_COUNT,UPDATE_COUNT,ERROR_COUNT,PROCESS_DATE)
VALUES
('<%=odiRef.getPrevStepLog("DATALOAD_REV_STPROD")%>',<%=odiRef.getPrevStepLog("INSERT_COUNT")%>,<%=odiRef.getPrevStepLog("UPDATE_COUNT")%>,<%=odiRef.getPrevStepLog("ERROR_COUNT")%>,<%=odiRef.getSysDate("PROCESS_DATE")%>)
Error:
BeanShell script error: Parse error at line 8, column 10. Encountered: ( BSF info: INSERT_UPDATE_COUNT at line: 0 column: columnNo
out.print("INSERT INTO ODI_AUDIT_CT\n(STEP_NAME,INSERT_COUNT,UPDATE_COUNT,ERROR_COUNT,PROCESS_DATE)\nVALUES\n('%=odiRef.getPrevStepLog(\"STEP_NAME\")%>',") ;
out.print(odiRef.getPrevStepLog("INSERT_COUNT")) ;
out.print(",") ;
out.print(odiRef.getPrevStepLog("UPDATE_COUNT")) ;
out.print(",") ;
out.print(odiRef.getPrevStepLog("ERROR_COUNT")) ;
out.print(",'") ;
out.print(odiRef.getSysDate(<"PROCESS_DATE">)) ;
out.print("')") ;
****** ORIGINAL TEXT ******
INSERT INTO ODI_AUDIT_CT
(STEP_NAME,INSERT_COUNT,UPDATE_COUNT,ERROR_COUNT,PROCESS_DATE)
VALUES
('%=odiRef.getPrevStepLog("STEP_NAME")%>',<%=odiRef.getPrevStepLog("INSERT_COUNT")%>,<%=odiRef.getPrevStepLog("UPDATE_COUNT")%>,<%=odiRef.getPrevStepLog("ERROR_COUNT")%>,'<%=odiRef.getSysDate(<"PROCESS_DATE">)%>')

I should have mentioned that am using 'IKM - SQL to Essbase'
This is actually due to the Hyperion KMs uses native utilities to do the load versus the regular jdbc SQL statements, so the No. of Inserts, No. Of updates and No.of deletes are not counted and returned. This is enhancement request Bug 6898973.
So again to work arround ,we were told to modify the Hyperion adapters .
odiRef.getPrevStepLog function can't capture the records unless those(No. of inserts, No. of updates and No. of deletes) displayed in operator log. So to display those records we need to modify the Hyperion KMs with the following code and then you can use the odiRef.getPrevStepLog function to cature the error records.
statString = stats.toString()
st=statString.split("\n")
inserts = long(st[1].split(":")[1])
errors = long(st[2].split(":")[1])
odiRef.setNbInsert(inserts)
odiRef.setNbErrors(errors)
Thanks.

Similar Messages

  • I'm trying to record audio into my iPad2 using GarageBand and an iRig, but I can't monitor my tracks at the same time as recording, meaning if I lay down a drum track and attempt to record guitar, I can't hear the drums while recording. Thoughts?

    I'm trying to record audio into my iPad2 using GarageBand and an iRig, but I can't monitor my tracks at the same time as recording, meaning if I lay down a drum track and attempt to record guitar, I can't hear the drums while recording. Thoughts?

    Hi, I have this exact same problem. I haven't been using an iRig, just a cheap USB-jack cable. I managed to do this with the first cable I bought, but since it broke I've been unable to find a replacement that allows me to hear the drums while recording. DId you manage to get over this issue? If so I would really like to know how. Thanks and best wishes.

  • How to keep track of how many records to display in a page.

    Hi All:
    I am using Weblogic 9.2, Web Services Client, and Struts.
    I have a java client in struts that calls a web services.
    The "ID" field contains a Java integer.
    The "First_Name" is a Java String.
    The "Effective_Date" field is a Java date field.
    The web service returns an arrayList of a class called Result.
    Code for Result.java:
    >
    public class Result
    int id;
    String first_Name;
    Date effective_Date;
    public int getId
    return id;
    public void setId(int id)
    this.id=id;
    public String getFirst_Name()
    return first_Name;
    public void setFirst_Name(String first_Name)
    this.first_Name = first_Name;
    public Date getEffective_Date()
         return effective_Date;
    public void setEffective_Date(Date effective_Date)
         this.effective_Date=effective_Date;
    From the arrayList, I displayed the result as the following:
    ID FIRST_NAME EFFECTIVE_DATE
    3 John 9/10/2007
    2 Andrew 1/11/2006
    5 Peter 3/4/2006
    The "ID" header is a link.
    The "First Name" header is a link.
    The "EFFECTIVE_Date" is a link.
    If I clicked on the link "ID", the first time, it will sort the rows in ascending
    order like the following:
    ID FIRST_NAME EFFECTIVE_DATE
    2 Andrew 1/11/2006
    3 John 9/10/2007
    5 Peter 3/4/2006
    If I clicked on the link "ID", the second time, it will sort the rows in descending
    order like the following:
    ID FIRST_NAME EFFECTIVE_DATE
    5 Peter 3/4/2006
    3 John 9/10/2007
    2 Andrew 1/11/2006
    If I clicked on the "First_Name" field the first time, it will sort the rows in
    desceding order.
    If I clicked on the "First_Name" field the second time, it will sort the rows in
    ascending order.
    This applies the same for the "EFFECTIVE_DATE".
    If the arrayList returns 80 records of class Results.java.
    I needed to displayed only the first 50 records for the first page and 30 records for the second page.
    How do I keep track of that so that when I am in the second page, I know to display only record 51 to 80?
    If I have a arrayList that returns 120 records of class Results.java.
    In the first page, it displayed only 50 records.
    In the second page, it displayed only 50 records.
    In the third page, it displayed only 20 records.
    Assuming I am able to sort the rows by ID, FirstName and Effective_Date by using Results.java implementing the
    Java Comparator class. Is it still possible to keep track of how many records displayed in the first page and how many records should
    be dispalyed in the second page?
    Any hint would be greatly appreciate.
    Yours,
    Frustrated.

    Hi,
    Access the table through SM30. It comes blank as standard. Click "New Entries" and make entries for changes to be tracked. For example, whenever an org. unit changes 002 and 003 relationship, you will make entries like:
    01 O 1001 B002 Activate box checked
    01 O 1001 B003 Activate box checked
    Here, 01 is your active plan version, O is org. unit, 1001 is infotype and B002 and B003 are the subtypes. You can also use * for infotype and subtype which means every change will be logged.
    If you then run the report RHCDOC_DISPLAY through SA38, it will pick up all the changes pertaining to B002 and B003 relationship for org. units (in the above example).
    Similarly, you can set up this table for other object types.
    For more information, follow SPRO>Personnel Management>OM>Basic Settings>Activate change documents and go through the documentation for that node. Also, read up the documentation for the report.
    Hope this helps.
    Donnie

  • I'm trying to multi-track using an m-audio device, I can record my guitar fine. However, I want to create a new track so I can record an acoustic tambourine over the top. Instead it records the original guitar as well as tambourine? its really annoying

    I'm trying to multi-track using an m-audio device, I can record my guitar fine. However, I want to create a new track so I can record an acoustic tambourine over the top. Instead it records the original guitar as well as the tambourine coming out with a really distorted sound. I've managed to record over the top of a guitar before and add diferent riffs and sounds but I've tried all of the settings but its still not working. Basically I want to record different tracks without it recording my previous guitar riffs as well. Help would really be appreciated.

    Ah that was it, thanks a lot common sense really but thanks for the help

  • Tracking deleted pricing condition records

    Hello,
    I Have a condition record for a condition type with a  particular price of USD 100 with validity date from 1.10.09 to 30.10.09.
    Now we create another condition record for the same condition type with a new price of USD 50 with same valid date from 1.10.09 to 30.10.09..
    So now the systems delete the old condition reocord of USD 100.This is standard sap.
    Now I want to know is there any way of tracking the deleted condition records like  the ones the system has deleted. If there is no standard report and if we have to develop a Z report, then how to develop that since the tables do not contain the old conditon records.
    regards
    sachin

    Hi,
    Yes, from the condition table that you are going to maintain the condition records (check the condition table assigned to the access sequence, from the condition type), we will get all the condition records maitained for specific combination/material
    Now go to se16 and enter the condition table name and give the proper selection criteria then you will get all the condition record numbers maintained to your selection with validity dates. then you can go to KONP and pass the condition record and you can get the condition values for that particular combination with proper validity dates.
    (Actually from VK13/VK12 based on validity date that we have mentioned in the selection screen will display the condition record valid on that paricular date, from the system those condition records will not be deleted at all)
    OR
    There are two possible methods of displaying change documents:
    Choose Environment -> Changes -> For condition record.
    Change data for the selected condition record(s) will be displayed.
    Choose Environment -> Changes -> Report.
    A selection screen will appear where you can choose multiple criteria for displaying change documents. The result of the selection report is displayed.
    Regards,
    Satya

  • No Audio Track is enabled for recording message

    I'm a beginner in Mac and would appreciate some help in sorting out a problem with Garageband podcasting on iLife '06.
    When I choose female voice and press the red RECORD button, I get this message: "No Audio Track is enabled for recording". I have done some tests in the past which were ok. Have I accidently changed the settings? I checked input and output devices (usb external mic and speaker headset is recognised and that voice and not instrument selection is made.
    Can anyone help me please. Thank you.

    To enable a track choose the track and click on the
    small button icon on the right just under the track
    name. The button will be red when enabled.
    I'm looking for such a button and don't see one. AFAICT the track name is "Male Basic." Near the track name I see three buttons: mute/unmute, solo, and show/hide volume curve. But that's it. To the right of that are the mixer controls, and no other obvious buttons that I can see. What does or should the button look like? And are we both referring to the same version of GB? I'm wondering if a later version of GB has the button, but version 1 doesn't?
    BTW I have looked through the docs (the At-A-Glance and the 3 tutorial PDFs) that came with the installation, and using Preview's Search function, can find no instance of the string "enabl" in any of the documents. Nor is it anywhere in Help.
    Thanks again...

  • My Audio And Software Tracks are quiter when Record Enabled with Plugins on

    When my tracks are armed to record the volume seems much quieter...Then after I record the take and playback its full volume;;; I think its a preference I accidently set??...Example..
    If I have a piano software plug on, its quiter during recording then playback..But even during playback, if that track is highlighted on Arrange its quite,,,I have to un highlight the track...Even when recording audio if Im perhaps using channel strip settings??...Ideas>>>????? Anyone??/

    Bee Jay wrote:
    I do tend to assume a certain level of experience some times...
    I think everybody tends to do that - including the questioners. So don't be too hard on yourself...

  • Recording scratch narration track...no recording icon?

    Help!
    I am currently testing a trial version of Adobe Premiere Pro CC.
    I am trying to record a narration track.
    I have hooked up my M Audio firewire device, and input and output is being seen in my computer's sound display.
    I have gone through the audio hardware settings and changed that. But when I select an empty track, there is no recording icon option available in the Audio Clip Mixer. I only have mono, stereo and write keyframes.
    I have restarted my computer 4 times that's not helped....
    Any thoughts? or help!

    You star! Where do I find the Track Mixer - the Clip Mixer is the only one i can see on my source options...

  • Tracking Data Changes with Record History (WHO)

    Hi all ,
    I've a custom form & i need to Tracking Data Changes with Record History (WHO) will anyone show me example of how it's done because i tried to go through the application developer guide but unfortunatelly this part isnot tht clear with me
    waiting your reply
    thanks

    Hi,
    Good question, a colleague asked me the same yesterday - i will find out officially for you.
    Regards,
    H

  • Need help on TRacking Jobs history of an ETL package

    Hello there, Kindly Elaborate me the way to track Job history of my ETL package.
    For Sample I am running that package on my local Server.
    i need a SQL Server tAble, Which Gives me following information
    -Name of the package
    -TYpe of job.: Etl or TSql
    -Is_SuccessRun
    -LAst run time
    -ErrorRun
    -Last Execution time Taken by the ETL.
    Kindly Guide me on this,
    Thanks in advance

    Hi Aditya,
    We cannot integrate the package execution information into the job history.
    This sysssislog table is created in the msdb database when we install SQL Server Integration Services. If you configure logging to log to a different SQL Server database, a sysssislog table with this format is created in the specified database. So, whether
    the sysssislog table in the MSDB database or in a specified database depends on how you create the connection manager for the SSIS log provider for SQL Server, and either one is okay.
    For more information about implementing SQL Server logging, please see:
    http://www.bidn.com/blogs/ShawnHarrison/ssis/2436/basics-of-ssis-logging-part-1-enabling-and-using-sql-server-provider 
    http://www.msbiguide.com/2013/10/logging-in-ssis-sql-server-log-provider/ 
    In addition, you can implement custom logging using event handlers:
    http://consultingblogs.emc.com/jamiethomson/archive/2005/06/11/SSIS_3A00_-Custom-Logging-Using-Event-Handlers.aspx
    Regards,
    Mike Yin
    TechNet Community Support

  • How to find who has created the determination records for packaging instruc

    how to find who has created the determination records for packaging instructions in POF1.
    need to find the user details from POF3.
    can any one plz suggets me.

    Sunny,
    Go to POF1 click on determined record -> Display -.> enter-> F8 then -> double click on the record for which you want to see the responsible person ->click on admin. data tab here u will find the responsible person. hope u got the right answer.
    Ravi Thapliyal
    IdhaSoft

  • Pricing Procedure and automatic triggering of condition records

    Dear Gurus,
    I am a junior SAP SD consultant.
    At the moment I am customizing SAP to generate sales documents and am using a standard pricing procedure called: RVAA01
    At T-Code: V/08 when you access the reference steps of that pricing procedure you see a lot of steps ranging from
    step 8 to 971
    At sales order level VA01,  once you have entered a PR00 condition record in VK11, and you click to view the pricing procedure:
    - Why does the system only selected those basic conditions and not more?
    PR00
    AZWR
    MWST
    SKTO
    VPRS
    - How does the automatic selection process occur in the pricing procedure to have hundreds of steps ready to use to finally come down to those 5 steps at sales order level?
    Your help is greatly needed
    Regards
    Chris

    Whatever condition types you see in pricing procedure the same will be in V/06 where you can also see three fields
    a)  Access Sequence
    b)  Header condition and
    c)  Item condition
    All your condition types that flows into your sale order will depend on these settings.
    Normally, all item condition types will have access sequence assigned on top right for which, you will have to have relevant tables assigned in V/07.
    Whatever tables you maintain in V/07, based on this combination, you would be maintaining pricing in VK11 for that condition type.
    Based on the above settings, when you create a sale order, system will search for the required combination and fetch the pricing.  This is for item level condition type.
    For header condition type, you will not be having access sequence assigned in V/06.  You can key in manually in sale order at header level condition tab so that the corresponding value will be bifurcated equally to all line items.
    thanks
    G. Lakshmipathi

  • How do I get iTunes to provide track names on home recorded music?

    How do I get iTunes to provide track names when I burn a CD of home recorded music?

    Audio CDs do not contain track information. For commercial CDs this information is supplied by the Gracenote service (see below).  Each computer gets this information for a particular CD from this service, it isn't on the CD.  You would have to register your CD with Gracenote.  In my opinion this is a bit much for a personal CD that only a few computers in the world will ever see, but I guess unless they block it then you can do it.
    How iTunes remembers audio CDs - http://support.apple.com/kb/TA27785
    What are all those iTunes files? - http://www.macworld.com/article/139974/2009/04/itunes_files.html - "iTunes Library Extras.itdb contains some Gracenote CDDB information."
    = Registering a CD with Gracenote =
    Stick CD into drive
    In iTunes enter track information by hand
    Advanced > Submit Track name...
    Reference: http://songwrite.wordpress.com/2010/05/28/how-to-submit-your-cd-tracksong-inform ation-to-gracenote-using-itunes/

  • Can't hear an audio track that I have recorded.

    I recorded an audio track through my preamp to my motu interface and it displayed the wave form in the track but I never heard it through the headphones of the interface when I was monitoring and during recording or in playback. I did in that project. hear all the other midi files I had been arranging. This seems strange I can see it but not hear it. I checked my audio set up to run in and out of the PCI on the Motu unit. So where is that sound then?
    thanks for your gracious help.
    Jason.

    Is the audio file placed on an audio track (no instrument or midi track)?
    Did you select the correct output for this audio track?
    (sorry for the question: any mute or solo buttons turned on?)
    To hear your recording signal during recording you have either to switch "Software monitoring" to on or use the direct monitoring of your audio interface. Software monitoring routes the recorded signal through logic which will cause latency. Direct monitoring will reduce latency but you have to setup your audio-interface mixer properly.
    Eddie

  • Tracking Changes for Single record in Data Dictionary

    Hi Experts,
    I encountered with this question in an interview. I was asked how to maintain/track changes for a particular single record in a Data Dictionary table. I knew that for an entire table we can do it using table maintenance events. But I was confused when the interviewer asked for one particular record in table. Kindly input your thoughts on this.
    Thanks.

    Hi Radhika,
    In case of record in a table we can use "log data changes" option (Table DBTABLOG) in Technical Settings > Log data changes. It enable writing of change documents in Tables CDHDR/CDPOS.
    Hope this helps.
    Regards,
    Naveen

Maybe you are looking for

  • FF4 Mac: Can't show "Downloads" window

    I don't seem to be able to view the "Downloads" window in FF4. (FF3.6 works fine however). Methods I've tried: * Command + J * Tools menu -> Downloads * Window menu -> Downloads (yes, it shows in the Window menu) * Expose (the main firefox window is

  • Setting up LAF

    I'm trying to change how my java app looks so i've gone to www.javootoo.com and downloaded a theme. from that i've got a .jar file. Now being a noobie I don't know how to set it up. I setup a CLASPATH environment variable but then I can't compile my

  • Access embedding pdf attachment image.

    Well, is there a way to access the parent PDF's attachment image files the swf file's embedded in? (What I'm trying to do is make a catalogue flipper. I want to make a generic flipper swf, and then use PDF to package it along with the image files. If

  • Pre-requisite for exam 1Z0-147?

    Hello, I am planning on getting the Oracle PL/SQL Developer Certified Associate. I am not sure on which exam I should take prior to the 1Z0-147. Which one is best: 1Z0-007 or 1Z0-001? Thanks for your help, Patricia.

  • Costing consignment materials

    I'm having an issue costing materials that only have consignment info records.  Is there any way to make the costing run choose a consignment info record to cost a material?  I have tried the special procurement key as well as the special procurement