Match not functioning for hashtable keys

Updated
Hello,
I'm seeing unexpected behavior and am hoping for a little help.
My PS ver is:
Major  Minor  Build  Revision
3      8      0      129 
Here is a snip that illustrates the issue (reproducible)
$aRecords = $null; $aRecords = @{}
$aRecords.add('tblARecords_1_txtHost','1.1.1.2')
$aRecords.add('tblARecords_0_txtHost','1.1.1.1')
$aRecords.add('tblARecords_1_txtPointsto','1.1.1.2')
$aRecords.add('tblARecords_0_txtPointsto','1.1.1.1')
$gdRecords = $null; $gdRecords = @{}
$gdRecords['typeA'] = $aRecords
$records = $null;$records = @()
$records = 'tblARecords_0'
foreach($g in $gdRecords.Keys) {
foreach($d in $gdRecords[$g]) {
if($d.Keys -match $records) {
write $d
$records = tblARecords_0
But the results i get back are 
tblARecords_1_txtHost
tblARecords_0_txtHost
tblARecords_1_txtPointsto
tblARecords_0_txtPointsto
Even if i substitute the the variablw $wr with the string itself ('tblARecords_0'). It still produces the same same results
Any help would be appreciated

I understand that he is devoting his own time and effort, and that he is not a MSFT employee. For that i am appreciative. My issue is that an approved moderator should be a bit more thoughtful with his language. Normally i wouldn't care but am having one
of those days. Problem is someone may be put off from that approach and may not come back. Perhaps also move on to something else as a result.
I also agree with his request, I probably should have made a reproducible script prior to posting and am updating my question.
Sorry but I disagree.  I know you believe your post is useful and explains everything.  It doesn't.  None of us can decode your variables or comments because we do not have your environment or the full script.
Bill was trying to point put that you need to put in more effort to ensure those who are trying to help you do not have to play guessing games.
Items 7 and 8 are exactly to the point.  Addres those issues and you will likley get a quick and correct answer.
Here are items 7 and 8:
7. Let someone else devise a repro case. When the button click handler isn't called in your sample, by no means should you try to create a smaller repro case. All you know is that your sample doesn't run.
8. Post a sample that depends on a resource you don't describe. Be sure your sample reads from your production database. Don't worry, people will figure out your schema.
¯\_(ツ)_/¯

Similar Messages

  • Windows 8 setup does not prompt for license key, then fails, on hp envy notebook

    Hi,
    I am trying to install Windows 8 pro on an hp envy dv7 notebook, that came with a Windows 8 home pre-installed.
    I tried by running the setup from the CD inserted while Windows was running, but setup complained that no license key matched the CD and faled. Strange enough,
    setup did not prompt for any license key!
    I tried the setup on another, older PC, there it did prompt for license key and setup ended well. At least it was not the CD.
    Then I retried booting from setup CD, it loaded files, then started the setup without promptiing for any license key, and failed again.
    Then I tried with a Windows 7 CD, same behavior, not prompting for license key and fail to setup.
    Then I "repaired" Windows by booting from CD and reformatting the hard drive, dropping all Windows partitions, then restart setup from CD, but it still behaved the same way: not prompting for license key, and failing to setup.
    I called the HP support, and they answered that it was a problem for Microsoft (what a good support, the only place where the problem occurs is the hp computer, but let the Customer call Microsoft instead).
    So here I am, did any of you use an hp computer, and succeeded in installing Windows 8 PRO NFR from Technet plus on it?
    Regards
    Pierre

    Hi,
    I am trying to install Windows 8 pro on an hp envy dv7 notebook, that came with a Windows 8 home pre-installed.
    I tried by running the setup from the CD inserted while Windows was running, but setup complained that no license key matched the CD and faled. Strange enough,
    setup did not prompt for any license key!
    I tried the setup on another, older PC, there it did prompt for license key and setup ended well. At least it was not the CD.
    Then I retried booting from setup CD, it loaded files, then started the setup without promptiing for any license key, and failed again.
    Then I tried with a Windows 7 CD, same behavior, not prompting for license key and fail to setup.
    Then I "repaired" Windows by booting from CD and reformatting the hard drive, dropping all Windows partitions, then restart setup from CD, but it still behaved the same way: not prompting for license key, and failing to setup.
    I called the HP support, and they answered that it was a problem for Microsoft (what a good support, the only place where the problem occurs is the hp computer, but let the Customer call Microsoft instead).
    So here I am, did any of you use an hp computer, and succeeded in installing Windows 8 PRO NFR from Technet plus on it?
    Regards
    Pierre
    Is it a Chinese Editon preinstalled in HP notebook?
    Windows 8 preinstall machine includes a license key in system firmware. So Windows 8 setup will use this key rather than pop up product key input text pop. It is a Microsoft by design issue. So no good mathod to workaround this problem.
    http://whqlcn.wordpress.com

  • Developer key is not functioning for sap netweaver 2004s trail version

    hi,
    when i was creating a controller class in bsp..its asking for a developer key...i have also extended the license..and i have also used the key which is specified in this page below...kindly refer this link...give me a solution inorder to edit repository objects
    http://service.sap.com/sap/bc/bsp/spn/minisap/minisap.htm.

    Hi,
    check Developer key not valid for NSP ??.
    Peter
    Points always appreciated

  • How to use a standard library binary search if I'm not searching for a key?

    Hi all,
    I'm looking for the tidiest way to code something with maximum use of the standard libraries. I have a sorted set of ints that represent quality levels (let's call the set qualSet ). I want to find the maximum quality level (choosing only from those within qualSet ) for a limited budget. I have a method isAffordable(int) that returns boolean. So one way to find the highest affordable quality is to start at the lowest quality level, iterate through qualSet (it is sorted), and wait until the first time that isAffordable returns false. eg.
    int i=-1;
    for (int qual : qualSet) {
         if !(isAffordable(qual))
              return i;
         i++;
    }However isAffordable is a slightly complicated fn, so I'd like to use a binary search to make the process more efficient. I don't want to write the code for a binary search as that is something that should be reused, ideally from the standard libraries. So my question is what's the best way of reusing standard library code in this situation so as to not write my own binary search?
    I have a solution, but I don't find it very elegant. Here are the important classes and objects.
    //simple wrapper for an int representing quality level
    class QualityElement implements Comparable<QualityElement>
    //element to use to search for highest quality
    class HiQualFinderEl extends QualityElement {
         HiQualFinderEl(ComponentList cl) {...}
    //class that contains fair amount of data and isAffordable method
    class ComponentList {
         boolean isAffordable(int qual) {...}
    //sorted set of QualityElements
    TreeSet<QualityElement> qualSet When you create an instance of HiQualFinderEl, you pass it a reference to a ComponentList (because it has the isAffordable() method). The HiQualFinderEl.compareTo() function returns 1 or -1 depending on whether the QualityElement being compared to is affordable or not. This approach means that the binary search returns an appropriate insertion point within the list (it will never act as if it found the key).
    I don't like this because semantically the HiQualFinderEl is not really an element of the list, it's certainly not a QualityElement (but it inherits from it), and it just feels ugly! Any clever suggestions? Btw, I'm new to Java, old to C++.
    If this is unclear pls ask,
    Andy

    Thanks Peter for the reply
    Peter__Lawrey wrote:
    you are not looking for a standard binary searchI'm not using a binary search in the very common I'm searching for a particular key sense, which is the Collections.binarySearch sense. But binary searches are used in other situations as well. In this case I'm finding a local maximum of a function, I could also be solving f(x)=0... is there a nice generic way to handle other uses of binary search that anyone knows of?
    I would just copy the code from Collections.binarySearch and modify itI have this thing about reusing; just can't bring myself to do that :)
    It would be quicker and more efficient than trying to shoe horn a solution which expects a trinary result.Not sure I understand the last bit. Are you referring to my bastardised compareTo method with only two results? If so, I know, it is ugly! I don't see how it could be less efficient though???
    Thanks,
    Andy

  • Shift and CMD keys not functioning with other keys

    System Specs:
    15-inch, Early 2011
    Processor  2.2 GHz Intel Core i7
    Memory  16 GB 1333 MHz DDR3
    Software  OS X 10.8.5 (12F37)
    Hello,
    My issue is with the keybaord of my Macbook Pro. Just yesterday I noticed the following problems with my keyboard.
    Error Issue:
    Right Shift key+D
    Right Shift key+C
    Right Shift key+E
    Left CMD+C
    Are all not functioning. I don't know what happened, I ran the keyboard viewer and tested all these keys out, the weird thing is that I can use the alternate keys on right and left, like shift and CMD.
    Please help your urgent feedback is appreciated.

    I suggest trying the following (check after each step):
    1) Reboot
    2) Reset PRAM using this procedure: http://support.apple.com/kb/HT1379
    3) Reset the SMC: http://support.apple.com/kb/ht3964
    4) check in a different user space (maybe it's a preferences problem)
    5) take to Apple store

  • Not prompted for encrytion key for /dev/mapper/home

    I never had a problem setting up encryption on my last laptop, but for some reason on this new laptop I am having the hardest time with this...
    I tried installing about four times because I thought I missed something.  I have 3 partitions /boot , / and /home, during boot / prompts me for a key and works fine, but it doesnt bother asking me for a key for /home
    In my /etc/crypttab i have
    home     /dev/mapper/home      ASK
    in my /etc/fstab i have
    /dev/mapper/home /home ext4 defaults 0 1
    during the install I did everything I thought necessary from the various archlinux wiki pages on encryption.
    am I missing something?(obviously I am)

    Here try this:
    If you using WZC or the built-in wireless utlity of windows.
    Go to network  connections > right click the wireless network connections >
    Go to the wireless network tab > delete all the prefered networks >
    Try to reconnect to the wireless network again
    If your using Linksys wireless utility or WLAN
    Open the software > Go to the profile tab and delete all that you dont need
    Try to reconnect to the network again
    The profile or the prefered networks are lists of all the networks you have ever connectec to. I believe you did not change the SSID of your network when you secured thus your computer detects it still as an unsecured network
    hope this help
    "Give them nothing... But take from them everything..."
    -Leonidas "300"

  • "Rules" not functioning for organization of Mail.  Please advise.

    In order to make my life easier, I've set up some rules to help organize my mail. For example, I set up a rule that says:
    If the From contains [email protected]
    If the To contains [email protected]
    Move message to the folder entitled myfriend.
    This rule works for all incoming mail, but does not work for sent mail. Why not? And what do I need to do so that all email, either recieved from that person or sent to that person always ends up in the same folder (i.e. the "myfriend" folder which is located in my Imports folder, meaning it is taken off the mail server)?
    Please advise
    Best,
    Tim
    Powerbook G4 Aluminum   Mac OS X (10.4.4)  

    Landolphe,
    First of all the update from 10.4.3 to 10.4.4 did not do any updates to Mail, so that should not be an issue. Your short description of the Mailboxes folder does not immediately seem out of line, but difficult to tell, yet.
    If anything has taken place to move any folders and mailboxes around, then Rules can sometimes lose track of the target mailbox -- have you moved anything, either in the Sidebar of the Mail window, or using the Finder?
    If your mailboxes, or at least some of them, originated in Panther, I want you to read the article at the link below, and then get back to me with some observations, before attempting any changes:
    http://docs.info.apple.com/article.html?artnum=301315
    This issue of leftover files applies not only to mailboxes you have previously created (which are in the Mailboxes folder the article mentioned) but can also apply to those mailboxes in account folders created prior to the upgrade to Tiger.
    Also, please report the size of each file or folder. Do not, however, try to list the files that are within the folder named Messages, that is found in each and every mailbox.
    More info, please.

  • Arrow keys do not function for use as shortcuts

    I am able to perform shortcut functions except for when the shortcut involves using an arrow key. This behavior applies for native applications such as Finder and also third party software.

    I've had this problem myself and want to know an easier way. The keys will work if you hold down the "option" button. The problem is, this is too difficult for my 3 year old so I have to hold the key while he plays. If you find a way to lock the arrow keys, let me know.

  • Ipad sounds is not working, for instance key board does not click anymore

    My iPad's sounds are not all working properly.  For instance, I can watch video clips and hear everything, but some apps do not play sounds or when typing on the keyboard, no clicking.  The noise it typically makes when  you plug it in to charge is gone as is the click sound when opening the screen.  Can anyone provide any help or insight as to what may be causing this?  I have looked in settings/sounds and all is correct.
    thank you.

    Is Settings > Sound > Keyboard Clicks ON?
    Do a reset (Hold Sleep/Wake and Home buttons about 10 secs or more till Apple logo appears, ignore the Slide to Power Off that appears)
    Note: You will not lose any data.

  • Hyperlinks not functioning for the INDEX/Weblinks - HELP!

    I have checked the forum to see if I could find a solution to my problem. I was not able to do so. This posting is an 'add-on' to my first one posted 4 hours ago stating I could not go to subsequent pages in my INDEX. I am re-posting my issue because I discovered the weblinks are not hyperlinked either. Upon going to Inaspector or the Insert Menu-Hyperlink-Web Page-E-mail, all selections were greyed-out. When I added 2 new weblinks to hyperllink, I could not do so in either from the Insert Menu-Hyperlink or in Inspector, where the insertions were greyed out.
    The website URL is: http://lanark-baldersonpastoralcharge.ca
    Hyperlinking is functioning on the internet, thankfully.
    Your assistance will be greatly appreciated. I count on your expertise and knowledge to help me out.
    Thank you!

    iWEB RESOLVED THE PROBLEM AFTER A COMPLETE UPLOAD OF THE WEBSITE FOLLWED BY RECONSTRUCTING A FORMER PAGE THAT HAD COMPLETELY DISAPPEARED FROM WITHIN THE PROGRAM. IT WAS AFTER THE UPLOAD OF THE MISSING BUT RECONSTRUCTED WEBPAGE THAT iWEB RESTORED ITSELF. IT WAS MENTIONED IN ONE OF THE THREADS THAT THIS WOULD HAPPEN. RIGHT ON!

  • Authentication Properties button not functional for 802.1x authentication

    With version 4.52 for Windows XP, Build 7TCX26WW of ThinkVantage Access Connections, the 'Authentication Properties' button doesn't work for 802.1x for Ethernet.  Has anyone else been experiencing this?  Had to work-around by using the Windows Network Connections properties pages for the Ethernet device.  Would be nice to have this utility working fully.  Found it useful for someone who shifts from one work environment to another.
    Thanks in advance.

    Hi
    Welcome To Lenovo Community
    We are really sorry to hear about the issue you are facing,  
     Please try uninstalling the Access Connection   
    Restart the unit, download and install Access Connection from below link
    http://support.lenovo.com/en_IN/downloads/detail.p​age?DocID=DS013683
    Do give this a try and let us know  
    Hope This Helps
    Cheers!!!
    WW Social Media
    Important Note: If you need help, post your question in the forum, and include your system type, model number and OS. Do not post your serial number.
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"!
    Follow @LenovoForums on Twitter!
    How to send a private message? --> Check out this article.
                            English Community   Deutsche Community   Comunidad en Español

  • Keyboard not working for certain key(s)

    I am wondering if anyone else has had this issue yet. I have an iPhone 8GB running Software Version 1.1.4. When using the keyboard in landscape mode (so basically, using Safari) the key that is represents "U" and "7" does not work. To test this, I run my finger over across the top row and that key is definitely skipped.
    This does NOT happen when the keyboard is in portrait mode.
    ...This seems like a SW issue, but could it possibly be a dead touch sensor in the vicinity of the key?
    Any help is much appreciated.
    Thanks.

    Here are a couple of articles from the apple support website that might help out.
    http://docs.info.apple.com/article.html?artnum=305740
    http://docs.info.apple.com/article.html?artnum=305744

  • Middle mouse button does not function for Firefox Tab browsing when cetain programs are running.

    My Microsoft Comfort Mouse 3000 middle button is set in Firefox to open and close tabs. (In Control Panel, Mouse, Firefox is the only program exception and the Wheel button is set to middle-click instead of the default Instant Viewer).
    When vlc media player (http://www.videolan.org/vlc/) is running and at some point viewed in full screen, the middle mouse button reverts in Firefox to the default Instant Viewer. When vlc is closed, tab operation once again works.
    The same thing happens if MWSnap screen capture (http://www.mirekw.com/winfreeware/mwsnap.html) is running.

    Very glad to see I am not alone. Alas....that answer did nothing on my system. I also am very very frustrated that, all of a sudden, my middle mouse button brings up a weird four pointed arrow! (see pic) I NEED it to open links in tabs for researching!!
    I turned off auto scrolling in the advanced settings. Restarted FF even...and nada.
    I have disabled every single add on I had (only like 6 of them)...and nothing.
    This happened all the sudden...I dont even know of an update. FF v3.6.10

  • Column header filtering not functioning for external lists

    I have a problem with column header filtering on external lists, specific for columns of Number and Date types.
    When the site's regional settings are in English (United States) filtering works fine, but if I choose any other regional setting with different number formatting (ie Dutch) then filtering on these columns gives no results.
    When clicking on the column header filter dropdown, the numbers to filter on are displayed with thousands seperators where the numbers in the views are not formatted as seen in attached screenshot.
    Filtering on custom sharepoint list with these regional settings is working fine, it is just on external lists, on number and date fields and regional setting is not English.
    I have tried all different kind of regional settings on the client and the server, but no results.
    Anybody has a clue?
    Clicking on the column header shows all available filter values (with thousand seperator). Selecting one value gives no results:
    No results after selecting a filter value

    Hi,
    According to your post, my understanding is that you had an issue about column filter in external list.
    We can use the SharePoint Manager to change the column type to “single line of text”, then you would filter column in the external list.
    There is a similar thread for your reference:
    http://social.technet.microsoft.com/Forums/en-US/fe67d581-6e7b-4770-b296-8ec0f9b5b769/not-able-to-filter-or-sort-by-list-column-headers-for-external-data-fields-ideas?forum=sharepointgeneralprevious
    Thanks,
    Jason
    Forum Support
    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 Subscriber Support, contact
    [email protected]
    Jason Guo
    TechNet Community Support

  • 100% Sampling Procedure is not functioning for Prod. Order - Insp.Type:03

    Hi Experts,
    We have a number of material as  SPARE PARTS.
    We are creating Production Order for these Spare Parts.
    Inspection Type 03 is used for it.
    Customization -> Define Default Values for Inspection Type
    Sample  100 % Inspection Check Box is activated
    Skips Allowed Check Box is activated.
    Material Number : 571113211
    QM View
    Inspection Type 03 is assigned
    100 % Inspection Check box is activated (By Customization Setting)
    Skips Allowed Check Box is activated (By Customization Setting)
    Routing is created for this material .
    For the operation 10,  Two MIC are assigned.
    For Each MIC the 100% SAMPLING PROCEDURE IS ASSIGNED
    Production Order is created with Qty. : 80.
    System generates the Inspection Lot.
    The result recording screen  the u201CINSPECT FIELD  SOLLSTPUMF IS 1 ONLY.
    It must be 80.
    I am able to record only one entry.
    As 100 % SAMPLING PROCEDURE IS ASSIGNED TO THE MIC,
    THE LOT SIZE OF THE PRODUCTION ORDER MUST BE THE SAME OF SAMPLING SIZE.
    For the manual Inspection type, I just assigned the sampling procedure to the MIC in Inspection Plan.
    When I created the Inspection lot the Sampling size  with Inspection Lot qty of 80,
    I am able to enter the result for the specified MIC 80 times.
     It is working fine for manual Insp. Type  89.
    With Best Regards,
    Raghu Sharma

    Hi Rajaram,
    Thanks for your prompt reply.
    The issue is solved.
    This is the requirement of Inprocess Inspection.
    I am assigning the MIC in Routing.
    Hence I need the Inspection lot as soon as Production Order is released.
    In Material Master QM View, Inspection Type 03.
    I have deactivated the 100% Inspection Check Box.
    The issue is solved.
    With Best Regards,
    Raghu Sharma

Maybe you are looking for

  • How to delete the old ios6 in itunes ?

    the ios7 downloaded into the music app. I need to delete ios6 in itunes and move the update to itunes. how can I do that?

  • BI 7 object field restrictions report

    Hi, Can someone please assist me.  We are working on BI7, and I have created my restriction objects for the roles in RSECADMIN.  I'm now trying to find a list of objects (and roles) that have 0CO_AREA as a restriction field. Can someone advise on how

  • How to set default value in transient boolean attribute in VO in ADF

    Hi ADF Experts, I have requirement like,I have viewObject with one transient booelan attribute, I want to set default value of that boolean attribute as "True" How can I achive that please help, Tried every thing but no luck.

  • Helping me the outline and process with my lab project

    I and a graduate student and I have a simple project with the LabView. I am a beginner with the LabView. I know what are the requirements of the project. If I write down my requirements here can someone give me hints or outline on how to do that proj

  • Should I write a how-to online course on iPhoto

    Hello all! I am a computer support technician for an accounting firm and I moonlight as an online multimedia instructor with classes on photography (www.mydigitalworks.com). I am starting to wonder if I should develop classes on photo programs such a