Validate whether all the records are present in the list before writing

Hi,
I have the below code:-
List<CustomerVO> custlist = new ArrayList<CustomerVO>();
for (CustomerVO customerVO : custlist) {
try {
saveRecord(customerVO);
} catch (Exception e) {
custlist.add(customerVO);
     if(){ // Here i need to compare whether all the records in the list are processed and there is no more records
// if so i wrire the all the error details at once by calling the writeErrorDetails
     writeErrorDetails(frbVOlist);
Here in the if block I need compare whether all the records in the list are processed and there is no more records to process ,
if so write all the error details at once by calling the writeErrorDetails in the .TXT file.
The problem here is, how i will know whether the all the records are processed from the custList, so that I can write all of then atonce.
If the If conditional block is not there, then for each record failure a separate .txt file will be created. Hence if there are 4 failed records
then 4 .txt error file will be generated. Which should be avoided and i want to write all the 4 failed records in a single .txt file.
Hence, what may be the If condition i need to check from the list whether all the records are processed. Please , let me know your opinion.
Thanks.

797836 wrote:
List<CustomerVO> custlist = new ArrayList<CustomerVO>();
for (CustomerVO customerVO : custlist) {
try {
saveRecord(customerVO);
} catch (Exception e) {Look at the following statement in the catch block.
custlist.add(customerVO);Is this correct? Why are you adding the faild record to the custlist again? I think, it should be like,
frbVOlist.add(customerVO);
     if(){ // Here i need to compare whether all the records in the list are processed and there is no more records
// if so i wrire the all the error details at once by calling the writeErrorDetails
     writeErrorDetails(frbVOlist);
}Call the writeErrorDetails(frbVOlist) after the end of the for loop by checking the size of the frbVOlist > 0.

Similar Messages

  • All my loops are present in the browser, but when I drag a sound over it doesn't match.  With beats, I get no percussion sounds, just a basic 8-bit type sound.

    I had a critical failure on my Mac and have slowly been rebuilding it, but Garageband just doesn't want to cooperate.  This is actually a two-fold problem.   First problem is; all of my loops are in my browser and when I click on one for a preview sound, it works fine.  But, when I drag it into the project window I lose any the correct sound.  They still have sound, but it will be a basic "blip, bloop" type 8-bit sound.  This is namely with any kind of beats or percussion.  Say I try to use a Trip Hop loop, all I get is the blips and bloops but no hi-hats, no snare, no kind of percussion sound at all. 
    Second problem:  As I said before, all of my loops are correct in my loop browser, but they didn't seem to transfer over the MIDI sounds that I can usually choose from in the Track Info pane.  It still only has the most basic sounds to choose from.  Before, I had all the different MIDI sounds to choose from, such as Star Sweeper and the like, but those are all gone.  I've tried to drag-and-drop into that pane but it won't let me.
    I really hope that someone has an answer for this, I have a lot of projects I've been working on for a long time that are basically trash right now because I can't do anything with them.

    Missing Instruments:
    The pop-up menu at the top of the track info pane filters the instruments: Make sure it is set to "show all".
    I am not sure at all about your drums, however. You do not drag your drum-loops to tracks with different instruments, do you?
    What you describe, looks exactly like something where transposing the drum loops and shifting the notes. This would cause the beats to be mapped to different instruments. And this is not suposed to happen, when you set the key of your project or transpose the master track.
    Does this happen only in your account, or also when you launch GarageBand form a diffrent user account? You might create a new account forr testing, to explore this.
    Regards
    Léonie

  • Records are missing in the File which XI has placed in Target FTP server

    Hi All,
    I have a scenario where in XI is transfering the files from ECC to Target System . No transformation required here . I am using AAE to run this scenario.
    Issue i am facing here is that i can see few records missing in the File  which XI had placed in the Target system FTP server . Same file if i check it in archive folder of ECC (which XI has archived after picking the file), complete set of records are present for the same file.
    Need your inputs please....
    Note : XI is using AAE to transfer the files and no mapping . Also i tried to check out the audit logs in the channel monitoring . Unforutanely i was not able to see the logs to check the bytes that was transferred while readng and writing the file . Sometimes i have faced audit logs issue in PI 7.1
    Regards
    Vinay P.

    Please use temporary name scheme
    http://help.sap.com/saphelp_nwpi711/helpdata/en/44/6830e67f2a6d12e10000000a1553f6/content.htm
    hope this helps
    regards
    Ninad

  • Just installed CC on my PC, Windows 7, 64 bit system. Not seeing any applications on the desktop or installation folder. However, all the resource files are present in the installation folder. What am I doing wrong?

    Just installed CC on my PC, Windows 7, 64 bit system. Not seeing any applications on the desktop or installation folder. However, all the resource files are present in the installation folder. What am I doing wrong?
    I've installed three times with no luck. I downloaded the Creative Cloud Packager off the licensing site: https://licensing.adobe.com. I unpacked and choose my applications. The install seemed to be successful, but I don't so any of the applications anywhere.

    Hi,
    Creating package doesn't mean it will install the product,
    You will need to install the package now. Please follow the instructions mentioned in the below articles
    Creative Cloud Help | Creating or editing packages
    Creative Cloud Help | Deploying packages
    Please let me know if it doesn't help.
    Regards,
    Devendra

  • Huge volume of records are routing to the remote user other than his position and organization records. Synchronization and DB initialization taking more time around 36 hours.

    Huge volume of records are routing to the remote user other than his position and organization records. Synchronization and DB initialization taking more time around 36 hours.
    Actual accounts & contacts need to be route around 2000 & 3000 but we have observed lakhs of records routing into local DB.
    We have verified all the Assignment Rules, Views.
    We ran docking object visibility rules and we have observed that some other accounts are routing due to Organization rule passing. (these records are not supposed to route).
    Version Siebel 7.7.2.12,
    OS Solaris.

    let me know what would be the reason that 1st million takes only 15 minuts and the time goes on increasing gradually with the increase of dataYes that's a little strange. I only can guess:
    1. You are in archivelog mode and the Archiver is not able to archive the redo logs fast enough
    2. You don't use Direct Load and DBWR ist not able to write the direty block to disk fast enough. You could create more DBWR processes in that case.
    3. Make a snapshot of v$system_event:
    create table begin as select * from v$system_event;After the import run
    create table end as select * from v$system_event;Now compare the values:
    select * from begin order by TIME_WAITED_MICRO descwith the values given you by
    select * from end order by TIME_WAITED_MICRO descSo you can look where your DB spent so much time waiting for something.
    Alternativly, you could start a 10046 trace on the loading session and use tkprof.
    Dim

  • Setting the recording area

    Captivate v5.5
    This is most likely a dumb question - so I apologise in advance. I also hope I can explain myself clearly.
    The majority of my captivate projects are based on our web based tracking system which means I record onto the slides the majority of what I see on my monitor. I need to record what is inside the red square below, which as you can see is almost everything with the exception of Firefox menu bars at the top and my task bar at the bottom.
    How do I start off a new project in Captivate (v5.5) and set the recording area for all slides so it will cover the exact area I want to record (as above) ?
    Do I measure the area on the screen and then set the project size to be the same as the recording area? If so, how do you measure the recording area accurately as a ruler on the screen really is not very scientific.
    I recall in v4 or maybe v3, you could drag Captivate's the red recording box to fit the area - but I cannt see this option in v5.5
    Thanks in advance for any easy to follow help.
    NEL

    Hi Noel
    While I see you managed to "get there in the end", perhaps the following will help?
    When you begin to record, you can tell Captivate to record at a specific size. But your goal is to set the browser such that the client area is always at the consistent size, no?
    So try these steps.
    Open the browser.
    Use Captivate's ability to Snap the Application window to a specific Custom size.
    Now that you have the outer browser window sized, change the recording settings so they snap to Application Region. That should allow you to get the area you desire. Note that you may need to adjust the right edge if your goal is to avoid capturing the scroll bar area.
    Alternatively, you can use a small freeware application called Sizer to assist in placing and sizing the window for you.
    ( http://www.brianapps.net/sizer/ )
    Cheers... Rick

  • In iTunes on my windows 7 PC, the Edit/Preferences dropdown window,some of the tab windows are not large enough to see all options that are available.  The borders of the window cannot be draged larger.  As a result, I can not uncheck or check some box's.

    In iTunes on my windows 7 PC, in the Edit/Preferences dropdown window,some of the tab windows are not large enough to see all options that are available.  The borders of the window cannot be draged larger.  As a result, I can not uncheck or check some box's on several of the preferences pages.  The Apple people at the store did not help.  I have lownloaded the latest version of iTunes and this is still an issue.  HELP.

    Is there really nobody else with this problem? Really?

  • I am unable to see any POP3 or IMAP tab when I set up an account in my iphone 4S. Hence by default all my email accounts become IMAP and the messages are deleted from the server when I delete them from the iphone.

    I am unable to see any POP3 or IMAP tab when I set up an account in my iphone 4S. Hence by default all my email accounts become IMAP and the messages are deleted from the server when I delete them from the iphone.

    ok sorry everyone but i solved it myself but the solution is so nuts i've posted it here to help others who have the same problem.
    to setup a comcast imap account on your iphone:
    go to mail, contacts, etc in settings
    under accts, select add account
    select "other"
    new screen, choose "add mail account"
    now on the new acct screen you must enter your name, email address and password for your GMAIL acct ! (yes i said your gmail acct !, or some other acct with a NON comcast address).
    hit next
    then the acct verifies
    when verified a screen will open with all the acct settings for this acct AND @ the top of the screen are the 2 buttons > imap or POP
    select imap and THEN CHANGE ALL THE ACCOUNT information to the comcast account !
    then hit next and the account will take a couple minutes to verify but it will verify and now you have a comcast imap acct set up on your iphone.  The problem must be that when the iphone sends the initial verify acct info to comcast (if you enter that information first) the comcast server is simply not setup yet to signal the iphone that there is an imap option.

  • The replay of the song isn't possible because the song isn't available or through DRM is restricted. All the songs are buyed in the iTunes Store. Give it a solution to activate the songs on my ipod touch ?

    Hello together, I've a problem with some songs in my playlists on my new ipod touch. The error message says that the replay of the song isn't possible because the song isn't available or through DRM is restricted. All the songs are buyed in the iTunes Store. Give it a solution to activate the songs on my ipod touch ?

    Do the non-syncing songs play in iTunes?
    Were the syncing and non-syncing songs purchased with the same account?
    Can you directly download the the songs to the iPod? See:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store

  • How can I see whether songs in iCloud are also on the PC locally (so I can sync them with a Classic)?

    How can I see whether songs in iCloud are also on the PC locally (so I can sync them with a Classic)?

    In iTunes, on the View menu select 'Hide Music in the Cloud'

  • Why my iPod (6th generation)not appearing in iTunes and all my songs are gone but the data is the same with last time when got songs.

    why my iPod (6th generation)not appearing in iTunes and all my songs are gone but the data is the same with last time when got songs.

    I understand that your iPod nano is not recognized in iTunes. The following troubleshooting assistant may provide a resolution:
    Apple - Support - iPod nano (6th generation) - iTunes Troubleshooting Assistant
    http://www.apple.com/support/ipodnano/6th_generation/assistant/itunes/
    If the above did not resolve your issue, choose an applicable article below that best describes your issue.
    Windows
    iPod appears in Windows but not in iTunes
    iPod not recognized in 'My Computer' and in iTunes for Windows
    iTunes reports that "iTunes cannot recognize this iPod at this time"
    Mac OS X
    iPod not recognized in iTunes and Mac Desktop
    MacBook and MacBook Air: iPod won't mount when connected via USB hub
    What to do if your computer won't recognize a USB or FireWire device
    Thanks,
    Matt M. 

  • HT4236 on syncing photos to my iphone from my mac (iphoto), just 2 or 3 per event retain the edited verisons, the rest are shown in the original version. I'm confused by this. Is this a bug? Is there a way to see all the photos on the mac-edited version o

    on syncing photos to my iphone from my mac (snow leopard) (iphoto), just 2 or 3 per event retain the edited verisons, the rest are shown in the original version. I'm confused by this. Is this a bug? Is there a way to see all the photos on the mac-edited version on iphn?

    Thanks for your reply
    I solved my problem,
    Definitely a bug in syncing through itunes.
    - Connect Iphone with MacBook Pro through USB
    - Go to iphone on itunes, photos, deselect photo synchronization.
    - Sync (all pics will be removed from iphone)
    - Close itunes, iphoto, disconnect iphone
    - Select in finder: (home)-pictures-iphoto library.
    - Sec click on iphoto library and choose "show package contents"
    - Delete iPod Photo Cache
    - Close finder
    - Empty trash
    - Reconnect iphone
    - Allow photo synchronization again and everything works smooth.
    After this, changes made in iphoto are instantaneously reflected in iphone photos.
    Once every hundred photos, one gets detached from iphoto and then changes are no longer reflected (buggy) :-(
    In this case I erase the photo in iphoto, sync, go back to iphoto trash, reestablish the photo from the trash and sync again.
    Hope this improves. Still have to try cloud though.
    Thanks
    RC

  • I'm using a Kodak M532 camera with a 2 gigabyte SD card. I just took 30 photos, all of which are visible on the screen. When I attempted to import them the last 15 were said to be in an unreadable format (no. 1117 on). Is there a fix?

    I''m using a Kodak M532 camera with a 2 gigabyte SD card. I recently took 30 photos, all of which are visible on the camera's screen. When I attempted to import them the last 15 were said to be in an unreadable format (no. 1117 on). I deleted some 200 photos from the card, but photos that I then took, though also visible on the camera's screen, were also said to be in an unreadable format. Is there a fix?

    There is an ongoing issue with Kodak cameras and 10.6. Workaround: Reformat the card with the camera and use a USB Card Reader.
    Regards
    TD

  • I have iphoto 08 version 7.1.5.  I copied photos from recent - last import into albums.  I then deleted the photos and emptied the trash. Today all the albums are empty and the photos are nowhere in the library.  Have I lost them all?

    I have iphoto 08 version 7.1.5.  I copied photos from recent - last import into albums.  I then deleted the photos and emptied the trash. Today all the albums are empty and the photos are nowhere in the library.  Have I lost them all?

    OK, here are a set of screenshots with my step by step - maybe you will be able to spot where I've gone awry:
    I find a photo in the Library that I will delete from an album:
    I go down to my Albums and find the picture in one of them:
    I hover over the pic so the little down arrow appears in the bottom right-hand corner. I click on it, then click on the Trash Can in the window that drops down:
    Gone from the Album:
    Gone from the Library:
    In the Trash:
    Whaddup with that?
    GB

  • Sp L records are coming to the PSA and not updating in the data target

    Special Ledger records are coming to the PSA and not updating in the data target in the month end and the info package is failing - because of that we are doing manual updating from PSA to the data target -
    Can so one can tell the reasons why this is happening? And give the solutions to it?

    Hi Sankar,
    If your Infopackage uses Only PSA and Update subsequently in Data Target on the Processing tab, then you will need to add a process for Read PSA and Update Data Target in your process chain, after the Infopackage load process. Then it will take data from the PSA and load to the data target.
    Hope this helps...

Maybe you are looking for

  • External Job Scheduling on XI 3.0

    Hi, I have a technical requirement whereby I need to start a XI Interface after a Mainframe job is completed. Have you come accross any scenario where an external agent can start an interface in XI. How can this be achieved, specifically when I have

  • List of AS stack technologies?

    One way to view AS is as a development platform loaded with technology and protocols for "web applications". I think this better describes AS for what it really is, hrmm. What I'm looking for is a list of technologies (stuff) in AS - for a presentati

  • Can't install Illustrator CC :(

    I've installed Illustrator CC once. But when I opened I understood that it was wrong language (russian). I need english. So I went to Settings and set English language there. Then removed Illustrator with russian language. But I can't install Illustr

  • Communication with Servlets

    Hi all, This is my Clint private void getdeleteText(){         String d[][] = null;         try{             java.net.URL urlServlet = new java.net.URL("http://localhost:8080/servlet/GetChatText?g="+group+"");             java.net.URLConnection conne

  • How to use 7.9.5 OBI Application to work in 11g

    Hi, I have 10G Platform and 7.9.5 OBI Application. Now I need to use 11G Platform and 7.9.5 OBI Application. Will it be feasible? Also can I use my existing ETL Informatica mappings in the Upgraded Platform? Thanks.. ChD