PropertyNode: Interface Information: Interface Description fails on second call

Hello all,
I´m new here and I have a problem.
As the subject already tells the property node: Interface Information: Interface Description fails on second call.
I have written a SubVI to get the virtual COM Port of a specified Device, which is connected via USB to my computer.
Therefore I use the "VISA Find Resource" VI to get a list of all active COM Ports and then use the mentioned property Node to get the device information.
I search for a specific string in this device information and if this string is found, I have my needed COM Port.
This is all working. Except for the case I start this SubVI a second time. 
I always get an error from this property node saying: Error: -1073807246 in Property Node, VISA: (Hex 0xBFFF0072) The resource is valid, but VISA can not currently access it.
I don`t understand why I´m getting this error. I don`t even open the VISA Resource. I just check the name of it and make a VISA Close.
Maybe the problem is in my device?! I don`t know.
If I switch my device off and on again. My VI is again working once.
I hope someone has an idea, where this problem comes from and how to fix it.
I have the part of my SubVI, which is relevant to see the issue.
Thanks in advice
Best regards 
TDO
Attachments:
FindCOMPort .vi ‏20 KB

Hi TDO,
please indicate cross posts! (Even when this was 'just' the German forum…)
Best regards,
GerdW
CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
Kudos are welcome

Similar Messages

  • Tcl script help -- include interface description in status message

    Hi there,
    I'm trying to create a script that will email me when an interface goes down, and include the interface description in the email.  I've found a script that successfully emails me when the status changes, and I found another script that will parse for the interface description, but I can't seem to get them to work together.  I've mashed them up together into the below script:
    # EEM policy that will monitor SYSLOG for Interface status changes.
    # If UPDOWN message is detected, send an email with interface information.
    ### The following EEM environment variables are used:
    ### _email_server
    ### - A Simple Mail Transfer Protocol (SMTP)
    ### mail server used to send e-mail.
    ### Example: _email_server mailserver.example.com
    # Register for a Syslog event. Event Detector: Syslog
    # Match pattern for Interface Status change
    ::cisco::eem::event_register_syslog pattern "%LINK-3-UPDOWN"
    # NAMESPACE IMPORT
    namespace import ::cisco::eem::*
    namespace import ::cisco::lib::*
    # Set array for event_reqinfo
    # Array is populated with additional event information
    array set Syslog_info [event_reqinfo]
    set msg $Syslog_info(msg)
    # Set routername variable for use later
    set routername [info hostname]
    # Parse output for interface name
    if { ! [regexp {: ([^:]+)$} $msg -> info] } {
        action_syslog msg "Failed to parse syslog message"
    regexp {Line protocol on Interface ([a-zA-Z0-9]+)} $info -> interface 
    # ------------------- cli open -------------------
    if [catch {cli_open} result] {
    error $result $errorInfo
    } else {
    array set cli $result
    # Go into Enable mode
    if [catch {cli_exec $cli(fd) "enable"} result] {
    error $result $errorInfo
    #Find interface description
    if [catch {cli_exec $cli(fd) "show interface $interface | inc Description" } description] {
            error $description $errorInfo
    #--------------------- cli close ------------------------
    cli_close $cli(fd) $cli(tty_id)
    set time_now [clock seconds]
    set time_now [clock format $time_now -format "%T %Z %a %b %d %Y"]
    # EMAIL MESSAGE
    # This manually creates a text message with specific format to be used by the
    # smtp_send_email command later to send an email alert.
    # Ensure the following are configured:
    # ip domain-name <domain.com>
    # If a hostname is used for mailservername, ensure the following are configured:
    # ip name-server <dns-server>
    # ip domain-lookup
    # NOTE: Change environment variable _email_server to your SMTP server
    # The email below references the following variables:
    # $routername: hostname of device
    # $time_now: time when specific Syslog message was detected
    # $msg: Syslog message received
    set email_message "Mailservername: $_email_server
    From: [email protected]
    To: $_email_to
    Cc:
    Subject: EEM: Critical interface status change on $routername
    This email is generated by EEM.
    $time_now
    $msg
    $description
    # Send email message
    if {[catch {smtp_send_email $email_message} result]} {
    set result "Email send failed"
    } else {
    set result "Email Sent"
    # Debug message to check email transmission status
    action_syslog msg "$result"
    When I trigger an interface UPDOWN message, I'm getting the following error on the command line:
    Oct 17 23:56:19.355 HKT: %HA_EM-6-LOG: CriticalLinkStatus.tcl: can't read "interface": no such variable
    Oct 17 23:56:19.355 HKT: %HA_EM-6-LOG: CriticalLinkStatus.tcl:     while executing
    Oct 17 23:56:19.355 HKT: %HA_EM-6-LOG: CriticalLinkStatus.tcl: "cli_exec $cli(fd) "show interface $interface | inc Description" "
    Oct 17 23:56:19.355 HKT: %HA_EM-6-LOG: CriticalLinkStatus.tcl:     invoked from within
    Oct 17 23:56:19.355 HKT: %HA_EM-6-LOG: CriticalLinkStatus.tcl: "$slave eval $Contents"
    Oct 17 23:56:19.355 HKT: %HA_EM-6-LOG: CriticalLinkStatus.tcl:     (procedure "eval_script" line 7)
    Oct 17 23:56:19.355 HKT: %HA_EM-6-LOG: CriticalLinkStatus.tcl:     invoked from within
    Oct 17 23:56:19.355 HKT: %HA_EM-6-LOG: CriticalLinkStatus.tcl: "eval_script slave $scriptname"
    Oct 17 23:56:19.359 HKT: %HA_EM-6-LOG: CriticalLinkStatus.tcl:     invoked from within
    Oct 17 23:56:19.359 HKT: %HA_EM-6-LOG: CriticalLinkStatus.tcl: "if {$security_level == 1} {       #untrusted script
    Oct 17 23:56:19.359 HKT: %HA_EM-6-LOG: CriticalLinkStatus.tcl:      interp create -safe slave
    Oct 17 23:56:19.359 HKT: %HA_EM-6-LOG: CriticalLinkStatus.tcl:      interp share {} stdin slave
    Oct 17 23:56:19.359 HKT: %HA_EM-6-LOG: CriticalLinkStatus.tcl:      interp share {} stdout slave
    Oct 17 23:56:19.359 HKT: %HA_EM-6-LOG: CriticalLinkStatus.tcl: ..."
    Oct 17 23:56:19.359 HKT: %HA_EM-6-LOG: CriticalLinkStatus.tcl:     (file "tmpsys:/lib/tcl/base.tcl" line 50)
    Oct 17 23:56:19.359 HKT: %HA_EM-6-LOG: CriticalLinkStatus.tcl: Tcl policy execute failed: can't read "interface": no such variable
    Can anyone help me figure out where I'm going wrong? 
    Thanks in advance,
    Brandon

    Hi Dan,
    Thanks for the reply.   I've made the changes you suggested but I'm still getting the error:
    Oct 18 21:41:50.446 HKT: %HA_EM-6-LOG: CriticalLinkStatus.tcl: can't read "interface": no such variable
    Oct 18 21:41:50.446 HKT: %HA_EM-6-LOG: CriticalLinkStatus.tcl:     while executing
    Oct 18 21:41:50.446 HKT: %HA_EM-6-LOG: CriticalLinkStatus.tcl: "cli_exec $cli(fd) "show int $interface | inc Description""
    Is there any additional debugging I could place in my script?  Normally I would try and print the variables after each line to see what's being populated, but I'm not sure how I can test that from within EEM.
    --Brandon

  • Alert Parameters to Get Interface Description (i.e. Something Meaningful to Network Admins)

    Hi All,
    We have recently deployed OpsMgr 2012 R2 inparallel to our legacy 2007 environment.
    For network device monitoring in the 2007 environment we used the xSNMP Management Pack on top-of the native capabilities.
    On of the positive aspects of the 2007 set-up was that we were able to leverage the xSNMP Management Packs ability to expose the interface alias/description which our Network admins populate to identify the connection/purpose of an interface within the SMS
    Channel format.
    Basically, the Network Admins would give me a list of critical interfaces and using the combination of Path and Alias/Description I would be able to confidently enable interface monitoring and alerting for those interfaces.
    In 2012, however, all that has been changed.  Now, interfaces are identified by an Interface Name value that is not really meaningful or relevant to the way our Network Admins work.  Wjat I also find problematic is the way that interfaces seem
    to have been divorced from the the source device in such a way that the default email alert format doesn't even include the Path (source device) on which the interface generating the alert is associated with.  This is even the case when trying to create
    a custom monitored interfaces State view in that the Path column is populated by the MAC address rather than with the host device that the interface is on which is what really matters.  Who deals in MAC addresses?
    What we require is a way to expose the host device and Interface Description and Alias  values as part of an SMS/email alert as that is crucial information that an on-call engineer being woken-up at 2:00 AM needs to know rather than scratching
    their head with some guff about IF-20 without even the parent device of that interface given so that they can at least know what device to log-on to manually try and identify which interface connection/service  is down even though they should not have
    to do that.
    I have already tried to customize the SMS Channel format from its default format to the following:
    State: $Data[Default='Not Present']/Context/DataItem/ResolutionStateName$ $Data/Context/DataItem/ManagedEntityFullName$ $Data/Context/DataItem/AlertName$
    using the list of alert parameters from Kevin Holman's blog but even with the $Data/Context/DataItem/ManagedEntityFullName parameter the information is not satisfactory.
    For all the improvement in SNMP and network monitoring it seems that something that was actually good and useful in 2007 has now been lost because of the way interfaces/ports  have been divorced from the parent Managed Network Node device.
    Can anyone advise how I might be able to get sensible interface alerts in my email and SMS notifications that provide the host router/switch Display Name, and the Interface Description and Alias of the Interface?
    Points given to all considered replies.
    Kind Regards,
    Michael

    Yeah, that's kind of a mess...
    You can create a workaround to change the name similar like that:
    http://www.vroege.biz/?p=746
    But it needs some authoring knowledge and must run every time after a network discovery. Since this means a class property change it is a performance consuming workflow and should not run top often.
    HTH, Patrick
    Please remember to click “Mark as Answer” on the post that helped you.
    Patrick Seidl (System Center and Private Cloud)
    Website: http://www.syliance.com
    Blog: http://www.systemcenterrocks.com

  • Cisco PI 2.0 API - GET Device Interface Description

    Hi,
    we are using Cisco Prime Infrastructure 2.0 as our central device discovery and inventory for all network equipment. Then we export the database to multiple other systems, primary through the REST API. My question is if anyone have used the PI API to retrive a device interface descriptions?
    Looking at the documentation at https://[prime IP]/webacs/api/v1/data/InventoryDetails?_docs you'll see under the value PhysicalPort[] a description field, but it seems like it only get the port name i.e. FastEthernet1/1. Basically the same as the Name field.
    Do anyone know how to get the description on an interface through the Cisco PI 2.0 API?
    Cheers // Mattias

    Because you would think that GET InventoryDetails -> PhysicalPort -> Description would be it... but no, it shows exactly the same thing as "name"!?
    PhysicalPort[]
    physicalPort
    This nested field provides information about the physical ports associated with this device.
    Type
    Attribute Name
    Description
    String
    description
    The port description (i.e. Fast Ethernet Port, etc.).
    long
    deviceId
    An internal id to recognize the device, which is the id of the associated management network element associated with this device.
    long
    equipmentId
    The ID of the equipment object that this port is contained in.
    String
    name
    The name of the port.
    String
    residingModule
    The module that contains the port.
    String
    vendorEquipmentType
    The vendor equipment type.

  • Including Interface Description in Cisco PRime Infrastructure Alarm Message

    Hi all,
    i succesfully configured a Cisco Prime Infrastructure 2.1 applliance to display an alarm and to send me an e-mail when switch uplink ports goes down.
    The text displayed in alarm message is :
    port 'interface_id' is down on device 'device_ip_address'
    I'd like to include in this text also the interface description so the text will display :
    port 'interface_id'  'interface_descriprion' is down on device 'device_ip_address' 
    Is this possible?
    Thankyou in advance

    Hi,
    i followed these steps :
    SWITCH SIDE
    - configured Prime Infrastructure as snmp-server host;
    - enabled snmp-traps for linkup and linkdown events globally;
    - disabled snmp-traps for linkup and linkdown on non relevant interfaces using the no snmp trap link-status command
    PRIME INFRASTRUCTURE SIDE
    - under "Deploy/Monitor Deployment" i deployed template "Interface Health"  for all the interested switches
    -  under "Administration/System Settings/Mail Server Configuration" configured my internal SMTP server to make Prime Infrastructure able to send e-mails
    - under "Operate/Alarms & Events" click on "Email Notifications" , then on "Switches and Hubs"
       - check the "critical" box ,  insert the destination e-mail address into the "To" field then click "Save"
     -  check the "switches and Hubs" box and then click Save
    As i know is possible to avoid to configure every single not-interesting port on the switches with "no snmp trap link-status" command (it's a bit annoying when you have tens of switches), using Port Grouping configuration on PI but i tried it without success.
    Hope this helps.
    Best Regards,

  • Cisco AP1231G failed to flash the interface on failed boot

    Hello,
    I have an issue with Cisco AIR-AP1231G-E-K9 since I have rebooted it to reload startup conf :
    Now, radio is disabled. On web interface, Radio mac address is 0000.0000.0000
    I tried a no shut on Dot11radio0 but didn't work.
    I tried to upload a new firmware but didn't solve the issue.
    Here you can find result of sh log :
    POZAPA-0004#sh log
    Syslog logging: enabled (0 messages dropped, 3 messages rate-limited,
                    0 flushes, 0 overruns, xml disabled, filtering disabled)
        Console logging: level debugging, 38 messages logged, xml disabled,
                         filtering disabled
        Monitor logging: level debugging, 0 messages logged, xml disabled,
                         filtering disabled
        Buffer logging: level debugging, 40 messages logged, xml disabled,
                        filtering disabled
        Logging Exception size (4096 bytes)
        Count and timestamp logging messages: disabled
        Trap logging: level notifications, 34 message lines logged
            Logging to 10.128.2.12, 34 message lines logged, xml disabled,
                   filtering disabled
    Log Buffer (4096 bytes):
    101.img)
    *Mar  1 00:00:11.895: %DOT11-4-LOADING_RADIO: Interface Dot11Radio0, loading the radio firmware (flash:/c1200-
    k9w7-mx.123-7.JA3/5101.img)
    *Mar  1 00:00:19.202: Failed to flash the interface on failed boot
    *Mar  1 00:00:19.205: %DOT11-4-LOADING_RADIO: Interface Dot11Radio0, loading the radio firmware (flash:/c1200-
    k9w7-mx.123-7.JA3/5101.img)
    *Mar  1 00:00:19.264: %DOT11-4-LOADING_RADIO: Interface Dot11Radio0, loading the radio firmware (flash:/c1200-
    k9w7-mx.123-7.JA3/5101.img)
    *Mar  1 00:00:26.574: %DOT11-4-LOADING_RADIO: Interface Dot11Radio0, loading the radio firmware (flash:/c1200-
    k9w7-mx.123-7.JA3/5101.img)
    *Mar  1 00:00:34.181: %DOT11-4-LOADING_RADIO: Interface Dot11Radio0, loading the radio firmware (flash:/c1200-
    k9w7-mx.123-7.JA3/5101.img)
    *Mar  1 00:00:34.241: %DOT11-4-LOADING_RADIO: Interface Dot11Radio0, loading the radio firmware (flash:/c1200-
    k9w7-mx.123-7.JA3/5101.img)
    *Mar  1 00:00:41.548: Failed to flash the interface on failed boot
    *Mar  1 00:00:41.548: Tried to send command 0229 while the MAC not running
    *Mar  1 00:00:41.549: Tried to send command 0229 while the MAC not running
    *Mar  1 00:00:41.549: Unable to read RID_CHAN_POWER
    *Mar  1 00:00:41.549: %DOT11-3-POWERS_INVALID: Interface Dot11Radio0, no valid power levels available
    *Mar  1 00:00:41.549: %DOT11-3-POWERS_INVALID: Interface Dot11Radio0, no valid power levels available
    *Mar  1 00:00:43.640: %SYS-6-LOGGERSTART: Logger process started
    *Mar  1 00:00:43.642: %LINK-3-UPDOWN: Interface FastEthernet0, changed state to up
    *Mar  1 01:00:43.768 GMT: %SYS-6-CLOCKUPDATE: System clock has been updated from 00:00:43 UTC Fri Mar 1 2002 t
    o 01:00:43 GMT Fri Mar 1 2002, configured from console by console.
    *Mar  1 01:00:44.703 GMT: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0, changed state to up
    *Mar  1 01:00:45.270 GMT: %SYS-5-CONFIG_I: Configured from memory by console
    *Mar  1 01:00:45.270 GMT: %SYS-5-RESTART: System restarted --
    Cisco IOS Software, C1200 Software (C1200-K9W7-M), Version 12.3(7)JA3, RELEASE SOFTWARE (fc1)
    Technical Support: http://www.cisco.com/techsupport
    Copyright (c) 1986-2006 by Cisco Systems, Inc.
    Compiled Tue 21-Mar-06 14:18 by ccai
    *Mar  1 01:00:45.270 GMT: %SNMP-5-COLDSTART: SNMP agent on host POZAPA-0004 is undergoing a cold start
    *Mar  1 01:00:45.286 GMT: %SSH-5-ENABLED: SSH 1.99 has been enabled
    *Mar  1 01:00:45.296 GMT: Writing radio coredump to 'flash:/r0_00_0000_E6177677.rcore'
    *Mar  1 01:00:46.151 GMT: %LINEPROTO-5-UPDOWN: Line protocol on Interface BVI1, changed state to up
    Sep 23 10:05:02.004 GMT: Writing radio coredump to 'flash:/r0_00_0000_BA624BBC.rcore'
    Sep 23 10:05:05.015 GMT: %DOT11-4-LOADING_RADIO: Interface Dot11Radio0, loading the radio firmware (flash:/c12
    00-k9w7-mx.123-7.JA3/5101.img)
    Sep 23 10:05:06.073 GMT: %LINEPROTO-5-UPDOWN: Line protocol on Interface Dot11Radio0, changed state to down
    Sep 23 10:05:38.648 GMT: %DOT11-4-LOADING_RADIO: Interface Dot11Radio0, loading the radio firmware (flash:/c12
    00-k9w7-mx.123-7.JA3/5101.img)
    Sep 23 10:05:38.708 GMT: %DOT11-4-LOADING_RADIO: Interface Dot11Radio0, loading the radio firmware (flash:/c12
    00-k9w7-mx.123-7.JA3/5101.img)
    Sep 23 10:06:12.048 GMT: Failed to flash the interface on failed boot
    Sep 23 10:06:12.050 GMT: %DOT11-4-LOADING_RADIO: Interface Dot11Radio0, loading the radio firmware (flash:/c12
    00-k9w7-mx.123-7.JA3/5101.img)
    Sep 23 10:06:12.111 GMT: %DOT11-4-LOADING_RADIO: Interface Dot11Radio0, loading the radio firmware (flash:/c12
    00-k9w7-mx.123-7.JA3/5101.img)
    Sep 23 10:06:45.463 GMT: %DOT11-4-LOADING_RADIO: Interface Dot11Radio0, loading the radio firmware (flash:/c12
    00-k9w7-mx.123-7.JA3/5101.img)
    Sep 23 10:07:20.311 GMT: %DOT11-4-LOADING_RADIO: Interface Dot11Radio0, loading the radio firmware (flash:/c12
    00-k9w7-mx.123-7.JA3/5101.img)
    Sep 23 10:07:20.371 GMT: %DOT11-4-LOADING_RADIO: Interface Dot11Radio0, loading the radio firmware (flash:/c12
    00-k9w7-mx.123-7.JA3/5101.img)
    Sep 23 10:07:54.989 GMT: Failed to flash the interface on failed boot
    As you can see , I have multiples line saying that radio is loading firmware but at the end we have "Failed to flash the interface on failed boot"
     Did someone had this issue already ?
    tanks for your answer.

    Sep 23 10:06:12.111 GMT: %DOT11-4-LOADING_RADIO: Interface Dot11Radio0, loading the radio firmware (flash:/c1200-k9w7-mx.123-7.JA3/5101.img)
    This is the reason why your 802.11b radio won't come up.  The radio-specific firmware is either missing or corrupted.
    Most effective way is to overwrite and unpack the entire TAR file.  So let the AP boot normally.  Don't worry about the radio for the time being. 
    Make sure you have the TAR file located in the correct folder of your TFTP server.  Use the command "archive download-sw /over /force tftp://<TFTP IP address>/filename.tar".  
    Once the process is complete the AP will reboot.

  • LMS Interface reports ( Polling Interface Descriptions)

    Hi, is it possible to poll interface descriptions when creating interface reports e.g. ( Utilization, Availability, Errors), current reports are useless because it just gives me interface number for example of ( Switch A), so I'm always asked to manually add descriptions which is horrible.
    Version: 4.2
    Any help will be appreciated
    Thanks

    unfortunately it is not possible :( 
    I don't see any option  to do that...
    Thanks-
    Afroz
    ***Ratings Encourages Contributors ***

  • Interface Dot11Radio0, failed - cmd busy -Traceback.....

    hi everyone,
    please help me,
    i have a problem with cisco autonomous:
    Product/Model Number: AIR-AP1131AG-E-K9 System Software Filename: c1130-k9w7-tar.124-10b.JA System Software Version: 12.4(10b)JA Bootloader Version: 12.3(8)JEA
    the problem is that my autonomous cisco AP sometimes crash and the only way to overcome this is to reset the AP...
    i found the log --> "Interface Dot11Radio0, failed - cmd busy -Traceback= 0x5DBF8 0x4EDE70 0x4EDDD4 0x797684 0x7978E4 0x79BD64 0x4ECEC8 0x4ED2D0 0x4ED684 0x198850"
    any comment on this problem....
    please advice....
    thanks

    In enable mode, can you do a "dir flash:" and post the contents?
    Do a "show ip interface brief" and make sure your radios are still up/up.

  • Enable EEM based on interface description...

    I want to enable EEM based on interface description...
    ex int gigabitethernet 0/0
    description man_link
    The basic requirement is we need to monitor those links .... as we keep changing the link from one port to another so therefore we need to enable based on description.
    Please let me know if its posible.

    I don't understand the question.  What do you want to monitor exactly?  There is no event detector for interface description, so any kind of reaction would likely have to be through a timer.

  • Root.sh failed on second node while installing CRS 10g on centos 5.5

    root.sh failed on second node while installing CRS 10g
    Hi all,
    I am able to install Oracle 10g RAC clusterware on first node of the cluster. However, when I run the root.sh script as root
    user on second node of the cluster, it fails with following error message:
    NO KEYS WERE WRITTEN. Supply -force parameter to override.
    -force is destructive and will destroy any previous cluster
    configuration.
    Oracle Cluster Registry for cluster has already been initialized
    Startup will be queued to init within 90 seconds.
    Adding daemons to inittab
    Expecting the CRS daemons to be up within 600 seconds.
    Failure at final check of Oracle CRS stack.
    10
    and run cluvfy stage -post hwos -n all -verbose,it show message:
    ERROR:
    Could not find a suitable set of interfaces for VIPs.
    Result: Node connectivity check failed.
    Checking shared storage accessibility...
    Disk Sharing Nodes (2 in count)
    /dev/sda db2 db1
    and run cluvfy stage -pre crsinst -n all -verbose,it show message:
    ERROR:
    Could not find a suitable set of interfaces for VIPs.
    Result: Node connectivity check failed.
    Checking system requirements for 'crs'...
    No checks registered for this product.
    and run cluvfy stage -post crsinst -n all -verbose,it show message:
    Result: Node reachability check passed from node "DB2".
    Result: User equivalence check passed for user "oracle".
    Node Name CRS daemon CSS daemon EVM daemon
    db2 no no no
    db1 yes yes yes
    Check: Health of CRS
    Node Name CRS OK?
    db1 unknown
    Result: CRS health check failed.
    check crsd.log and show message:
    clsc_connect: (0x143ca610) no listener at (ADDRESS=(PROTOCOL=ipc)(KEY=OCSSD_LL_db2_crs))
    clsssInitNative: connect failed, rc 9
    Any help would be greatly appreciated.
    Edited by: 868121 on 2011-6-24 上午12:31

    Hello, it took a little searching, but I found this in a note in the GRID installation guide for Linux/UNIX:
    Public IP addresses and virtual IP addresses must be in the same subnet.
    In your case, you are using two different subnets for the VIPs.

  • Calling spclientcontext.executeQueryAsync works on the first call, but fails on the second call

    I have a webpart that I'm using to display a tree of folders and files from a SharePoint list. When a folder is clicked, some client side code is used to expand the contents of the folder (the code queries the SharePoint list for any child items of the folder).
    The code works the first time the folder is clicked. However, if I then click on a sub folder, the code fails. If I click on the sub folder a second time, the code succeeds. This pattern continues - every second time I call my function, it fails.
    E.g.
    First Click (clicked on Guides), which succeeds, and expands the Guides folder. Second Click (clicked on "In Progress") (fails)
    Third Click (clicked on In Progress) (succeeds)
    Any ideas why this might happen?
    My code looks like this:
    var _dweb;
    var _dlist;
    var _dwebId;
    var _dlistId;
    var _dfolderUrl;
    var _dchildContainerId;
    var _dactionContainerId;
    var _dlistItems;
    var _rtdocsJsInQuery = 0;
    function expandorcolapsefolder(webId, listId, folderUrl, parentElementId, childContainerId, actionContainerId) {
    var parentElement = $(("#" + parentElementId));
    var childElement = $(("#" + childContainerId));
    if (parentElement.attr("expanded") == "0") {
    parentElement.attr("expanded", "1");
    childElement.css("display", "block");
    } else {
    parentElement.attr("expanded", "0");
    childElement.css("display", "none");
    return;
    if (childElement.attr("dataretrieved") == "0") {
    GetData(webId, listId, folderUrl, childContainerId, actionContainerId);
    function GetData(webId, listId, folderUrl, resultsElementId, actionContainerId) {
    if(_rtdocsJsInQuery==1)
    alert('Please wait for the previous action to finish, before trying again.');
    _rtdocsJsInQuery = 1;
    _dchildContainerId = resultsElementId;
    _dactionContainerId = actionContainerId;
    _dwebId = webId;
    _dlistId = listId;
    ShowActionContainer(actionContainerId);
    try {
    var context = new SP.ClientContext.get_current();
    _dweb = context.get_web();
    _dlist = _dweb.get_lists().getById(listId);
    var query = new SP.CamlQuery();
    query.set_viewXml('<View><OrderBy><FieldRef Name="Title"/><FieldRef Name="FileLeafRef"/></OrderBy></View>');
    query.set_folderServerRelativeUrl(folderUrl);
    _dlistItems = _dlist.getItems(query);
    context.load(_dweb);
    context.load(_dlist);
    context.load(_dlistItems, 'Include(ID,Title,DocIcon,_dlc_DocIdUrl,DisplayName,FileSystemObjectType,FileLeafRef,ServerUrl)');
    context.executeQueryAsync(QuerySuccessful,QueryFailed);
    } catch (e) {
    alert("Failed to execute query... " + e);
    HideActionContainer(actionContainerId);
    function QuerySuccessful(sender, args) {
    try {
    // Code omitted.
    } catch (error) {
    alert("Failed to process query results... " + error);
    _rtdocsJsInQuery = 0;
    window.setTimeout(HideActionContainer(_dactionContainerId), 500);
    function QueryFailed(sender, args) {
    alert('Failed to get list items. \nError: ' + args.get_message() + '\nStackTrace: ' + args.get_stackTrace());
    _rtdocsJsInQuery = 0;
    HideActionContainer(_dactionContainerId);
    Regards, Matthew
    MCPD | MCITP
    My Blog
    View
    Matthew Yarlett's profile
    See my webpart on the TechNet Gallery that allows administrative users to upload, crop and format user profile photos. Check it out here:
    Upload and Crop User Profile Photos

    I fixed this problem by initialising the clientcontext object with a URL (rather than using the get_current property). This suits my needs, as the web that the page the webpart is on, won't always be in the same web as the list.
    I'm still unsure why  "var context = SP.ClientContext.get_current();" fails every second time?!
    Here's the snippet of code I changed, for others reference (namely "var ctx = new SP.ClientContext('/weburl');"):
    function GetData(webId, listId, folderUrl, resultsElementId, actionContainerId) {
    if(_rtdocsJsInQuery==1)
    alert('Please wait for the previous action to finish, before trying again.');
    return;
    _rtdocsJsInQuery = 1;
    _dchildContainerId = resultsElementId;
    _dactionContainerId = actionContainerId;
    _dwebId = webId;
    _dlistId = listId;
    ShowActionContainer(actionContainerId);
    try {
    var ctx = new SP.ClientContext('/eog');
    _dweb = ctx.get_web();
    _dlist = _dweb.get_lists().getById(listId);
    var query = new SP.CamlQuery();
    query.set_viewXml('<View><OrderBy><FieldRef Name="Title"/><FieldRef Name="FileLeafRef"/></OrderBy></View>');
    query.set_folderServerRelativeUrl(folderUrl);
    _dlistItems = _dlist.getItems(query);
    ctx.load(_dweb);
    ctx.load(_dlist);
    ctx.load(_dlistItems, 'Include(ID,Title,DocIcon,_dlc_DocIdUrl,DisplayName,FileSystemObjectType,FileLeafRef,ServerUrl)');
    ctx.executeQueryAsync(QuerySuccessful,QueryFailed);
    return true;
    } catch (e) {
    alert("Failed to execute query... " + e);
    HideActionContainer(actionContainerId);
    return false;
    Regards, Matthew
    MCPD | MCITP
    My Blog
    View
    Matthew Yarlett's profile
    See my webpart on the TechNet Gallery that allows administrative users to upload, crop and format user profile photos. Check it out here:
    Upload and Crop User Profile Photos

  • Netctl-auto fails every second boot

    So, since about two oder three days ago, my netctl-auto fails every second boot and I can't even enable a profile manually.
    I already found this thread: https://bbs.archlinux.org/viewtopic.php?pid=1275755
    But I checked and don't have any failed units and dhcpcd is not running.
    I will do some further investigation and post it here. Any ideas for solutions are welcome
    Wolle

    I've been having the same problem as well, it boots up just fine then after a reboot netctl-auto fails which had been going on for me for the past 30 minutes without "fixing" itself.
    After I added the line:
    TimeoutDHCP=30
    to my profile then rebooted, it worked. It could be a fluke "fix" but worth a try. I *think* the reason it worked is that the default timeout is 10 seconds which might not be enough to establish a connection for some routers/network cards.
    EDIT: I did another boot to see if it was a fluke, and it was. I'm getting a little tired of netctl-auto... I'm going to just disable it and manually do a "netctl start <profile>" after I boot up.
    Last edited by DukeH (2013-07-16 19:07:58)

  • Second call of an SQL query throws a syntax error?

    Private Sub RefreshDataSet()
    Dim strSQL As String = DataAdapter1.SelectCommand.CommandText
    Try
    DataSet1.Clear()
    DataAdapter1.SelectCommand.CommandText() = Trim(strSQL & " WHERE BadgeID = " & strEmployeeBadge)
    DataAdapter1.Fill(DataSet1)
    Catch ex As Exception
    MsgBox(ex.Message)
    End Try
    End Sub
    When I call the above procedure, the sub does work correctly and I get the expected results / records in the dataset.  But, when I call the Sub again (to refresh the dataset) it gives me an "incorrect syntax" error.
    I'm not sure why it is doing this.  Any suggestions or ideas?

    Youjun,
    It's very frustrating when you keep asking if the code is the same, or if I have tested the code.  I've said that I debugged.. I've said I have tested the code.  Your continuing to ask me this is pointless, rude, and only serves to make YOU look
    stupid.  I'm sorry if that is rude, but please stop asking me!
    To respond:
    I supposed that the original DataAdapter1.SelectCommand.CommandText is "select * from table1"
    -Yes, the base command is similar to this, except that I call each database field, not using the *.
    1) When you run it the first time, the DataAdapter1.SelectCommand.CommandText will be "select * from table1 WHERE BadgeID ='123'".
    -Yes, I append 'WHERE BadgeID = XXX' to the query, the first and
    each subsequent time.  Again, I said that the code/call/syntax DOES NOT CHANGE.  It is the
    same every time.
    2) Then you changed the strEmployeeBadge, I supposed that is '234'
    -NO!  I do NOT change the code!!  I'm sorry, but what part of 'the query is
    exactly the same' is unclear?
    3) when you run it next time, the DataAdapter1.SelectCommand.CommandText will change to "select * from table1 WHERE BadgeID ='123'
    WHERE BadgeID = '234'"
    -NO!  I have specifically tested for this
    and as stated, the SQL syntax does not change!
    So it 'syntax' fail will pop out when second call.
    -NO, your assumptions are INCORRECT.
    I suggest you recording the commandText when first change the DataAdapter1.
    I write a testing program for you.
    -Your 'testing program' is for all purposes, the same exact code as what I used.  There is no difference.  
    Now, as also stated before, I have several other instances
    where I use the same 'technique' to amend the base SQL queries of the DataAdapter.  Each of these other instances work fine, and I use them to 'refresh' my DataSet information several times throughout the running of my program.  Just for some
    reason, this time, it does not work.  I don't know why and was hoping someone else had found the same/similar issue and also found a resolution.  The DataAdapter is configured the same as the others, the code is the same as well.  I will just
    have to find a work around, or other way to do what I want I guess.
    Lastly, yes, I set strSQL in the subroutine because I want that variable to be gone at the end of the procedure.  It recalls, then sets the syntax, every time the Sub is called on purpose.  I do not want strSQL to be 'global', which by the way,
    according to Microsoft documentation I have read, is no longer possible.  Global variables are 'technically' not used/recognized anymore.  If this has changed, then I stand corrected.
    Thank you for responding, I will just find another solution I guess.

  • SOAP adapter erro 404 after second call using Web Dispatcher

    Hi XI experts.
    In a  XI  SOAP sender  interface that works if I use the central port of XI.
    In the productive use SAP Web Dispatcher.
    If I use the Web dispatched port, after the first run the application generates the error:
    HTTP 404 - Not found
    Your SAP Internet Communication Framework Team
    I need some help to make the interface works through the Web Dispatcher.
    The client interface was developed in .NET.
    Best Regards
    Marco Zerbini

    1. Please ensure that all nodes balanced by the web dispatcher are fully working and available.
    2. Please check the URL being called by the external service. Check if on the second call it is still using the WD's URL instead of the instance's. This might occur depending on the external service behavior when receiving a 302 MOVED http code.

  • Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Status 500

    I get the following error when trying to connect to my BlazeDS Java server from Flex application. Flex application is on localhost:80, blazeDS on tomcat localhost:8080. Please help!
    createUser();faultHandler():(mx.messaging.messages::ErrorMessage)#0
      body = (Object)#1
      clientId = (null)
      correlationId = "9FFDEBE8-EAD0-F3D9-8E9B-E3D7D7F5AE79"
      destination = ""
      extendedData = (null)
      faultCode = "Client.Error.MessageSend"
      faultDetail = "Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Status 500: url: 'http://77.93.202.150:8080/QuizDS/messagebroker/amf'"
      faultString = "Send failed"
      headers = (Object)#2
      messageId = "98F54E19-7B0D-DCB9-4B86-E3D7D84E484F"
      rootCause = (mx.messaging.events::ChannelFaultEvent)#3
        bubbles = false
        cancelable = false
        channel = (mx.messaging.channels::AMFChannel)#4
          authenticated = false
          channelSets = (Array)#5
          connected = false
          connectTimeout = -1
          enableSmallMessages = true
          endpoint = "http://77.93.202.150:8080/QuizDS/messagebroker/amf"
          failoverURIs = (Array)#6
          id = (null)
          mpiEnabled = false
          netConnection = (flash.net::NetConnection)#7
            client = (mx.messaging.channels::AMFChannel)#4
            connected = false
            maxPeerConnections = 8
            objectEncoding = 3
            proxyType = "none"
            uri = "http://77.93.202.150:8080/QuizDS/messagebroker/amf"
          piggybackingEnabled = false
          polling = false
          pollingEnabled = true
          pollingInterval = 3000
          protocol = "http"
          reconnecting = false
          recordMessageSizes = false
          recordMessageTimes = false
          requestTimeout = -1
          uri = "http://77.93.202.150:8080/QuizDS/messagebroker/amf"
          url = "http://77.93.202.150:8080/QuizDS/messagebroker/amf"
          useSmallMessages = false
        channelId = (null)
        connected = false
        currentTarget = (mx.messaging.channels::AMFChannel)#4
        eventPhase = 2
        faultCode = "Channel.Connect.Failed"
        faultDetail = "NetConnection.Call.Failed: HTTP: Status 500: url: 'http://77.93.202.150:8080/QuizDS/messagebroker/amf'"
        faultString = "error"
        reconnecting = false
        rejected = false
        rootCause = (Object)#8
          code = "NetConnection.Call.Failed"
          description = "HTTP: Status 500"
          details = "http://77.93.202.150:8080/QuizDS/messagebroker/amf"
          level = "error"
        target = (mx.messaging.channels::AMFChannel)#4
        type = "channelFault"
      timestamp = 0
      timeToLive = 0

    halodev:
    I made a CF/Flex site based on the Flexstore sample app,
    using a database instead of XML as the data source; in case you
    want to see it:
    http://www.timos.com/dg/flex/DilemmaGames.html
    At first I had troubles similar to what you describe;
    initially, part of the problem was that my hosting company had not
    yet upgraded to CF 7.02. One other thing I had to correct: when you
    upload to your server, upload the entire ‘bin’ (or
    whatever your output folder is) minus the debug SWF.
    If it would help with other issues, contact me and I will be
    glad to make my project code available to you. Good luck.
    Carlos
    [email protected]

Maybe you are looking for

  • Why dosen't my micro USB cable work??

    I am trying to connect my apple TV to my macbook pro using a micro usb cable, but neither the computer nor the apple tv registers the connection, i.e. nothing happens. What am I doing wrong?

  • Form text box problems please help???

    I am creating a form in adobe XI and am having some problems with a text field I am trying to get the text field to allow me to add multi-line text with rich text editing and I am unable with the setting I have checked. I have gone to properties for

  • Preview will not let me annotate document with text and save - HELP!

    I have to provide a JPG document to a client that they need to annotate with text in Preview. However, Preview will not allow either of us to save this document once it is annotated, even though I created the JPG through an exported Illustrator File

  • Subordinate packaging for handling units labels

    Hi Experts! I have run in to an issue with the multilevel packagng.after creating the packaging instructions, we are going to setup the packaging determination recorod, now there are 4 options like option 1 PACKAGING INSTRUCTIONS option 2 ALTERNATIVE

  • Servlet: "action" failed to preload due to servlet exception with RuleSet.

    Hello, I have tried struts application excecuting in Weblogic in which i created my own Domain, Whenever i start the server i m encountering the following error before deplyment. This is becoz of the ActionServlet may be. <Error> <HTTP> <BEA-101216>