Country-State-City hierarchy is driving me crazy ( duplicate attribute key errors)

hi guys:
  I've a dimDesitination dimension and inside this dim , I have 4 attributes, dimDest_ID, country, state and city,
my goal is pretty simple, create a hierarchy country-state-city .
I've made sure there are no NULLs in each column, also state and city attribute, I've created composite key 
for example, for state attribute , the key column is (country , state)
for city attribute, the key column is (country, state , city)
when the source dim table contains small number of data, every is fine and process full did succeed.
However, when the raw dim table gets bigger( more data comes in), the process full starts to give me error msg
says duplicate attribute key errors....   this is painful as I did check the raw table but no duplicate key found ever
any comments?
thanks
--Currently using Reporting Service 2000; Visual Studio .NET 2003; Visual Source Safe SSIS 2008 SSAS 2008, SVN --

Hi Cat_ca,
Thank you for your question. 
I am trying to involve someone more familiar with this topic for a further look at this issue. Sometime delay might be expected from the job transferring. Your patience is greatly appreciated. 
Thank you for your understanding and support.
Regards,
Charlie Liao
TechNet Community Support

Similar Messages

  • Place: Country/State/City/custom

    Is there any way to edit these four fields seperately in iPhoto?
    The problem I have is that they are sometimes used in a format I don't want. For example, if I have a picture taken at the New York Aquarium and assign it in iPhoto it will get as location USA/New York/Brooklyn/New York Aquarium (this was a choice suggeted by the program). Pics from The Empire State Building get USA/New York/New York/ Empire State Building however. Now if I look for pictures from New York (city) via Places the pics from the Aquarium are not listed.
    So the question is: how do I change Brooklyn to New York?

    Hi Cat_ca,
    Thank you for your question. 
    I am trying to involve someone more familiar with this topic for a further look at this issue. Sometime delay might be expected from the job transferring. Your patience is greatly appreciated. 
    Thank you for your understanding and support.
    Regards,
    Charlie Liao
    TechNet Community Support

  • How to find the Time zone of a given country & state

    Hi,
    Does anyone know how to retrieve the Time zone of a given Country/ State/ City?
    If I give 'United States of America' & 'California' as input, i want to get 'Pacific Standard Time' as output.
    Regards,
    AMRITA..

    There is no such built-in functionality. You would need a special database of all cities in US (if you want US only) or in the whole world that would tell you in which time zone a city lies. One US state may use multiple time zones, so you need a database at city (or, possibly, at least county level).
    I have no idea if anybody provides such a database, but Oracle certainly does not. Note also that such database would change over time as time zone assignments change from time to time.
    -- Sergiusz

  • Sql Server Script for the List of all Country State and City

    I am searching for the Sql Server Script of all country State and City with the Following type
    For the Country only 2 Columns are there i.e. CountryId and CountryName(CountryId is primary Key)
    For the State 3 Columns are there i.e. CountryId, StateId and StateName(StateId is Primary Key and CountryId is Foreign Key)
    For the City 3 Columns are there i.e. StateId ,CityId and CityName(CityId is PrimaryKey and StateId is foreign Key).
    I need this type of Script with Column name. plzzz help me out i m stuck i didnt get the list as i want.
    Thanx and Regrads,

    Hi Vishnu,
    According to your description, you want to list all countries, states and cities, right?
    I have tested it on my local environment, here is a sample script for you reference.
    select
    [dbo].[Country].[CountryId]
    , [dbo].[Country].[CountryName]
    , [dbo].[State].[StateId]
    , [dbo].[State].[StateName]
    , [dbo].[City].[CityId]
    , [dbo].[City].[CityName]
    from
    [dbo].[Country]
    left join [dbo].[State] on [dbo].[Country].[CountryId]=[dbo].[State].[CountryId]
    left join [dbo].[City] on [dbo].[State].[StateId]=[dbo].[City].[StateId]
    Regards,
    Charlie Liao
    TechNet Community Support

  • Country ,state and city checklist XML by JAVA

    Hi friends,
    I have textboxes for entering the country ,state and city values and all these 3 fields are related by primary/foreign keys.
    I wan now store and retrieve values entered by users for country state and city by xml files .I also wan all these 3 field to be interrelated so that based on value of country I can populate the related states dropdownlist and based on value of state I can populate the related cities dropdownlist.Can some one pls answer my question about STORING AND RETRIEVING COUNTRY STATE AND CITY FIELDS USING XML FILES?
    I also did this application using string(short cut) way but is not efficient and all I want is direct modification in XML file by java?
    I didnt put my codes here bcos it so long and still if any one want my codes i wll email u sperately.
    All I need is any example approach for this kind?
    Any one help will be appreciated...

    Using XMLEncoder
    by Philip Milne
    This article covers advanced use of XMLEncoder, showing how it can be configured to create archives of any Java objects -- even when they don't follow the JavaBeans conventions. We include examples of how to make properties 'transient' and how to create archives that call constructors with arguments, use static factory methods, and perform non-standard initialization steps. We also cover exception notification, the 'owner' property (which can be used to a link an archive to the outside world), and methods for creating internationalized archives.
    http://java.sun.com/products/jfc/tsc/articles/persistence4/index.html

  • Errors driving me crazy! But, it all compiles fine

    Errors driving me crazy! although compiles fine
    I am working on a project for an online class - I am teaching myself really! My last assignment I cannot get to work. I had a friend who "knows" what he is doing help me. Well that didn't work out too well, my class is a beginner and he put stuff in that I never used yet. I am using Jgrasp and Eclipse. I really am trying but, there really is no teacher with this online class. I can't get questions answered in time and stuff goes past due. I am getting this error:
    Exception in thread "main" java.lang.NullPointerException
    at java.io.Reader.<init>(Reader.java:61)
    at java.io.InputStreamReader.<init>(InputStreamReader .java:55)
    at java.util.Scanner.<init>(Scanner.java:590)
    at ttest.main(ttest.java:54)
    ----jGRASP wedge2: exit code for process is 1.
    ----jGRASP: operation complete.
    This is my code:
    import java.util.*;
    import java.io.*;
    public class ttest
    static Scanner console = new Scanner(System.in);
    public static void main(String[] args)throws IOException
    FileInputStream fin = null; // input file reference
    PrintStream floser = null; // output file references
    PrintStream fwinner = null;
    Scanner rs; // record scanner
    Scanner ls; // line scanner
    String inputrec; // full record buffer
    int wins; // data read from each record
    int losses;
    double pctg;
    String team;
    String best = null; // track best/worst team(s)
    String worst = null;
    double worst_pctg = 2.0; // track best/worst pctgs
    double best_pctg = -1.0;
    int winner_count = 0; // counters for winning/losing records
    int loser_count = 0;
    // should check args.length and if not == 1 generate error
    try
    Scanner inFile = new Scanner(new FileReader("football.txt"));
    catch( FileNotFoundException e )
    System.exit( 1 );
    try
    floser = new PrintStream( new FileOutputStream( "loser.txt" ) );
    fwinner = new PrintStream( new FileOutputStream( "winner.txt" ) );
    catch( FileNotFoundException e )
    System.out.printf( "unable to open an output file: %s\n", e.toString() );
    System.exit( 1 );
    try
    rs = new Scanner( fin );
    while( rs.hasNext( ) )
    inputrec = rs.nextLine( ); /* read next line */
    ls = new Scanner( inputrec ); /* prevents stumble if record has more than expected */
    team = ls.next( );
    wins = ls.nextInt();
    losses = ls.nextInt();
    if( wins + losses > 0 )
    pctg = ((double) wins)/(wins + losses);
    else
    pctg = 0.0;
    if( pctg > .5 )
    if( pctg > best_pctg )
    best_pctg = pctg;
    best = team;
    else
    if( pctg == best_pctg )
    best += ", " + team;
    fwinner.printf( "%10s %2d %2d %5.3f\n", team, wins, losses, pctg );
    winner_count++;
    else
    if( pctg < worst_pctg )
    worst_pctg = pctg;
    worst = team;
    else
    if( pctg == worst_pctg )
    worst += ", " + team;
    floser.printf( "%10s %2d %2d %5.3f\n", team, wins, losses, pctg );
    loser_count++;
    fin.close( );
    floser.close( );
    fwinner.close( );
    catch( IOException e ) {
    System.out.printf( "I/O error: %s\n", e.toString() );
    System.exit( 1 );
    System.out.printf( "%d teams have winning records; %d teams have losing records\n", winner_count, loser_count );
    System.out.printf( "Team(s) with best percentage: %5.3f %s\n", best_pctg, best );
    System.out.printf( "Team(s) with worst percentage: %5.3f %s\n", worst_pctg, worst );
    The assignment is:
    Create a Java program to read in an unknown number of lines from a data file. You will need to create the data file. The contents of the file can be found at the bottom of this document. This file contains a football team's name, the number of games they have won, and the number of games they have lost.
    Your program should accomplish the following tasks:
    1. Process all data until it reaches the end-of-file. Calculate the win percentage for each team.
    2. Output to a file ("top.txt") a listing of all teams with a win percentage greater than .500. This file should contain the team name and the win percentage.
    3. Output to a file ("bottom.txt") a listing of all teams with a win percentage of .500 or lower. This file should contain the team name and the win percentage.
    4. Count and print to the screen the number of teams with a record greater then .500 and the number of teams with a record of .500 and below, each appropriately labeled.
    5. Output in a message box: the team with the highest win percentage and the team with the lowest win percentage, each appropriately labeled. If there is a tie for the highest win percentage or a tie for the lowest win percentage, you must output all of the teams.
    Dallas 5 2
    Philadelphia 4 3
    Washington 3 4
    NY_Giants 3 4
    Minnesota 6 1
    Green_Bay 3 4

    If you are working in Eclipse IDE, you can set a breakpoint and single step through your code to determe what line crashes. You can also examine variable values before the crash. Locate a line before the crash and set a breakpoint by double clicking on the vertical blue line that appears immediately to the left of the line of code. A blue 'dot' will appear on the line. Then,from the menu, select 'debug as application'. This will run your main() function up to that break point. In the menu, there are icons to allow you to single step through lines of code from that point, and another icon to step over lines of code if you want.
    Alternatively to setting break points, you can sprinkle your code with piles of System.out.println statements. Example: you have System.out.println("1"), and in another part of your code System.out.println("2"). If you code runs and prints out "1", but not "2", then you code crashed between them. I use breakpoints and System.out.println to debug.
    In your trace, you have "at java.util.Scanner.<init>(Scanner.java:590)" which means it crashed at line 590 (note in all the tracings, Scanner.java is a name of one of your custom classes and not a vendor class, thats how you can quickly find what part of the trace is important to you).
    NullPointerException means you tried to call a function on an object that is not instansiated (its null).
    Example: person.getName() will not work if person is null. Its the call to getName() that crashes.
    Debugging code is a very important skill set that you have to develop in which you have to logically track down and isolate problems.

  • Hi, Mail is driving me crazy by grouping received messages together by subject. I want each message, irrespective of subject, to appear stand-alone on a line of my mailbox. My old Mail did this automatically. How do I get back to old ways! Thanks...Rick

    The new Mail is driving me crazy by grouping messages together according to subject. My old Mail, under OSX 10.5, listed each message independently in my Mailbox by date received. One line in my Mailbox for each message. How do I get this way of posting messages back again? Thanks.

    So nice of you be so responsive. Thank you. Unfortunately, something is just not right even though I pretty much always keep my Macs in good health. When I move that folder (~/Library/Containers/com.apple.mail) and let it create a new one, Mail stops remembering ANY preferences. I can move and resize my windows and change my Prefs, but when I quit and relaunch Mail it goes back to some default state with none of my changes honored. Furthermore, when I search for the string "DisplayInThreadedMode" with BBEdit within that folder and all its subfolders, nothing is found.
    Maybe it has to do with how many things I disable on the recent OS X versions. I routinely disable Spotlight, Notification Center, Dashboard, Auto-Save & Versions, Gatekeeper, Automatic App Termination.... you know, all that stuff that I never asked for and don't need/want ;-)
    Maybe I could try re-enabling Auto-Save or something. Still, no other apps ever seem to behave strangely when I set all these "hidden preferences" to disable these unwanted OS features. Who knows, maybe the Mail team (programmers) just started assuming something was available which they didn't used to assume in 10.8.

  • My i tunes won't open. i keep getting error7 (windows error 193) . contacted microsoft(thought it was a windows thing...not) have uninstalled itunes and everything related to it ,re installed and message still comes up. Help please,driving me crazy.

    help. my iTunes wont open. I keep getting the message error7 (windows error 193). contacted Microsoft they said contact iTunes support. I have uninstalled all iTunes componets and then reinstalled everything but message still comes up... its driving me crazy.

    If it's a Windows error, it's typically going to be a Microsoft problem. Uninstall any security software you have and if you have a restore point for your PC, you may want to restore your PC back to when iTunes was working normally. If none of those work you would need to contact Microsoft and demand help.

  • How do I stop iTunes from automatically sorting by Album Artist?  Driving me crazy.

    How do I stop iTunes from automatically sorting by Album Artist?  Driving me crazy.
    I listen to primarily classical music
    All of my music was very deliberatley titled by composers "Last Name, First Name" as the artist.
    iTunes is changing it to the Album Artist.  I have to go in and delete that information - AND THEN IT LATER REVERTS IT BACK!!!
    Hours have been wasted and I am feeling so ticked.
    Any help?

    Purchased or ripped media?
    If these are ripped mp3s then another possibility is multiple embedded tags. iTunes works best with a single ID3v2.3 tag. Some software creates both an ID3v1.0 and IDv2.x tag. With multiple tags it is not certain which iTunes reads or which it updates, and any device may choose differently. Once songs have the correct info. in iTunes you can use Convert ID3 Tags... None several times, then Convert ID3 Tags... v2.3. The process removes any embedded art but otherwise preserves the data that iTunes knows. You could use my script CreateFolderArt before and after to save and then restore the artwork.
    In the long run you may be better off populating Album Artist properly with a copy of whatever is currently in Artist. My script CopyArtistToAlbumArtist can do this effectively.
    tt2

  • I've added to ios6 to my new ipod touch with no problems. I'm trying to now restore the factory settings but the screen is frozen with an itunes sign and lead pointing towards it. The ipod won't even switch off. Can anyone help as it's driving me crazy

    I've added ios6 to my new ipod but tried then to restore the factory settings. It won't extract any settings and the itunes then tells me that the server cannot be reached or is unavailable. I've been trying all day. Now the ipod has a itunes sign and a computer lead pointing towards it on the screen and this is frozen. It won't switch off or do anything else. Any ideas as this is now driving me crazy.

    Try:
    - iOS: Not responding or does not turn on
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar       

  • I can no longer back up my iphone to my computer on selecting 'sync'. I can back up to iCloud but I get an error message telling me I cannot backup to my Mac. Can any one help? It's driving me crazy!

    I can no longer back up my iphone to my computer on selecting 'sync'. I can back up to iCloud but I get an error message telling me I cannot backup to my Mac. Can any one help? It's driving me crazy!

    Hello joelfromn. charleston,
    It seems you are unable to activate iMessage on a device with no carrier service. The following article provides information regarding activation issues:
    If you get an error when trying to activate iMessage or FaceTime - Apple Support
    Check your device settings
    Make sure that you’re connected to a cellular data or Wi-Fi network. If you're using an iPhone, you'll need SMS messaging to activate your phone number with iMessage and FaceTime. Depending on your carrier, you might be charged for this SMS.
    Go to Settings > General > Date & Time and make sure that your time zone is set up correctly.
    Thank you for contributing to Apple Support Communities.
    Cheers,
    Bobby_D

  • Please help me fix this problem it's driving me crazy. I have tried installing and reinstalling photoshop EXTENDED several time and each time i lunch it ask me for the serial number in which i entered it once entered nothing happens

    Please help me fix this problem it's driving me crazy. I have tried installing and reinstalling photoshop EXTENDED several time and each time i lunch it ask me for the serial number in which i entered it once entered nothing happens

    Hi Glenn,
    Kindly try out the steps mentioned in the link below and see if you are able to serialize your software.
    Sign in, activation, or connection errors | CS5.5 and later, Acrobat DC
    Try Solution 2: Clean up cached user login information.
    Please share the results after performing the steps.
    Thanks,
    Atul Saini

  • Mail 2.1.3 on Tiger: mutiples of everything is driving me crazy!

    Hi, I recently had to reformat my hard drive and thus have been trying to reinstall all my email accounts (which I had backed up). I am using MAIL 2.1.3.
    I have several questions (this is driving me crazy!!):
    When I imported the archived files, it created new mailboxes but DID NOT reinstall my mail in it's corresponding email account file (i.e: i have an email account for incoming mail with "username", and then far below I have a mailbox (for EACH account, and I have about 7) which contains all my old mail. I can't seem to merge the two.
    When I recreated my useraccounts (most of which are gmail), I followed online instructions and created all my accounts using IMAP, since my first attempt using the POP version of these same accounts would NOT SEND OUT any of my Gmail mail. Now, for EACH ACCOUNT, not only do I have a "regular mailbox", I have the same "imported" from my old version, AND a third folder under "IMAP".... All this is REALLY driving me crazy!!
    All I want to achieve is what i had before : one version of each of my email accounts, including Gmail, that both recieve AND send mail. Nothing more.
    On the my other computer (leopard) Mail configures itself and everything works: it's bliss!!!
    Can anyone help me clear up this mess (also because as a result everything is SLOW!!)
    Infinite thanks,
    Nicaru

    Thanks BDAqua, Unfortunately I did not do a very good job explaining myself.
    I am not trying to sync two computers (Tiger/Leopard). The Leopard comment was just me venting that it was so much a better program than Tiger....
    No, what I want is simply to recreate my Mail Client the way it looked before: with one inbox per username, a single Sent/Draft/Outgoing mailbox and that's all!!
    Instead for each username I have "normal" Inboxes, PLUS imported folders (each with their own Inbox/Sent/Draft mailboxes) PLUS IMAP folders again with their own individual Inbox/Sent/Draft mailboxes). My homepage when I open Mail contains something like 21 folders, whereas I only want the 7 (one per username).
    This whole thing came about because when I tried to import my old mailboxes (pre-formatting my mac) they imported as separate folders whereas I wanted them to merge into their respective accounts.
    The other issue I had (originally) which led to this mess is that none of my Gmail accounts would SEND mail (receiving is Ok) so I followed the online IMAP instructions and this is where I got triplets....
    Gosh, I don't know how else to explain it... If it's still not clear perhaps I should just erase everything and start from scratch??
    Thanks again,
    Nicaru

  • Curve issues driving me crazy!!

    Ok, so I bought my BB Curve in January, and at first I loved it!
    A few days ago though it began going crazy.  Everytime I try to open something I get that annoying clock thing, and then once I finally get the program open, it stays.  This happens during phone calls (so it is rediculous trying to answer and end calls)  writing texts and email - anything.
    Then I added in the battery issue - my phone will die within 6 hours, even if I am not doing anything different.
    And now...the last few nights the screen has gone white with a weird meesage on it (something like APP ERROR I think...)
    I got a new SIM card, and that fixed it for about 6 hours. 
    This is driving me crazy!  i take my battery out so many times during the day it is almost not worth having a phone!
    Please please please help!

    I have the Curve 8130 - my carrier is ATT & for about the last mth it has been sluggish. The hourglass keeps popping up like something is running in the background. I have not loaded any new apps recently & it does starighten out after I pop the battery, but that's getting old pretty quick. Fortunately, I'm not having battery issues - but it is a nuisance to keep fighting with that **bleep** hourglass. Anybody else out there having the same issues or are we just the lucky ones???
    Looks like 2 different carriers here, so I don't think it's an ATT thing. Is Blackberry doing something or upgrading something that maybe we're not aware of? I never had an issue with my Curve before - but this last month has been really aggravating. I'm sure we can't be the only 2 people having these issues. Help!!!

  • Auto Sync driving me crazy!

    Hi can anyone help me.
    Im using LR CC and when i select 2 or more images in develop module and make changes (when auto sync is selected) only my visible image changes (not all selected images).
    what am I doing wrong? its driving me crazy!!
    any advice appreciated
    Andrew

    Never heard of such a thing - are you sure auto-sync is enabled in develop module?
    Note: Develop module and Library module both have a separate auto-sync control (i.e. one can be enabled and the other disabled).
    Are you saying that the other images are not appearing changed (previews in filmstrip not being updated), or their settings are not being changed (develop settings unaltered).

Maybe you are looking for

  • (ID 30101 Details: Data error (cyclic redundancy check) (0x80070017)) _More information

    Hi, Can anyone please help with this?  Our Tape Drive died and we got a new one from our Maintenance Company. Since then large backups to tape are failing.  When the jobs are small they seem to go through OK but when the job is greater than around 20

  • Getting charged for free apps

    mi ipod touch app store keeps sending me to the billing information for free apps

  • Getting back my backed up photos!

    Hi guys, In an emergency I needed to free up a lot of space on my internal HD and I backed up the follwowing folders, not really thinking of the consequences: Schools Photos (7.11GB) Originals (2.89 GB) Data (129 MB) Modified (1.77GB) Obviously, in i

  • PS CC - Performance, open and save files

    Hi guys, I am working on multi-gigabyte files 4-10gb, but say a 5gb file takes me approx 75 seconds to open... it only use 4 core's and 10gb of ram. Saving is so sloow - same size files, now I haven't timed it but it takes time... IMHO it takes too m

  • After Effects project not updating

    Hi I have an issue with media encoder, when I use media encoder to render a After Effects project and then need to make a change to the original AE project and re render I'm finding that the change is not reflected when I re open that file in media e