Dealing with errors due to newly added/dropped columns

DB version:11g
I am not sure if i have created an unnecessarily large post to explain a simple issue. Anway, here it is.
I have been asked to code a package for Archiving .
We'll have two schemas;The original schema and an Archive schema (connected via a DB Link)
ORIGINAL Schema -------------------------> ARCHIVE Schema
               via DB Link          When records of certain tables in the ORIGINAL schema meet the archiving criteria (based on Number of Days Old, Status Code etc), it will be moved ('archived') to the ARCHIVE schema using the INSERT syntax
insert into arch_original@dblink
col1,
col2,
col3,
select col1,
col2,
col3,
from original_tableThe original table and its archive table has the same structure, except that the Archive table has an additional column called archived_date which just records when a record got archived.
create table original
col1 varchar2(33),
col2 varchar2(35),
empid number
create table arch_original
col1 varchar2(33),
col2 varchar2(35),
empid number,
archived_date date default sysdate not null
);We have tables with lots of columns(there are lots of tables with more than 100 columns) and when all column names are explicitly listed like the above syntax, the code becomes huge.
Alternative Syntax:
So i thougt of using the syntax
insert into arch_original select original.*,sysdate from original;  -- sysdate will populate archived_date columnEventhough the code looks simple and short, i've noticed a drawback to this approach.
Drawback:
For the next release, if developers decide to add/drop a column in the ORIGINAL table in the Original Schema, that change should be reflected in the archive_table's (ARCHIVE schema) DDL script as well. It is practically impossible to keep track of all these changes during the development phase.
If i use
insert into arch_original select original.*,sysdate from original;  syntax, you will realise that there is change in the table structure only when you encounter an error(due to missing/new column) in the Runtime. But, if you have all the column names listed explicitly like
insert into arch_original@dblink
(col1,
col2,
col3,
select col1,
col2,
col3,
from original_tablethen you'll encounter this error during the Compilation itself. I prefer the error due to a missing/new column during the Compilation itself rather than in Runtime.
So what do you guys think? I shouldn't go for
insert into arch_original select original.*,sysdate from original; syntax because of the above Drawback. Right?

What advantage would it bring if i make ARCHIVED_DATE as the first column in the ARCHIVE tables?The advantage is that if you'll add a column in the future on both original and archived tables the insert statement will work anyway...
SQL> create table x (a number, b number);
Table created.
SQL> create table y (arc_date date, a number, b number);
Table created.
SQL> insert into x values (1,1);
1 row created.
SQL> insert into x values (2,2);
1 row created.
SQL> select * from x;
         A          B
         1          1
         2          2
SQL> insert into y select sysdate, x.* from x;
2 rows created.
SQL> alter table x add (c number);
Table altered.
SQL> alter table y add (c number);
Table altered.
SQL> alter table x drop column b;
Table altered.
SQL> alter table y drop column b;
Table altered.
SQL> insert into x values (3,3);
1 row created.
SQL> insert into y select sysdate, x.* from x
  2  where a=3;
1 row created.
SQL> select * from x;
         A          C
         1
         2
         3          3
SQL> select * from y;
ARC_DATE           A          C
25-JAN-10          1
25-JAN-10          2
25-JAN-10          3          3Max
[My Italian Oracle blog|http://oracleitalia.wordpress.com/2010/01/23/la-forza-del-foglio-di-calcolo-in-una-query-la-clausola-model/]
Edited by: Massimo Ruocchio on Jan 25, 2010 12:44 PM
Added more explicative example

Similar Messages

  • TS1539 How do we deal with Error 50 when downloading a movie rental then stopped with error 50 and when I try to resume the downld, it doesn't do it?

    How do we deal with Error 50 when downloading a movie rental then stopped with error 50 and when I try to resume the downld, it doesn't do it?

    Yeah this "fix" is bunk. The movie is downloading just fine, but the extra features is the one giving me this error code. It is NOT my firewall. If it was, then both files wouldn't download. Plus, I already have the firewall "issue" tacked down and fixed. Have had it fixed for months now. No, this is due to the "new" itunes version 11 software. The only conclusion to fix this issue is UPgrading from 11 back to 10.7 which is what I am going to do. This is completely ridiculous! Come on, Apple, get itunes working once and for all, and fire the people responsible for itunes 11, just like you did to the guy who was responsible for apple maps. Thankfully Google came back to the rescue with google maps app.

  • How do you deal with error message when downloading movie on iPad?  It was 75% complete.

    How do you deal with error message when downloading movie on iPad2.  Movie was 75% complete. 

    I was using wifi.  It shows as a purchase on iTunes but it does not show up on iTunes for download.  I keep getting the download error with our a number attached on the iPad.  Very frustrating.   Apple has been of no help at all. 

  • How to add get the field name for a newly added site column.

    I have the following:-
    Enterprise wiki site collection inside SharePoint server 2013.
    I added a new site column of type managed metadata.
    I opened the enterprisewiki.aspx page layout using the SP designer, to add the newly added site column to it.
    But I have noted that to add any site column I need to know the field name , for example the default wiki category column is referenced inside the page layout as follow:-
    <Taxonomy:TaxonomyFieldControl FieldName="Wiki_x0020_Page_x0020_Categories" EmptyValueDescriptionForTargetTemplate="<%$Resources:cms,enterwiki_nocategories_assigned%>" DisableInputFieldLabel="true" runat="server"/>
    <b>
    So my question is how I can know the field name for my newly added site column?
    Thanks in advance for any help.
    Regards

    Hi,
    The “FieldName” should be the internal name of the column, you will find it at the address bar at the “Site Columns”->”Edit Column” page:
    Best regards,
    Patrick
    Patrick Liang
    TechNet Community Support

  • Dealing with error code 53 on i-phone 6 , tried restoring but it stops 1/2 way due to unecpected error 53

    Doing some research I found that there are many complaints that have to do with error code 53, mine happened with my new i-phone 6+ during an update and restore process. The bar below the apple during on my screen during the update filled in 1/2 way and then the stopped telling me on my MAC-BOOK "unable to update i-phone due to unexpected error 53". And the phone now is stuck with the screen showing that a cable needs to be plugged in and connected to i-tunes.
    Is there a fix that someone recommends ?
    Thank you.

    Greetings gillisfrompasadena,
    After reviewing your post, I have located an article that can help with your device. You may want to consider restoring your device to factory settings to adress the issue:
    If you can't update or restore your iPhone, iPad, or iPod touch - Apple Support
    Use recovery mode
    You might need to use recovery mode to restore your device in these cases:
    iTunes doesn't recognize your device or says it's in recovery mode.
    You see the Apple logo onscreen for several minutes with no progress bar.
    You see the Connect to iTunes screen.
    Learn what to do if you see the progress bar onscreen for several minutes.
    To put your device into recovery mode, follow these steps:
    Turn off your device and leave it off.
    Plug in your device's USB cable to a computer with iTunes. 
    Hold down the Home button on your device as you connect the USB cable. Keep holding down the Home button until you see the Connect to iTunes screen.
    When you see this screen, release the Home button. If you don't see this screen, try steps 1 through 3 again. 
    When your device is connected, iTunes will open. You'll see a message saying that iTunes has detected an iPhone, iPad, or iPod touch in recovery mode.
    Use iTunes to restore your device. Restoring in recovery mode will erase your device. If you previously synced with iTunes or iCloud, you might be able to restore from your backup. 
    Get more help
    Learn what to do if you don't see your device in iTunes for OS X, or in iTunes for Windows.
    If you put your device into recovery mode by mistake, restart it. Or you can wait 15 minutes and your device will exit recovery mode by itself.
    Thank you for contributing to Apple Support Communities.
    Cheers,
    BobbyD

  • How to deal with "Error 1001. The specified service already exists" when install a service using installer package?

    Hi everybody,
    I wrote a "Class Library" project which is a service using Visual Stodio 2008 recently, then tried to use a Visual Studio 2008
    Setup Project to install it.
    Here is what I did for the "Class Library":
    1. Finish the program.cs, Service.cs
    2. Add Installer
    3. Change the serviceInstaller so that "StartType" to be Aotumatic
    4. Change the ServiceProcessInstaller2 so that "Account" to be LocalSystem
    5.
    6. Click in F5 (Start Debugging)
    Here is what I did for the Setup Project:
    1. Add the exe file built from the "Class Library" project to the Application Folder
    2. On the Custom Action Editor, add the exe file from 1 to Install and Commit
    3. Change the property of the project so that "RemovePreviousVersion" to be true
    4. Click on F6(Build Solution)
    Then I tried to run the msi file from the built of the Setup Project. Because I modified the two projects serveral times, I uninstalled the Class Library using "Control Panel->Add or Remove Programs" before I reinstall. Two things I notived:
    1. After unstall, the registry was not cleaned up about the installed program
    2. After several rounds install/uninstall, I got "Error 1001. The specified service already exists"
    My questions are:
    1. How to cleanup the registry when uninstall a program?
    2. How to deal with the "Error 1001. The specified service already exists"?
    3. Did I do anytbing wrong with the "Class Library" or the "Setup Project"?
    Thanks a lot!
    Helen

    Hi Simon, not a problem!
    I spent some more time on this and here are few more notes:
    it is called Major Upgrade, when you are installing new version of the product upon a previous one and
    MSI supports 2 strategies:
    Strategy 1. Install a new version and uninstall previous one. (Install a new version right upon previously installed version (file merging is performed based on dll version number) and the delete previously
    installed files)
    Strategy 2. Uninstall previous version and install a new one (Delete all previous files and install from scratch new files.)
    From the first look it seems that 1st strategy is weird and buggy. But, remember, MSI is great because it's transactional!!! That means that if once some of the phases (Installation, Uninstallation, Rollback, Comit) fails, your machine
    will be reverted to the previous state and it'll be still functional. 
    Let's consider both strategies:
    Consider you have installed product_v1.msi and you want to install product_v2.msi.
    Strategy 1
    1. MSI engine copies files from Product_v1 directory to TEMP directory
    2. MSI engine merges files based on the assembly version (between v1 and v2)
    3. Once merging is completed successfully it removes files in TEMP (RemoveExistingProducts  action triggers it) and you got product_v2 installed, otherwise if it fails MSI engine revert machine to V1 and copies previous files from TEMP.
    Strategy 2
    1. MSI engine tottaly removes all files from v1.
    2. MSI engine installs v2 files and if something goes wrong you cannot revert back, because RemoveExistingProducts  allready worked out and MSI doesn't have files to revert machine back
    I recommend to everybody to use Strategy 1 and leverage MSI transaction functionality. And you can set this strategies by defining sequence of RemoveExistingProducts action. See more info
    here.  So, I think it's not even a bug in VS as I said in the upper post it is default recommened behaviour.
    AND, you got "Error 1001. The specified service already exists"
    because if we follow Strategy 1 MSI engine tries to install Windows Service on top of the existing service and OF COURSE it fails MSI engine (StopServices, DeleteServices actions are executed before actual
    installation and  they look at ServiceControl table). In order to stop service first and delete them you have to fill ServiceContol table of the MSI (and then StopServices, DeleteServices actions will recognize what to they have to stop
    and delete), like this:
    *clip*clip*clip*
    ' see http://msdn.microsoft.com/en-us/library/windows/desktop/aa371634(v=vs.85).aspx for more info
    ' Update the Service Entry to stop and delete service while uninstalling
    query = "INSERT INTO ServiceControl (ServiceControl, Name, Event, Arguments, Wait, Component_) VALUES ('MAD_Service', 'Service name', '160', '', '1', '"
    + componentName + "')"
    Set view = database.OpenView(query)
    : CheckError
    view.Execute : CheckError
    ' Update the Service Entry to stop and delete service while installing
    query = "INSERT INTO ServiceControl (ServiceControl, Name, Event, Arguments, Wait, Component_) VALUES ('MAD2_Service', 'Service name', '10', '', '1', '"
    + componentName + "')"
    Set view = database.OpenView(query)
    : CheckError
    view.Execute : CheckError
    *clip*clip*clip*
    We can uninstall service first by following Strategy 2, but then we lose transactional support.
    So, Simon did I encourage you to change your code a bit?:)
    And, btw, if you don't want to change the strategy, please don't rely on SequenceID in MSI table, it can be change, you have to get the at the runtime.
    Hope it will help to everybody!
    See also more advanced explanation of how MSI works
    here.
    Truly yours, Marat

  • How to deal with--errors occurred, no packages were upgraded

    This has only occurred to me once before, I think.
    I was running a pacman -Syu today and it was trying to upgrade kernel2612-cko2-swsusp2 with the new kernel26cko package. The old cko was installed by grabbing the pkgbuild, making and then installing. Pacman automatically picked up that there was a new version to supercede it.
    Yet, I get a ton of "exists in filesystem" errors, which ends with "errors occurred, no packages were upgraded."
    Now, I've been searching about the best way to deal with such situations. The common approach from previous posts is to force it, with the -f argument. Typically, there is a clause though, that you should only force when the files are owned by a package that pacman knows of. That is, if pacman -Qo [file] doesn't return anything, you are safe to force.
    But, in this instance, the offending files are owned, and pacman knows about it. So, what's the way forward? Removing the old package manually? Manually re/moving the conflicting files?
    Cheers

    i think there may be a problem in the sane package from testing. i installed smaller chunks of kde (kde-common, kdebase, kdeadmin, etc.) and they all went fine, but when i tried to install kdegraphics, it gave me the error
    [root@arch jerry]# pacman -S kdegraphics
    Targets: libungif-4.1.3-2 imlib-1.9.15-2 libgphoto2-2.1.6-2 libieee1284-0.2.10-2
    sane-1.0.16-2 fribidi-0.10.5-2 gimp-print-4.2.7-3 ghostscript-7.07.1-5
    t1lib-5.1.0-1 kdegraphics-3.4.2-3
    Total Package Size: 23.6 MB
    Proceed with upgrade? [Y/n]
    checking package integrity... done.
    loading package data... done.
    checking for file conflicts...
    error: the following file conflicts were found:
    sane: /usr/var: exists in filesystem
    errors occurred, no packages were upgraded.
    should this be filed as a bug report? i did a fresh install and did not have kde installed to begin with, but im pretty sure this happened also when trying to upgrade

  • HT201210 I did everything to deal with "error 21" and still doesn't work.

    My iphone still with the image in front "connect to itunes". I dont know why, because I did everything about the resolution of "error 21". Please somebody help me to deal with it.

    http://support.apple.com/kb/TS3694  since you have tried everything.  The link states that it could be a hardware problem and may require service.  So you will need to make an appointment with Apple and take your phone in and have the Genius Bar take a look at it.

  • XML Report completes with error due to REP-271504897:  Unable to retrieve a string from the Report Builder message file.

    We are in the middle of testing our R12 Upgrade.  I am getting this error from the invoice XML-based report that we are using in R12. (based on log).  Only for a specific invoice number that this error is appearing.  The trace is not showing me anything.  I don't know how to proceed on how to debug where the error is coming from and how to fix this.  I found a patch 8339196 that shows exactly the same error number but however, I have to reproduce the error in another test instance before we apply the patch.  I created exactly the same order and interface to AR and it doesnt generate an error.  I even copied the order and interface to AR and it doesn't complete with error.  It is only for this particular invoice that is having an issue and I need to get the root cause as to why.  Please help.  I appreciate what you all can contribute to identify and fix our issue.  We have not faced this issue in R11i that we are maintaining right now for the same program which has been running for sometime.  However, after the upgrade for this particular data that the user has created, it is throwing this error REP-271504897.
    MSG-00100: DEBUG:  Get_Country_Description Return value:
    MSG-00100: DEBUG:  Get_Country_Description Return value:
    REP-0002: Unable to retrieve a string from the Report Builder message file.
    REP-271504897:
    REP-0069: Internal error
    REP-57054: In-process job terminated:Terminated with error:
    REP-271504897: MSG-00100: DEBUG:  BeforeReport_Trigger +
    MSG-00100: DEBUG:  AfterParam_Procs.Populate_Printing_Option
    MSG-00100: DEBUG:  AfterParam_Procs.Populate_Tax_Printing_Option
    MSG-00100: DEBUG:  BeforeReport_Trigger.Get_Message_Details
    MSG-00100: DEBUG:  BeforeReport_Trigger.Get_Org_Profile.
    MSG-00100: DEBUG:  Organization Id:  117
    MSG-00100: DEBUG:  BeforeReport_Trigger.Build_Where_Clause
    MSG-00100: DEBUG:  P_Choi
    Report Builder: Release 10.1.2.3.0 - Production on Tue Jul 23 09:56:46 2013
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.

    Hi,
    Check on this note also : Purchasing Reports Fail When Changing Output To XML REP-0002 REP-271504897 REP-57054 (Doc ID 1452608.1)
    If you cant reproduce the issue on other instance, apply the patch on the test instance and verify all the funcionality related to the patch works OK. Then move the patch to production. Or you can clone the prod environment to test the patch.
    Regards,

  • The way I deal with error message 1417, 1418 and 1428

    Firstly, sorry for my poor English, but I would like to share with you my experience, and hope that it may helps you.
    Since the release and update of iTunes 7, I have not faced any problem, but I heard a lot of articles from this forum about the errors 1417, 1418, 1428 and 50 etc. I could not make any suggestion and find a solution about it, all I could do is to copy some threads from some successful cases mentioned on this forum.
    Until yesterday, I finally received a 4th Gen 20GB iPod (around 2 years old)from a friend and asked me whether I could fix it for him, which has been left untouched as a paper-weight for almost 2 months.
    I tried to turn it on, and the screen was completed blank and the device looked dead. Before doing anything I prepared the following:-
    1. A window based PC
    2. A Mac computer
    3. An USB iPod cable
    4. A Firewire iPod cable
    5. An iPod AC charger
    As the iPod was previously formatted on a PC, therefore I tried to plug it with a PC via USB cable, it did not response and not able to get recognized by the PC. I ejected the iPod and connected with an AC charger, after a few minutes, I did a Reset for the iPod
    How to reset iPod
    http://docs.info.apple.com/article.html?artnum=61705
    The iPod showed an Apple sign, it stuck there for almost a minute, the screen then showed a battery with an exclamation mark sign, and after a minute, the iPod turned off itself. I was sure that the iPod carried very low battery, and could not be charged by connecting it with any computer (both Mac and PC).
    I decided to let it have a charge with an AC charger for a bit longer, after 10 minute I did the Reset again, this time a sign of folder with exclamation mark showed up after the Apple sign, and again could not get recognized by a computer.
    I changed my mind, and put the iPod into disk mode
    Putting iPod into disk mode
    http://docs.info.apple.com/article.html?artnum=93651
    Instead of connecting with a PC, I plug it with my Mac using a Firewire cable, it did not response, so I switched the cable to an USB, interestingly, the iPod got recognized and a window pop up indicating that the iPod needed to do a Restore. Therefore I clicked “Restore”, after a few seconds, an Error message pop-up with Error Message 1417, the sign that I have been waiting for quite sometime.
    I ejected the iPod and the screen immediately showed a folder exclamation mark (a sign indicating a corrupted or a failure iPod OS). I am forced to put the iPod into disk mode again, connected with the Mac computer and open the Disk Utility
    1. Open the disk utility, hope your iPod appears there (left hand side), highlight it
    2. Go to Tab “Partition”, click either “Delete” or “Partition”, if fails, skip this step and go to 3
    3. Go to Tab “Erase” , choose Volume Format as “MAC OS Extended (Journaled), and click Erase, again if fails, skip it and go to 4
    4. Same as step 3, but open the “Security Options....” and choose “Zero Out Data” before click Erase. It will take 1 to 2 hours to complete.
    5. Eject your iPod and do a Reset
    6. Open the iTunes 7 and click “Restore”
    It managed to complete the Restore process, and started to sync with the iTunes. However, it got stuck at the song no.238 from the total of 2000. I left it for an hour, but with no process, instead the iPod became “Hot” and the iTunes showed an Error message of 1428. I ejected the iPod from my Mac computer, the iPod’s screen turn to show the famous killer icon;“The Sad iPod“.
    This time it was totally dead, even failed to put it into Disk Mode and non of the computer could recognize it. Sigh, I hated to do it but I knew that I must did the following:-
    Holding the iPod in my Palm, and hitting it on a surface of a Sofa with 5 attempts.
    Did not surprise me, the iPod turned on and it showed the Language Menu on the screen. So, I put it into Disk Mode and connected with my window PC.
    The PC showed a sign and indicated that an USB device had been connected with it. I opened the iTunes and did a Restore there.
    However, an Error Message 50 showed up, but I were not worried about it, connected it back with my Mac computer with it in Disk Mode. As expected the iTunes opened and allowed me to do a Restore there.
    This time it managed to complete the process and a window of register pop up. After the completed the process, the iPod started to sync with the iTunes again, which finally managed to complete the process.
    I left it connecting with the AC charger overnight. In the next morning, I switched it on and have a play with it, I am so glad as it is working like a charm.
    From the above experience, I would like to share it with the user the following:-
    1. It always better to charge with an ac charger instead of the computer, as when an iPod carrying with very low battery, it may not able to get charge from a computer
    2. Try to connect the iPod with a computer, switching between USB and Firewire
    3. Try to format an iPod with HD problem, with a different kind of computer e.g. Mac or PC, as the formats are totally different, the way it formats may able to solve the bad sectors on the HD
    4. It may get better chance to get your iPod recognized, if you put it in Disk Mode
    I hope the following works in your case as I did.

    a pop up error message says itunes couldnt be configured
    I'd like to have a closer look at that error message please.
    Generate the error message again. While the error message box is open, hold down the Alt key and hit the PrtSc key. Paste the screenshot into an image file (using a program like Paint), and save the file.
    Start a reply here and click the wee camera icon at the top of the reply window. Click "Choose file", browse to the image file, select the file and click "Open". Now click "Insert file" to insert the screenshot into the reply.

  • What's the deal with error -36?

    Okay. I'm a football coach, and I spend a lot of time working with video. Unfortunately, the sole reason I purchased a Mac (video editing) is malfunctioning, and no longer allows me to perform the very action I shelled out money for.
    Mac Powerbook 1gig, 750mb of Memory, 100 GB HDD running 10.4.10.
    Can't copy over my network: Error -36. Imported video today, can't save as shared file due to "unspecified error." Can't get imported video off my blasted laptop onto my desktop due to error -36. Can't copy to Firewire drive. Can't copy to USB drive. Can't put laptop in target disc mode and copy file. Same error every time.
    Some files I have managed to copy after getting this error in the past have turned somehow into "System files." New error message, "This file is in use by the operating system and cannot be opened." Yeah, like OS:X uses AVI files somehow.
    Hard drive in the laptop sometimes runs a rhythmic cycle. Duh DUH duh. Duh DUH Duh. That is usually coinciding with some kind of lockup or freeze of indeterminate duration. Leads me to believe that drive or cable is damaged.
    I've noticed that this error has popped up a couple of times in this forum and never been seriously addressed. Is Apple blowing this off?
    Last couple of days I also ended up with Widgets mysteriously crashing as well, including widgets I'm not even running that are shutting down on their own.
    An aside note, I've purchased two Macs in the last four years. I notice no real drop in the number of computer problems I've had when compared to my PCs of the past. What I HAVE noticed is that it is virtually impossible for a home user to do his own computer repair... but it IS about twice as expensive. Applecare is completely worthless. The last time I called them I was on hold for an hour and fifteen minutes, and then spoke to a technical support specialist who confessed to me that she was a PC user at home and wasn't really familiar with the Mac.
    Honestly, if I can't get some solid advice from this forum, I don't plan to ever buy another Mac, so I hope someone can give me some aid.
    To troubleshoot I have run:
    Applejack deep scan (when after installing 10.4.10 it would not reboot.)
    Disk Utility (Repaired permissions, scanned drives Nothing wrong. SMART status okay).
    "Main Menu" (Basic maintenance utility, repairs permissions and does other scans and maintenance like clearing caches.)
    When these problems first began I ran Disk Warrior. Found absolutely nothing.
    And finally reinstalled the OS from scratch, saving my user preferences and files.
    I do not plan to do a hard format and install unless someone tells me that's a necessity. Nor do I plan to replace this drive because it is less than six months old.
    Any help would be appreciated. Thank you.
    ~D.

    I was having a similar error - trying to back up from my G4 to my Maxtor hard drive. I couldn't copy over .jpg files from my iPhoto folders, but all other files (.doc, .ai etc) seemed to be okay - kept getting the error: the Finder cannot complete the operation because some data in XXXX could not be read or written (Error code -36).
    The solution....as soon as I unplugged my iSight camera (which wasn't in use at the time) everything was fine. All back-ups worked, all files copied over and I stopped getting the error. Who knows why - it's a mystery to me - maybe something to do with the firewire??? Hope this helps anyone out there!

  • How do I deal with error code -8003 ?

    When I try to empty my Trash with a certain app in it I get error code -8003. I can't find reference to that code anywhere and do not know how to clean up the trash.
    "The operation can’t be completed because an unexpected error occurred (error code -8003)."

    Try using Trash It!
    Possibly helpful articles:
    The X Lab: Solving Trash Problems
    You can't empty the Trash or move a file to the Trash
    Error -8003 or other problems with emptying the OS X Trash

  • How can I deal with error 200621 and 200279?

    Hi, I am new to Labview. I was asked to use Labview to do some basic frequency-domain analysis for my homework. The hardware I use is myDAQ student instrumentation device. Basically, I am asked to transfer audio signal from MP3 to Labview by using the audio in jack on myDAQ, and transfer the editted signal to a speaker by using the audio out jack. Also, I was asked to have a toggle to let users alter from music to white noise. 
    Here's the problem. If I do not switch between white noise and music, it works well. But as long as I click the toggle, either error 200621 or error 200279 will appear. And I referred to the help file (http://digital.ni.com/public.nsf/allkb/AB7D4CA85967804586257380006F0E62), but I still have no idea how to solve the problem. Could anybody give me a detailed instruction, thanks.
    vi file mentioned above is attached 
    Attachments:
    HW1.vi ‏197 KB
    Vm495+HW_1.pdf ‏153 KB

    Take a look at:
    Getting Started with NI-DAQmx: Getting Started with NI-DAQmx Programming in LabVIEW
    Learn 10 Functions in NI-DAQmx and Handle 80 Percent of Your Data Acquisition Applications
    You can also find a lot of DAQmx examples with Find Examples under the Help menu.
    Also, if you right click on a DAQ assistant and choose Open Front Panel, it turns it into a subVI where you can look under the hood and see how the DAQ assistant is doing its job with the basic DAQmx functions.
    For queues, look for examples for that as well.  And also look for the design templates under File / New... for Producer/Consumer architecture.  Also do more searching on the forums for questions and answers about queues and producer/consumer.

  • How to deal with error ORA-06531 for collection

    All,
    Can anybody see anything wrong with my code below. As far as I can see everything is in order but I am getting the ORA-06531 error.
    Thanks in advance
    CREATE OR REPLACE
    Type T_PREO_PRIV is Object
    PRIVILEGE_ID NUMBER(10),
    PRIVILEGE_NAME VARCHAR2(20),
    PRIVILEGE_TYPE CHAR(1))
    CREATE OR REPLACE
    TYPE T_PRIVInfo IS TABLE OF PREORDER.
    T_PREO_PRIV
    SQL> CREATE OR REPLACE Procedure PREORDER.P_GetUserPrivlegetest(Userid in number, UserPriv out T_PRI
    VInfo, status out number)
    2 as
    3 V_UserPriv T_PRIVInfo;
    4 begin
    5 select T_PREO_PRIV(preo_priv.privilege_id, PRIVILEGE_NAME, PRIVILEGE_TYPE)
    6 BULK COLLECT INTO V_UserPriv
    7 from preo_user_role, preo_role_priv, preo_priv
    8 where preo_user_role.role_id = preo_role_priv.role_id
    9 and preo_role_priv.privilege_id = preo_priv.privilege_id
    10 and user_id = Userid;
    11
    12 V_UserPriv := UserPriv;
    13
    14 status := 0;
    15
    16 EXCEPTION
    17 WHEN OTHERS THEN
    18
    19 Status := -1;
    20 end;
    21 /
    Procedure created.
    SQL>
    SQL> DECLARE
    2 profile_info T_PRIVInfo;
    3 Status smallint;
    4 BEGIN
    5
    6 --preo_security.P_GetUserPrivlege(42, profile_info, status);
    7 P_GetUserPrivlegeTest(42, profile_info, status);
    8 dbms_output.put_line('P_GetUserPrivlege '||Status);
    9 For i in profile_info.FIRST..profile_info.LAST loop
    10
    11 dbms_output.put_line('******************************* ');
    12 -- dbms_output.put_line('privilege_id '||UserPriv(i).privilege_id);
    13 -- dbms_output.put_line('privilege_name '||UserPriv(i).privilege_name);
    14 -- dbms_output.put_line('privilege_type '||UserPriv(i).privilege_type);
    15 end loop;
    16
    17 END;
    18 /
    P_GetUserPrivlege -1
    DECLARE
    ERROR at line 1:
    ORA-06531: Reference to uninitialized collection
    ORA-06512: at line 9

    As in your other post, you have these reversed. The line that says
    V_UserPriv := UserPriv;
    should be
    UserPriv := V_UserPriv;
    There may also be other errors; I didn't check.

  • Loading external swf, how to deal with errors within the loaded swf?

    I have a Flex app that basically lets you browse a bunch of thumbnails that represent swf files, when you click a thumbnail it opens a window that loads the actual swf into an image control. The problem I have is that these swfs can be uploaded by our clients, so they may have actionscript errors being thrown, etc. We can't really predict what they may do. Is there a way I can load these swf in such a way as to ignore any errors that the loaded swf may generate within itself.
    For example, one such swf reads some text from a text file to display, but when they are viewing it in this manner the file isn't there so a stream error is generated. My parent Flex app doesn't care about this error and I don't want to see it thrown up in an actionscript error box (I have debug verison loaded on my PC obviously) or interfere with the parent app in any way.
    Would application domains help at all? Would it make a difference if I loaded the swf into a separate domain? Or is there some way I can generically trap any error coming from the loaded swf and just ignore them?
    Any help appreciated.
    Thanks,
    Marcus

    There is no way to catch errors thrown at random times.  Remember that most folks have the release player which does not show error dialogs.
    Alex Harui
    Flex SDK Developer
    Adobe Systems Inc.
    Blog: http://blogs.adobe.com/aharui

Maybe you are looking for