When I filter the dataset, though column name exists I got an error Cannot find column

In the following lines of the code
foreach (DataRow row in meterDs.Tables[0].Rows)
                meterChannels = string.Format("{0} = {1}", Global.MeterIdColumnName, row[Global.MeterIdColumnName].ToString());
                DataRow[] channelRows = ChannelsDs.Tables[0].Select(meterChannels);
In the following line
 DataRow[] channelRows = ChannelsDs.Tables[0].Select(meterChannels);
I got an error Cannot find column [Mtr_T1]
In the debug mode run time values are:
? row[Global.MeterIdColumnName].ToString()
"Mtr_T1"
? meterChannels
"MeterId = Mtr_T1"
? Global.MeterIdColumnName
"MeterId"
Any clue?
Thanks

Hello, 
The line 
DataRow[] channelRows = ChannelsDs.Tables[0].Select(meterChannels);
is trying to filter the data table where the Column value of MeterID equals the values in Column MTR_T1, if you do not have the MTR_T1 column in the ChannelDS.Tables[0] you will get the error.
Regards, Dinesh

Similar Messages

  • OrgChart error: Cannot find the root of your orgchart....

    Hi,
    I'm trying to install orgchart live.
    When I run OrgChart - I got following error: "Cannot find the root of your orgchart...."
    Well settings are following:
    a) data connection: ASHOST=xxxxxxxxxxxx  SYSNR=xx USER=xxxx PASSWD=xxxxxx CLIENT=xxx (this is OK)
    b) General settings: 50000051 (for OrgChartRot - which is OK)
    If i check CDS log I got following:
    ERROR: StructGenerator : processStructureRules : Chart Is Empty (ChartingStruct.RootNodes == null)
    Any idea?
    Thx,
    Damjan

    sure....
    <extrainfo>
            <item>
              <name><![CDATA[DLL]]></name>
              <value><![CDATA[Nakisa.SAP.SAPProcessor]]></value>
            </item>
            <item>
              <name><![CDATA[CLASS]]></name>
              <value><![CDATA[Nakisa.SAP.SAPProcessor.BAPI_Hroci]]></value>
            </item>
            <item>
              <name><![CDATA[ParentViewId]]></name>
              <value><![CDATA[ZVWO2P]]></value>
            </item>
            <item>
              <name><![CDATA[ViewId]]></name>
              <value><![CDATA[ZVWO2O]]></value>
            </item>
            <item>
              <name><![CDATA[ObjectType]]></name>
              <value><![CDATA[O]]></value>
            </item>
            <item>
              <name><![CDATA[Depth]]></name>
              <value><![CDATA[3]]></value>
            </item>
            <item>
              <name><![CDATA[PlanVersion]]></name>
              <value><![CDATA[01]]></value>
            </item>
            <item>
              <name><![CDATA[BapiName]]></name>
              <value><![CDATA[Hcm_Get_Orgstructure_As_Xml]]></value>
            </item>
            <item>
              <name><![CDATA[AddChildrenFlag]]></name>
              <value><![CDATA[True]]></value>
            </item>
            <item>
              <name><![CDATA[mail]]></name>
              <value><![CDATA[]]></value>
            </item>
          </extrainfo>
    do you see something here...
    Any idea from here on...what should I do?
    Edited by: Damjan Drnovsek on Apr 21, 2010 3:54 PM

  • How do i search for a photo album when i use the search facility on my iPad or iPhone it will not find photo albums of a given name can anyone help

    how do i search for a photo album when i use the search facility on my iPad or iPhone it will not find photo albums of a given name can anyone help

    Photo albums are not searched by Spotlight Search.  Go to Settings > General > Spotlight Search to see and reorder the available search items.
    For more details, see page 12 of the iPad iOS 5.1 User Guide

  • I am trying to move my itunes library from my old pc to my new imac, home sharing is on and I can see the shared library.  My problem is that when I check the shared library to import it to my imac I cannot import it.  Can anyone help me?

    I am trying to move my itunes library from my old pc to my new imac, home sharing is on and I can see the shared library.  My problem is that when I check the shared library to import it to my imac I cannot import it.  Can anyone help me?

    You need to transfer the iTunes Library from the most recent backup you made before the hard drive was replaced.
    You can't transfer the full iTunes Library from the iPad back to iTunes.
    There are third-party Windows applications that will transfer data from an iOS device, but they don't re-create the iTunes Library exactly as it was before.

  • I ordered the full creative cloud on sunday and received an order number but still can't open any of the programs. When i check the status of my order online, it says it can't find it. Is this normal after 3 days?

    I ordered the full creative cloud on sunday and received an order number but still can't open any of the programs. When i check the status of my order online, it says it can't find it. Is this normal after 3 days? I tried asking in a chat window instead of the forum but no one answered and after about ten minutes my screen restarted and closed the chat window down. It seems a little frustrating not knowing what happened to my order and not being able to contact anyone. Is all this usual with Adobe or are they just having technical problems this week?

    Does your Cloud subscription show on your account page?
    https://www.adobe.com/account.html for subscriptions on your Adobe page
    This is an open forum, not Adobe support... you need Adobe staff to help
    Adobe contact information - http://helpx.adobe.com/contact.html
    -Select your product and what you need help with
    -Click on the blue box "Still need help? Contact us"
    -or by telephone http://helpx.adobe.com/x-productkb/global/phone-support-orders.html

  • HT204053 I have an iPhone 4S and when I try to add an iCloud account is gives me an error "Cannot Sign In, The maximum number of free accounts have been activated on this iPhone." Is there any way to deactivate an account?

    I have an iPhone 4S and when I try to add an iCloud account is gives me an error "Cannot Sign In, The maximum number of free accounts have been activated on this iPhone." Is there any way to deactivate an account? I have one for myself, one for my family and one for my work. I had all three on my iphone and then I deleted my work. I wanted to get my own person @me.com account. It wouldn't let me create it from my iphone, so I created it from my Macbook Pro. I am trying to add it to my iphone, but it keeps giving me that error. If there is a way I can deactivate my work one so I can use my @me.com personal account?

    Welcome to the Apple Community.
    Unfortunately once all the 3 iCloud accounts have been created on your mobile device, you cannot create any more regardless of what you do. You will need to re-use one of the accounts that you have already created or create your new account on another device or computer.
    You should however be able to add existing accounts to your device, are you sure you aren't trying to create on rather than simply use an existing one.

  • I import photos into lightroom and they appear just fine and then after 'developing' some disappear from the library though they still exist in the previous import window

    I import photos into lightroom and they appear just fine and then after 'developing' some disappear from the library though they still exist in the previous import window

    Running MacOS 10.9.4 16 Gb RAM Lightroom v5.2

  • When I ran the bootcamp assistance for software update I get an error that it can't download from the server

    Install Mac OS X lion fine without any issue
    I'm trying to dual boot Lion and Wind 7 on different HD but when I ran the bootcamp assistance for software update I get an error that it can't download from the server.
    I also try without downloading the software and do the installation but it fail. It seem that this bootcamp is giving problem so I revert back to SN leopard and it does the same. Why can't the bootcamp assistance update the software, is it something that I did wrong or my system is not supporting dual booting.
    Here is my spec
    Apple Mac Pro "Quad Core" 2.66
    Identifiers: Mac Pro - MA356LL/A - MacPro1,1* - A1186

    MacPro1,1 has EFI32 and does not support Windows 7 very well, can't boot 64-bit, can't use all your RAM.
    There have always been trouble and issues, ways around those, but a big PITA too.
    Select CD-ROM Boot
    Select CD-ROM Boot Error Apple
    Nothing to do with Lion actually. Other than downloading drivers from Apple servers has been mostly hit or miss, with miss being 90%.
    I have rebuned the DVD (make a new ISO image using Imgburn etc) but now I just install Windows on PC then move the drive to the Mac. A lot easier.
    Without 64-bit you can't use more than 1.9GB RAM. And you need Windows 7 Pro to use both processors.

  • Can i play Pc games on my macbook, when i put the game in no auto install comes up and can't find a file to manual install the game. HELP

    Can i play Pc games on my macbook, when i put the game in no auto install comes up and can't find a file to manual install the game. HELP

    Mozza1989 wrote:
    do i have to buy a windows version if i use bootcamp
    Of course.  Did you think Microsoft just gives it away?

  • HT1420 Even when I authorised my pc on my iphone, when i sync the iphone with a new purchase, it prompts and error that unable to sync due to pc not authorised.

    Even when I authorised my pc on my iphone, when i sync the iphone with a new purchase, it prompts and error that unable to sync due to pc not authorised.

    Hello, Jagatheswary. 
    Thank you for visiting Apple Support Communities.
    The most common cause for this issue would be media or Apps present in your library that is purchased with another Apple ID.  The article below will walk you through the process of verifying if that is the case or correcting the issue if not.
    iTunes repeatedly prompts to authorize computer to play iTunes Store purchases
    http://support.apple.com/kb/TS1389
    Cheers,
    Jason H.

  • Hi, my name is Molly and my iPod has a backlight but it won't turn on, it's a fourth generation if that helps. I have looked in settings for anything about the backlight but there is nothing please help as I cannot find anything

    Hi, my name is Molly and my iPod has a backlight but it won't turn on, it's a fourth generation if that helps. I have looked in settings for anything about the backlight but there is nothing please help as I cannot find anything

    Go to Settings>Brightness and make sure it is maxed out.
    Try:
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:                                 
    iOS: How to back up           
    - Restore to factory settings/new iOS device.
    If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
    Apple Retail Store - Genius Bar          

  • Error: 28005, Severity: 16, State: 2...An exception occurred while enqueueing a message in the target queue. Error: 15517, State: 1. Cannot execute as the database principal because the principal "dbo" does not exist, this type of principal cannot be impe

    I've seen some similar questions, but want to make sure I can get an answer quickly and how to fix.
    Thanks,
    Paul
    spid24s     Error: 28005, Severity: 16, State: 2
    spid24s     An exception occurred while enqueueing a message in the target queue. Error: 15517, State: 1. Cannot execute as the database principal because the principal "dbo" does not exist, this type of principal cannot be impersonated,
    or you do not have permission.

    Hi Paul,
    I also had the same error on one of my servers, and it was because the user that created the database no longer worked for the company.
    So when his AD account got deleted, the database had NULL as owner
    Using the following query I asked for the owners of the databases:
    select name, suser_sname(sid) from master.dbo.sysdatabases
    So changing the owner of the databases that had a NULL owner solved the issue for me.
    use <databasesname>
    go
    exec sp_changedbowner 'sa'
    Thanks for triggering the solution.
    Peter

  • TS5376 I did as this article described.  The download was going smoothly until I got this error message "Click OK or enter alternate path to folder in installation package containing the file itunes.msi"   Where can I get "itunes.msi"  ??

    I did as this article described.  The download was going smoothly until I got this error message "Click OK or enter alternate path to folder in installation package containing the file itunes.msi"   Where can I get "itunes.msi"  ??

    (1) Download the Windows Installer CleanUp utility installer file (msicuu2.exe) from the following Major Geeks page (use one of the links under the "DOWNLOAD LOCATIONS" thingy on the Major Geeks page):
    http://majorgeeks.com/download.php?det=4459
    (2) Doubleclick the msicuu2.exe file and follow the prompts to install the Windows Installer CleanUp utility. (If you're on a Windows Vista or Windows 7 system and you get a Code 800A0046 error message when doubleclicking the msicuu2.exe file, try instead right-clicking on the msicuu2.exe file and selecting "Run as administrator".)
    (3) In your Start menu click All Programs and then click Windows Install Clean Up. The Windows Installer CleanUp utility window appears, listing software that is currently installed on your computer.
    (4) In the list of programs that appears in CleanUp, select any iTunes entries and click "Remove", as per the following screenshot:
    (5) Quit out of CleanUp, restart the PC and try another iTunes install. Does it go through properly this time?

  • Installation error: cannot find the data source checking utility (dbcheck)

    BO XI 3.0:
    During the process of installing "Dashboard and Analytics Servers", we've got this error.
    Installation error: cannot find the data source checking utility (dbcheck)
    Have anyone encountered this issue? We can't move on after this error.
    Thanks,

    I've fixed the problem.
    Lianjun.
    Lianjun (guest) wrote:
    : I've tried to run the latest beta version of OMWB to migrate
    from
    : MS SQLSERVER7.0 to Oracle8i. At step 4:Source Database Details,
    : every time I put in the data source name (which is in the
    control
    : panel-ODBC data source Administrator), it gave an error message
    : that Data source name not found and no default driver
    : specified).Anybody has any ideas?
    : Thanks for the help!
    : Lianjun.
    null

  • Xmlreader schema validation error: Cannot find the declaration of element

    I have multiple schemas with namespaces but I would like to validate an xml document without namespaces. The schemas all have elementFormDefault="unqualified" in the root element.
    I am encountering error below in my validation using xmlreader:
    ERROR:
    Cannot find the declaration of element 'NewTradenetDeclaration'.
    my code is:
    xmlReader = XMLReaderFactory.createXMLReader("org.apache.xerces.parsers.SAXParser");
    xmlReader.setFeature(VALIDATION_FEATURE_ID, true);
    xmlReader.setFeature(SCHEMA_VALIDATION_FEATURE_ID, true);
    xmlReader.setFeature(SCHEMA_FULL_CHECKING_FEATURE_ID, true);
    xmlReader.setFeature(SCHEMA_NAMESPACE_FEATURE_ID, true);
    xmlReader.setProperty(JAXP_SCHEMA_LANGUAGE, XMLConstants.W3C_XML_SCHEMA_NS_URI);
    String schemaURI = "NewTradenetDeclaration.xsd";
    // ive tried all of the ff but throws the same error
    //xmlReader.setProperty(EXTERNAL_SCHEMA_LOCATION, "urn:crimsonlogic:tn:schema:xsd:NewTradenetDeclaration NewTradenetDeclaration.xsd");
    //xmlReader.setProperty(EXTERNAL_SCHEMA_LOCATION, schemaURI);
    xmlReader.setProperty(JAXP_SCHEMA_SOURCE, schemaURI);
    // set entity resolver to resolve xsd locations
    MyResolver resolver = new MyResolver();
    xmlReader.setEntityResolver(resolver);the entity resolver has:
    public InputSource resolveEntity (String publicId, String systemId) {
      String filename =  "c:/workspace/TXParser/schema/"+ systemId.substring(systemId.lastIndexOf("/")+1);
      File f = new File(filename);
      InputSource source = null;
      try {
        source = new InputSource(new FileReader(f));
      } catch(Exception e) {
      System.out.println("InputSource exception: " + e.getMessage());                 
      return source;
    }Help please. Thanks.

    I fight with the same error, it is curious that the schema from schemaLocation can not be validated. If i set the schema manually through an attribute it works. What i try to do is overwriting the resolveEntity in the handler to get the schema from another location and validate the xml against the schema specified in the attribute schemaLocation rather than setting it manually :-(

Maybe you are looking for