3.1.3.709: How to Verify and Fix a Possibly Corrupted Design?

How to verify and fix, if necessary, a design that is likely to be corrupted? I first suspected I corrupted file when an attempt to reverse-engineer changes from the relation model to the logical did not work. After some investigation I found datamodeler.log file to which the following error was emitted whenever the reverse-engineer button was clicked: 2013-01-28 11:39:32,001 [AWT-EventQueue-0] ERROR MDBAction - java.lang.NullPointerException. This error message is reproducible. There are also additional warnings in the log whenever this particular design is opened such as [Thread-133] ERROR XMLTransformationManager - Unable to load object from XML: ..../model/dw/rel/A864FBB0-411F4EF06C86/table/seg_0/C4046530-1A69-AD31-6127-390C93D8F7F7.xml java.io.FileNotFoundException. The design has been moved from one Data Modeler version to another over the years. It is currently version controlled by SVN but, alas, I have not been able locate a fully functional copy from the repository. (People usually only use forward engineering from the logical model which appears to work fine most of the time.)
I have investigated the design and located a single table object in the relational model that appears corrupted. It cannot be removed from the design with the DataModeler UI (nothing happend when I click on delete on the object menu). I then checked out a testing copy of the design and manually removed all the files with the object identifier in the file name. Additionally, I searched for xml blocks with a reference to the object identifier and deleted the corresponding blocks from those file. After that the reverse-engineering button began to function again. However, I am afraid of commiting a manually edited design to the repository as I am not certain that I have not broken something else.
What is the recommended way to verify a design and fixing problems in it? Starting a new design from scratch is not an option since there is plenty of documentation within the design that cannot be easily obtained elsewhere. I could recreate the broken objects from the data dictionary if I first had a safe way to identify and delete them from the design.
Best regards,
Miikka

Hi Mikka,
thanks for the info provided.
You can use following script to see wrong foreign keys - in form table_name.fk_name:
log_rep = new Packages.oracle.dbtools.crest.swingui.LogReport(model.getAppView());
log_rep.setName("wrong FKs");
text = "";
fks = model.getFKIndexAssociationSet().toArray();
for(var i=0;i<fks.length;i++){
     fk = fks;
     if(fk.getRemoteIndex() == null){
          text = text + "\n" + fk.getLongName();
log_rep.setLog(text);
log_rep.showModalDialog(new java.awt.Dimension(750, 550));
and following script to remove themfks = model.getFKIndexAssociationSet().toArray();
for(var i=0;i<fks.length;i++){
     fk = fks[i];
     if(fk.getRemoteIndex() == null){
          fk.remove();
Now you can remove the table if you want to. Save design at the end.
Regards,
Philip                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Similar Messages

  • Contacts producing multiple entries as does calendar . How to stop and fix please.

    Contacts producing multiple entries as does Calender. How to stop and fix pls?

    ok easiest way it to restore to factory setting and start from there. When you go to do your first sync you don’t “sync contacts or calendar”. When you add mobile me onto your Ipad select all the services that you want to enable and then mobile me will keep everything in sync.
    If you need futher steps let me know

  • How to customize and fix permanently the size of web pages (zoom%) in Firefox as in Internet Explorer either: View - Zoom - Custom (percentage).

    How to customize and fix permanently the size of web pages (zoom%) in Firefox as in Internet Explorer either:
    View - Zoom - Custom (percentage).
    Thank you

    This may help you.
    https://support.mozilla.com/en-US/questions/894000

  • Run DB Verify and has some files corrupt. Need help

    In our system, after we run the DB Verify and two data files have the following message:
    Page 254582 is marked media corrupt
    Page 254583 is marked software corrupt
    Page 254584 is marked software corrupt
    Page 254585 is marked software corrupt
    Page 254586 is marked software corrupt
    Page 254587 is marked software corrupt
    A few questions:
    What is the difference between the 'media corrupt'and 'software corrupt'?
    How to verify if the data is really corrupted or not?
    If is corrupted, is possible to repair it?
    How to recover from this?
    In general, what are the procedures after finding files are currupted?
    Thanks for advises.

    While I think that Mylenium and Dec9 have solved your problem with installation, here is a CHECKLIST on installing most Adobe programs, that might also help.
    Good luck,
    Hunt

  • How to supervise (and fix) using BPEL web services in AIA?

    We have unbelievably many problems with using AIA & web services concerned. Is there any way of online monitoring using the web services, checking data/parameters provided and fixing what needed - before a disasters comes? The supervising layer should work WITHOUT the same environment (rather on the system level) in order to be on a qualitative much higher reliability level. I would gratefully appreciate any experience to help us from heavy problems...

    Hello,
    With one button you want to perform 3(Create, Update and Delete) operation
    To create:
    First check whether the data exist with full combination of Name,Desc and City.
    If not exist you can execute the create function.
    If exist, get confirmation to delete the item by pop up. Using item ID you can perform Delete operation
    To Update:
    How you want to update the item, by keeping unique value or combination of columns?
    based on that you can perform the update operation.
    Whenever you see a reply and if you think is helpful, click "Alternate TextVote As Helpful"! And whenever you see a reply being an answer to the question of the thread, click "Alternate TextMark As Answer

  • How to Analyze and Fix?

    I'm trying to do an Analysis of Power Line Hum and then fix.
    I open STP, a multi track setup appears, I drag my file onto one of the tracks (though it's stereo it only appears on one track--odd), when I click on it it appears in the Film Editor window. I select the whole length of the file there, in the Analysis tab I check Power Line Hum and Analyze, it does, but everything at the bottom stays grayed out.
    How does one fix things using the Analysis tab?
    Thanks!

    Thanks for the tips, though I looked for Send and I don't see it.
    And if I do figure out how to do it--is 2x clicking get you the same thing--I believe I was in an audio project when I first tried to analyze and fix and all fix options were grayed out then so how will going there now change anything?
    Sorry, don't have the manual, but an audio file project is just where you have a big window on top and the Film Editor, etc tabs are blank, right?
    STP is a very difficult app that doesn't seem to follow a logic I can comprehend.

  • General instability: how to troubleshoot and fix?

    I've noticed increasing instability on my iMac. Most applications work fine, but when I shut down, often many applications will refuse to--and I'm prompted to "force quit" them, one by one. This happens with Word, Seesmic, iTunes, Address book, browsers--across the board.
    Word seems to be the most unstable. It actually works fine, for the most part, but even during ordinary use I will often get the message that the application is not responding when I click on the icon. Usually I can use drop-down menus to keep on working--creating new files, and so on. But still it must be force-quit at the end.
    Often when I have a number of windows open, the system will take a long time to respond to requests, delaying a "close window" command by 30 seconds, for example (with spinning ball).
    I've repaired permissions, including booting from the OS X disk. I've also run repairs using diskwarrior, and inspected the hardware.
    How can I troubleshoot and fix this cross-application instability?

    Use SuperDuper along with what you do now.
    Add a Test user account on new clone of your system.
    It does sound like corrupt prefs and cache files though as well as the chance of still having a directory or bad sectors.
    I am a strong proponent of the SuperDuper plus Disk Warrior for system maintenance.
    As for Word/Office, possible but I'll leave that to others.
    And of course if you could really have two internal drives, system alone and 2nd for data or full user account so much the better. Newer iMacs can have an SSD and MacSales will add SATA or eSATA controller now ($169, in house) for iMacs.
    But if you have FW800 that could do the trick perhaps.

  • How to set and fix column widths in Mavericks?

    Until recently I was using a Mid 2011 MBA with OS X 10.8.X.
    I don't know what I did but the column widths in the Finder started to self-adjust to the longest filename.
    Now I have migrated my user account from this MBA to a new MBP running OS X 10.9.1.
    But the Finder in this account still has the same affliction, I can adjust column widths to where I want them but as soon as I click on a file or folder, the column widths readjust to the length of the longest file/folder name.
    How can I stop the Finder from doing that automatically?
    Thanks for your help and Happy Holidays!

    Dear William Lloyd:
    I actually learnt how to do this from another post in this community just a few hours ago.
    You adjust column wisth in Finder by placing your curser at the column edge and while holding Option key down, move column edge to the width you desire.
    This will make a "sticky" change i.e., column widths will stay where you set until you chanage them.
    I would like to to attribute this to the poster I learnt from but I am not able to find that post again.
    Cheers.
    rdfNaresh

  • How to detect and fix an abnormal client

    Hello,
    In my environment there is some abnormal client (there is only few actions in the client actions or its blank and in the sccm console the client is no or null)
    Usually we run a script to rebuild the wmi repository and it fix that and if it doesn't, we uninstall and install the client.
    the script:
    net stop ccmexec
    net stop winmgmt
    del %windir%\system32\wbem\Repository
    cd %windir%\system32\wbem
    for /f %%s in ('dir /b *.dll') do regsvr32 /s %%s
    for /f %%s in ('dir /s /b *.mof *.mfl') do mofcomp %%s
    net start winmgmt
    net start ccmexec
    now my question is how can we detect when the client is abnormal(on the client)? (run a startup script?)
    thanks a lot,
    Gal

    There is no need to check the abnormality from the client end as you will be able to see it as Non-Client when it doesn't report its inventory for certain period and also you can get it via querying through the DB..
    What I ll suggest is create a query based collection to get the list of computers that did not report its hardware inventory for certain period of time, and you could get the troublesome clients..
    Below query can be used to get the computers based on the its reporting time, change the day as per your convenience..
    select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client from SMS_R_System where SMS_R_System.ResourceId not in (select ResourceID from SMS_R_System where AgentName in ("Heartbeat Discovery") and DATEDIFF(day,AgentTime,GetDate())<=12)
    Run the below query to get it from DB, change the collection it to your all systems, and the days required..
    Declare @CloTbl table
    [Associate ID] varchar(25),
    [Computer Name] varchar(25),
    [SiteCode] varchar(5),
    [LastHWScan] varchar(255),
    [Days Since HWScan] int
    insert into @CloTbl select * from(
    select Sys.User_Name0 as 'Associate ID',SYS.Netbios_Name0 as 'Computer Name', SIS.SMS_Installed_Sites0 as 'SMS Site', WS.LastHWScan,
    DATEDIFF(day,WS.LastHWScan,GETDATE()) as 'Days Since HWScan' from v_R_System as SYS
    join v_GS_WORKSTATION_STATUS WS on SYS.ResourceID = WS.ResourceID
    join v_RA_System_SMSInstalledSites SIS on SYS.ResourceID = SIS.ResourceID
    join v_fullcollectionmembership coll on SYS.ResourceID =coll.ResourceID
    join v_GS_OPERATING_SYSTEM sys1 on SYS.ResourceID =sys1.ResourceID
    WHERE coll.CollectionID = 'CA1000AA')P
    select * from @CloTbl
    where [Days Since HWScan] >'9'
    order by [Days Since HWScan]
    Hope it suffices..
    bluerail

  • Form errors. How to understand and fix them, any help?

    Hello,
    I have been getting multiple errors in a form I created, I copied and pasted items from another form and change the content.
    Here is what I am seeing, anyone have suggestions on how I can fix this?

    Depending on the product you used to create the form, post in the related forum.  This is the Adobe Reader forum.

  • WSUS 3.0 how to purge and download again a corrupted update

    When I download some update via my WSUS 3.0 server, I get the following error :
    When I click on Check online for updates from Microsoft Update, it works fine.
    This means that the update on my WSUS server is corrupted.
    How can I remove this corrupted update from my WSUS 3.0 server and download it again ?

    Hi Luc,
    According to the screenshot, the error code is 80244019, which means HTTP 404.
    Could you please post the windowsupdate.log of the client here? It may give some hints.
    Best Regards.
    Steven Lee Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • How to clean and fix up Macintosh 128k?

    Hello,
    I recently received an original Macintosh 128k (M0001), and would like to use it. I have the ImageWriter, mouse, keyboard, and disks. The mouse and keyboard have been cleaned, but I was wondering how/where I can get the Macintosh and printer cleaned. Anything else? I have tried booting up the computer (without disks), and luckily, no Sad Mac appeared!
    So,is there anyone out there who is good with classic Macs?
    Thanks!

    The original 128k Mac is very valuable, they're worth hundreds even in average condition. This one sold for almost $3000.
    The sizzling sound may be arcing due to a failing high voltage (flyback) transformer. Charge attracts dust, which tends to be slightly conductive, which causes current to leak around the flyback and accelerate its demise. Simply cleaning all the black dust off the conductors may fix it, but when the internal winding insulation degrades it will eventually fail. Fortunately parts are readily available and not terribly expensive. When the flyback transformer fails it's easiest to simply replace the entire "analog / power" board, but the transformers are available too. CRTs themselves last practically forever - burn-in is the issue with them.
    Classic Macs are easy to fix, but don't crack the case unless you are familiar with electronics and especially the high voltages used for CRTs. Apple used bleeder resistors but if it failed open you'd have no way of knowing.
    I have not had a single problem with Imagewriter printers. No rubber degradation whatsoever. Vacuum out the dust once in a while and drop a very tiny bit of light machine oil on the carriage slide if it becomes dry. If it becomes dry linear scratches will appear. Avoid using alcohol on the platen. The print heads themselves will eventually wear out but they're easily replaced too. Replace the ribbons before they become too worn or you will accelerate the print head's demise also.
    I routinely use a 24 year old Imagewriter II with my OS X Lion iMac. It's never needed any attention. They're bulletproof.

  • HT204088 How to learn and fix my 5-year old's $200 purchase on App game?

    Yesterday, I put IceAgeVillage on my iPhone for my 5-year old.  He came back about 30 minutes later to show us some of the things he was buying in the game.  We asked how he could be buying those items since he just started and he showed us he had over $3 million in coins and 57 acorns.  It looks to us like he purchased them from the game and that the game would have charged us more than $200 for that amount.  We still have the coins and want to know how to reverse the transaction.  Can anyone help us?  Thank!!!

    You may well not be able to get a refund, since the terms of sale for the iTunes Store state that all sales are final. You can contact the iTunes Store, explain the reason for your request, and ask, though:
    http://www.apple.com/support/itunes/contact.html
    It's possible they'll make an exception for you. For future prevention of this problem, turn off the ability to install apps and to make in-app purchases in the Restrictions settings on the iPhone.
    Good luck.

  • How to Investigate and Fix Dependency Chains

    I have a package that is currently running but is displaying the following warning message:
    Warning: 0x80049305 at Data Flow Task, SSIS.Pipeline: The package contains data flow components with multiple inputs. Run-time dependencies that exist among these components may increase memory usage and reduce performance. Consider removing the dependency
    chain for the following component IDs and output IDs: 1790(1851) 667(671) 1890(1915) 680(752) , to improve performance.
    How do I go about investigating and removing the dependency chain for the listed component and output IDs? I can't seem to locate them.
    Thanks!

    the phrase "data flow components with multiple inputs" is the key
    I imagine you have such a case where you feed multiple inputs.
    If you show us a picture of the package somebody would point you out to it.
    Arthur My Blog

  • Internal error - how to debug and fix

    Hi Gurus
    I am trying to enter data for a business partner using transaction BP.  I am able to create the BP (person) however when I attempt to enter communication information, such as telephone number, I receive the following error message:
    Internal error - access to IT_ADR2_L
    Can anyone tell me how to debug this?  Please include individual steps, as I am not a developer.
    Any help greatly appreciated.
    Thanks
    Harrrry

    Dear Harry
    I think there are any permission issue better to talk basis team, because  i has work in my side.

Maybe you are looking for