Confused ... ALL_DEPENDECIES view does not contain indexes?

I try to generate a installation sequence for all my objects, for this I experimented with the all_dependecies view
1st generate a table with all objects:
<pre>
drop table rank_sources;
create table rank_sources as
select rownum as rn, object_name, object_type, owner from all_objects
where owner = 'SYS';
commit;
select * from rank_sources;
</pre>
afterwards fire a pl/sql
<pre>
set serveroutput on
declare
cursor l_cursor is select * from rank_sources for update;
l_found boolean := false;
begin
for src in l_cursor loop
l_found := false;
for dep in (
select level, referenced_name, referenced_type
from DBA_DEPENDENCIES
where owner = src.owner
and referenced_owner = src.owner
start with name = src.object_name and type = src.object_type
connect by name = prior referenced_name and type = prior referenced_type
loop
l_found := true;
update rank_sources
set rn = src.rn - dep.level
where object_name = dep.referenced_name
and object_type = dep.referenced_type;
end loop;
if not l_found then
update rank_sources
set rn = -9999999999 where CURRENT OF l_cursor;
end if;
end loop;
commit;
end;
</pre>
As you can see, there are potentially indexes with a lower rank than their table. When you do a
<pre>select * from all_dependencies where type like '%INDEX%'</pre>
the result is NULL - I am really confused why indexes are not referencing to their tables?? So in case of Index I have to query seperatly all_indexes.
But when you look at the all_dependecies view definition you can see, index as an expected type - is this a bug? I use Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
<pre>
SET DEFINE OFF;
DROP VIEW SYS.ALL_DEPENDENCIES
/* Formatted on 20.10.2010 12:31:15 (QP5 v5.149.1003.31008) */
CREATE OR REPLACE FORCE VIEW SYS.ALL_DEPENDENCIES
OWNER,
NAME,
TYPE,
REFERENCED_OWNER,
REFERENCED_NAME,
REFERENCED_TYPE,
REFERENCED_LINK_NAME,
DEPENDENCY_TYPE
AS
SELECT u.name,
o.name,
DECODE (o.type#,
0, 'NEXT OBJECT',
1, 'INDEX',
2, 'TABLE',
3, 'CLUSTER',
4, 'VIEW',
</pre>
Thanks
Chris

Ok, so what I have done so far - to get a solution for my requirement - I created a sys view like this:
<pre>
create or replace
view REALLY_ALL_DEPENDENCIES as
select *
from ALL_DEPENDENCIES
union
select owner, index_name, 'INDEX', table_owner, table_name, table_type, null, null
from all_indexes
union
select p.owner, p.table_name, 'TABLE', f.owner, f.table_name, 'TABLE', null, null
from all_constraints p
join all_constraints f
on F.R_CONSTRAINT_NAME = P.CONSTRAINT_NAME
and F.CONSTRAINT_TYPE = 'R'
and p.constraint_type='P'
</pre>
Since union is checking for duplicates, it should be harmless to use this view from now on :-) ... ok, performance is not really good, but I do not use the view every minute - maybe once a day.
Thanks and cheers
Chris

Similar Messages

  • Errors in the high-level relational engine. The data source view does not contain a definition for the table or view. The Source property may not have been set.

    Hi All,
    I have a cube in which i'm using the TIME DIM that i created in the warehouse. But now i wanted a new measure in the cube which is Average over time and when i wanted to created the new measure i got a message that no time dim was defined, so i created a
    new time dimension in the SSAS using wizard. But when i tried to process the new time dimension i'm getting the follwoing error message
    "Errors in the high-level relational engine. The data source view does not contain a definition for "SSASTIMEDIM" the table or view. The Source property may not have been set."
    Can anyone please tell me why i cannot create a new measure average over the time using my time dimension? Also what am i doing wrong with the SSASTIMEDIM, that i'm getting the error.
    Thanks

    Hi PMunshi,
    According to your description, you get the above error when processing the time dimension. Right?
    In this scenario, since you have updated the DSV, it should have no problem on the table existence. One possibility is that table has been specified for tracking in the notifications for proactive caching, but isn't available any more for some
    reason. Please change the setting in Proactive Caching into "MOLAP".
    Reference:
    How To Implement Proactive Caching in SQL Server Analysis Services SSAS
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou
    TechNet Community Support

  • Materialized View - does not contain a primary key constraint

    I am trying to create materialized view. I gone through the MV wizard creation. Added 2 columns (foo_column, foo_pk) of the table and have a simple select statement (Select foo_column from foo_dim). Also created a primary key contrainst and refencing the primary key (FOO_PK) of the dimension.
    I am getting the following error:
    ORA-12014: table 'FOO_DIM' does not contain a primary key constraint

    It was solved. The table that I am querying has to have a primary key defined before creating a materialized view.

  • BI Publisher Word Template The report does not contain any data fields.

    I have OBIEE BI Publisher report (10.3.4) working fine using BIP but using MS Word 2003 I want to create new template and want to add charts etc.
    Step 1. In MS Word I successfully login Oracle BI Publisher as Administrator
    2. Oracle BI Publisher -> Open (I open the report)
    3. Go to Insert -> Table Wizard
    I get this error:
    The report does not contain any data fields. Please make sure that the reports generates data with the default settings or provide a valid XML file.
    Please help

    Hi
    How do I load XML data? Also why XML data load is required? Do I have to export XML data from BIP View screen and load from the same file from the word?
    Please clarify
    Thanks

  • SQL Error: ORA-00942: table or view does not exist + CX_RS_SQL_ERROR

    HI ,
    we are facing below issue while activating info object xxxxxxxx
    " SQL Error: ORA-00942: table or view does not exist "  and   " CX_RS_SQL_ERROR  "
    can any one help us out to resolve this issue.
    Thanks,
    EDK......

    Hi,
    Check the corrections given in the note 990764:
    Reason and Prerequisites
    Up to now, using a characteristic with its own master data read class as the InfoProvider was not supported. This is now released but it is not available for all modelings. Using the attributes in the query is not supported for characteristics that have their own master data read class. Using the attributes in the query causes a termination. The following errors may occur in this case:
    ORA-00942: table or view does not exist
    Fehler in CL_SQL_RESULT_SET  Include NEXT_PACKAGE
    RAISE_READ_ERROR in CL_RSDRV_VPROV_BASE
    Solution
    SAP NetWeaver 2004s BI
               Import Support Package 11 for SAP NetWeaver 2004s BI (BI Patch 11 or SAPKW70011) into your BI system. The Support Package is available once Note 0914305 "SAPBINews BI 7.0 Support Package 11", which describes this Support Package in more detail, has been released for customers.
    In urgent cases you can implement the correction instructions.
    The correction instructions contain the tightened inspection for characteristics.
    Regards,
    Anil Kumar Sharma .P

  • Error while deploying map: ORA-00942 Table or view does not exist

    Hi OWB experts,
    I'm having yet another problem with OWB, this time when I try to deploy a mapping I get this error:
    ORA-06550: line 59, column 3:
    PL/SQL: ORA-00942: table or view does not exist
    DIM_01_ESTCON_MAP
    ORA-06550: line 93, column 3:
    PL/SQL: SQL Statement ignored
    If I open the package that OWB created I see the errors:
    CURSOR "DEDUP_SRC_0_IN2_c" IS
    SELECT
    "DEDUP_INPUT_SUBQUERY2$1"."ESTADOCONEXION_ID" "ESTADOCONEXION_ID",
    "DEDUP_INPUT_SUBQUERY2$1"."ESTADOCONEXION_COD_ESTCON" "ESTADOCONEXION_COD_ESTCON",
    "DEDUP_INPUT_SUBQUERY2$1"."ESTADOCONEXION_DESC_ESTCON" "ESTADOCONEXION_DESC_ESTCON",
    "DEDUP_INPUT_SUBQUERY2$1"."STANDARD_TOTAL_COD_TTL" "STANDARD_TOTAL_COD_TTL"
    FROM
    (SELECT
    DISTINCT
    "DIM_01_ESTCON_MAP"."GET_CONST_CA_0_ESTADOCO" "ESTADOCONEXION_ID",
    "ESTADOS"."ESTADO" "ESTADOCONEXION_COD_ESTCON",
    "ESTADOS"."DESC_EST" "ESTADOCONEXION_DESC_ESTCON",
    "DIM_01_ESTCON_MAP"."GET_TOTAL_C_0_TTLID" "STANDARD_TOTAL_COD_TTL"
    FROM
    "CONSULTA"."ESTADOS"@"PROD@AYADEV_LOCATION" "ESTADOS"
    WHERE
    ( estado LIKE 'EC%' )) "DEDUP_INPUT_SUBQUERY2$1";
    Where AYADEV_LOCATION points to the module/schema/location where my source data is.
    Now, I have defined three modules:
    SOURCE, where I defined the tables and other objects from the original database (source data)
    STAGE, where I am performing all the transformations; here I defined all the maps
    TARGET, this holds the dimensions and fact tables.
    Now all three modules point to different databases. The dblink for AYADEV_LOCATION has been created and shouldn't present any problems. The username that I'm using to log on to the source database is current and I can connect to it through SQL+ or any other program (TOAD, SQLDeveloper).
    What could be happening here? I'm using OWB 10g R2, with Oracle DB 10g R2.
    I'd really appreciate any help you could provide.
    Best Regards,
    --Osvaldo
    [osantos]

    Hi,
    I'm still having problems but I found out why these tables are returning errors. The username I've been given by the DBA to connect to the database is CONSULTA, but this user is only for querying purposes, the actual objects reside on a differente schema, of course, which is PROD. So the line:
    "CONSULTA"."ESTADOS"@"PROD@AYADEV_LOCATION" "ESTADOS"
    raises an exception because the table ESTADOS is not located on that schema, but on PROD. If I query the table from SQL Plus with:
    SELECT *
    FROM [email protected]@AYADEV_LOCATION
    then there's no problem at all.
    Why is this? How do I instruct OWB to point to the correct schema or to avoind fully qualifying the table name?
    Please help me, I'm kind of confused here.
    Best Regards,
    --oswaldo.
    [osantos]

  • Error: The folder does not contain a valid Flex Builder Project.

    HI All,
    My first Post here. I am new to Flex Hardly 10 days old. I
    want to open the flexstore project in flex builder 3 and could not
    able to do so.
    What I did: file->import->.... got the error msg as
    "The folder does not contain a valid Flex Builder Project".
    also tried file->import->general->..... same error
    msg.
    I need your Help guys
    I downloaded the sample project from
    http://examples.adobe.com/flex2/inproduct/sdk/flexstore/srcview/index.html
    Thanks in Advance
    SAS
    Text

    "shakeb66" <[email protected]> wrote in
    message
    news:gknbn8$av9$[email protected]..
    > HI All,
    > My first Post here. I am new to Flex Hardly 10 days old.
    I want to open
    > the
    > flexstore project in flex builder 3 and could not able
    to do so.
    > What I did: file->import->.... got the error msg
    as "The folder does not
    > contain a valid Flex Builder Project".
    > also tried file->import->general->..... same
    error msg.
    > I need your Help guys
    > I downloaded the sample project from
    >
    >
    http://examples.adobe.com/flex2/inproduct/sdk/flexstore/srcview/index.html
    Try creating a new Flex project and dragging the files from
    the zip into the
    src folder. You may find that you need to rearrange things a
    bit, depending
    on how they set up the project, but this should get you
    started.
    HTH;
    Amy

  • Does not contain a static 'Main' method suitable for an entry point_

    Hello
    I want to to do a project with Entiity Framework . I add a project to my solution for my domain class and it's name is 'LinkModel.DomainClasses'.  when I prees F5 there is an error like bellow.
    Could You help me to solve this? thanks alot
    ..\Documents\Training\LinkCodeFirstLast\LinkCodeFirst\LinkCodeFirst\LinkModel.DomainClasses\obj\Debug\LinkModel.DomainClasses.exe'
    does not contain a static 'Main' method suitable for an entry point

    Hi bkshn,
    This error is caused by the missing "Main" method in your project. it is the entry point of your project.
    If you want to create a EF project, you could follow the way in the aricle below.
    https://msdn.microsoft.com/en-us/data/ee712907#codefirst
    The Main method is like below.
    class Program
    static void Main(string[] args)
    using (var db = new BloggingContext())
    // Create and save a new Blog
    Console.Write("Enter a name for a new Blog: ");
    var name = Console.ReadLine();
    var blog = new Blog { Name = name };
    db.Blogs.Add(blog);
    db.SaveChanges();
    // Display all Blogs from the database
    var query = from b in db.Blogs
    orderby b.Name
    select b;
    Console.WriteLine("All blogs in the database:");
    foreach (var item in query)
    Console.WriteLine(item.Name);
    Console.WriteLine("Press any key to exit...");
    Console.ReadKey();
    And you could start to learn the EF from the following MSDN blogs.
    https://msdn.microsoft.com/en-us/data/ee712907
    If you have any other concern regarding this issue, please feel free to let me know.
    Best regards,
    Youjun Tang
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Source2wsdd: ServiceGen does not contain a start method - help!

    Hello all Weblogic Users!
    I would greatly appreciate any help with this problem.
    I am getting this error when I do my build on Linux.
    [source2wsdd] source2wsdd: Doclet class weblogic.webservice.tools.ddgen.ServiceGen does not contain a start method.
    Previously I was getting an error where the ServiceGen class could not be found. This was occuring both in Windows and Linux.
    For Windows, this can be fixed in two ways. 1) Run setWLSEnv.cmd first (in weblogic81/server/bin. 2) (Unconfirmed but try it) Add the tools.jar, weblogic.jar, and webservices.jar to the ant runtimes lib in Eclipse (see preferences/ant/runtimes/global entries. - This will let you run the task inside Eclipse)
    In Linux, I added the webloigc.jar and webservices.jar to the user's special ~/'.ant/lib directory (see ant documentation). This too fixed the problem of being unable to find the ServiceGen class. But now I am getting the error above. I am ripping my hair out trying to fix it.
    Any help would be appreciated.
    Thanks to all....

    Hi bkshn,
    This error is caused by the missing "Main" method in your project. it is the entry point of your project.
    If you want to create a EF project, you could follow the way in the aricle below.
    https://msdn.microsoft.com/en-us/data/ee712907#codefirst
    The Main method is like below.
    class Program
    static void Main(string[] args)
    using (var db = new BloggingContext())
    // Create and save a new Blog
    Console.Write("Enter a name for a new Blog: ");
    var name = Console.ReadLine();
    var blog = new Blog { Name = name };
    db.Blogs.Add(blog);
    db.SaveChanges();
    // Display all Blogs from the database
    var query = from b in db.Blogs
    orderby b.Name
    select b;
    Console.WriteLine("All blogs in the database:");
    foreach (var item in query)
    Console.WriteLine(item.Name);
    Console.WriteLine("Press any key to exit...");
    Console.ReadKey();
    And you could start to learn the EF from the following MSDN blogs.
    https://msdn.microsoft.com/en-us/data/ee712907
    If you have any other concern regarding this issue, please feel free to let me know.
    Best regards,
    Youjun Tang
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Help Solving: Does not contain a definition for 'Select'.....

    Hi,
    Need help solving a Task that returns a Task<IEnumerable<Writing>> so I can fill ObservableCollection<ViewModels.IWritingItemViewModel> Writings for my
    Design Time Data Page:
    <d:Page.DataContext>
    <designTimeData:MainPageViewModel />
    </d:Page.DataContext>
    My constructor does this:
    public MainPageViewModel()
    var writings = this.GetGroupsAsync();
    this.Writings = new ObservableCollection<ViewModels.IWritingItemViewModel>();
    var viewmodels = writings.Select((x, i) => new WritingItemViewModel
    Writing = x,
    VariableItemSize = (i == 0) ? Common.VariableItemSizes.Writings : Common.VariableItemSizes.Normal,
    My var writings = this.GetGroupsAsync(); is:
    public async Task<IEnumerable<Writing>> GetGroupsAsync()
    await this.GetMenuDataAsync();
    return this.Groups;
    which in turn gets data from:
    private async Task GetMenuDataAsync()
    Uri dataUri = new Uri("ms-appx:///DesignTimeData/MenuData.json");
    StorageFile file = await StorageFile.GetFileFromApplicationUriAsync(dataUri);
    string jsonText = await FileIO.ReadTextAsync(file);
    JsonObject jsonObject = JsonObject.Parse(jsonText);
    JsonArray jsonArray = jsonObject["Groups"].GetArray();
    foreach (JsonValue groupValue in jsonArray)
    JsonObject groupObject = groupValue.GetObject();
    Writing group = new Writing(
    groupObject["UniqueId"].GetString(),
    groupObject["IsHeaderInteractive"].GetBoolean(),
    groupObject["ViewType"].GetString(),
    groupObject["ModelType"].GetString(),
    groupObject["Page"].GetString(),
    groupObject["Title"].GetString(),
    groupObject["Subtitle"].GetString(),
    groupObject["ImagePath"].GetString(),
    groupObject["Description"].GetString(),
    groupObject["GroupId"].GetString()
    foreach (JsonValue itemValue in groupObject["WritingMenus"].GetArray())
    JsonObject itemObject = itemValue.GetObject();
    group.WritingMenus.Add(new WritingMenu(
    itemObject["UniqueId"].GetString(),
    itemObject["Page"].GetString(),
    itemObject["Title"].GetString(),
    itemObject["Subtitle"].GetString(),
    itemObject["ImagePath"].GetString(),
    itemObject["Description"].GetString(),
    itemObject["Content"].GetString(),
    itemObject["WritingsId"].GetString(),
    itemObject["GroupId"].GetString(),
    Convert.ToInt32(itemObject["Item"].ValueType)
    this.Groups.Add(group);
    and I get this Error:
    Error 5 'System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<App1.DesignTimeData.Writing>>'
    does not contain a definition for 'Select' and no extension method 'Select' accepting a first argument of type
    'System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<App1.DesignTimeData.Writing>>'
    could be found (are you missing a using directive or an assembly reference?)
    I'm creating collections of:
    public interface IWritingItemViewModel : Common.IVariableSizedItem
    Models.Writing Writing { get; set; }
    and my class for creating data is:
    public class Writing
    public Writing(
    string uniqueId,
    bool isHeaderInteractive,
    string templateType,
    string viewModelType,
    string page,
    string title,
    string subtitle,
    string imagePath,
    string description,
    string groupId
    this.UniqueId = uniqueId;
    this.IsHeaderInteractive = isHeaderInteractive;
    this.TemplateType = templateType;
    this.ViewModelType = viewModelType;
    this.Page = page;
    this.Title = title;
    this.Subtitle = subtitle;
    this.ImagePath = imagePath;
    this.Description = description;
    this.GroupId = groupId;
    this.WritingMenus = new ObservableCollection<WritingMenu>();
    public string UniqueId { get; private set; }
    public bool IsHeaderInteractive { get; private set; }
    public string TemplateType { get; private set; }
    public string ViewModelType { get; private set; }
    public string Page { get; private set; }
    public string Title { get; private set; }
    public string Subtitle { get; private set; }
    public string ImagePath { get; private set; }
    public string Description { get; private set; }
    public string GroupId { get; private set; }
    public virtual ObservableCollection<WritingMenu> WritingMenus { get; private set; }
    How can I solve or successfully complete this code?
    Thanks!...
    Code is like a box of chocolates!...

    I looked into your error message again, I found something interesting:
    Error 5
    'System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<App1.DesignTimeData.Writing>>'
      does not contain a definition
    for 'Select'
    and no extension method
    'Select' accepting a first argument of type
      'System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<App1.DesignTimeData.Writing>>'
      could be found (are you missing a
    using directive or an assembly reference?)
    That means: Task does not contain the definition for Select. This was reasonable, Task does not inherit IEnumerable interface.
    var viewmodels = writings.Select((x, i) => new WritingItemViewModel
    Writing = x,
    VariableItemSize = (i == 0) ? Common.VariableItemSizes.Writings : Common.VariableItemSizes.Normal,
    public async Task<IEnumerable<Writing>> GetGroupsAsync()
    You need get the IEnumerable<Writing> for Select use. See this for more information:
    How to: Return a Value from a Task
    --James
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Database does not contain a URL for the file

    How do I find out what file/update this is:
    The file digest/hash does not exist in the SUSDB, but I have no idea looking at the windowsupdate or softwaredistribution.log what file it is referring to.
    SELECT  [FileDigest]
          ,[DigestAlgorithm]
          ,[AdditionalHash]
      FROM [SUSDB].[dbo].[tbFileHash] fh
      WHERE fh.FileDigest =0x15B82F101E79C1E2181E43CC8A3CC137CBFDC91D
      or fh.AdditionalHash =0x15B82F101E79C1E2181E43CC8A3CC137CBFDC91D
    0 rows found
    Softwaredistribution.log
    2014-10-07 23:07:04.319 UTC    Error    w3wp.5    ClientImplementation.GetExtendedUpdateInfo    System.ArgumentException: The database does not contain a URL for the file 15B82F101E79C1E2181E43CC8A3CC137CBFDC91D.
    Parameter name: fileDigests
       at Microsoft.UpdateServices.Internal.DataAccess.ExecuteSpGetFileLocations(Byte[][] fileDigests)
       at Microsoft.UpdateServices.Internal.DataAccessCache.GetFileLocations(Byte[][] fileDigests, DataAccess da)
       at Microsoft.UpdateServices.Internal.ClientImplementation.GetExtendedUpdateInfo(Cookie cookie, Int32[] revisionIds, XmlUpdateFragmentType[] fragmentTypes, String[] locales)
       at Microsoft.UpdateServices.Internal.ClientImplementation.GetExtendedUpdateInfo(Cookie cookie, Int32[] revisionIds, XmlUpdateFragmentType[] fragmentTypes, String[] locales)
       at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
       at System.Web.Services.Protocols.LogicalMethodInfo.Invoke(Object target, Object[] values)
       at System.Web.Services.Protocols.WebServiceHandler.Invoke()
       at System.Web.Services.Protocols.WebServiceHandler.CoreProcessRequest()
       at System.Web.Services.Protocols.SyncSessionlessHandler.ProcessRequest(HttpContext context)
       at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
       at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
       at System.Web.HttpApplication.PipelineStepManager.ResumeSteps(Exception error)
       at System.Web.HttpApplication.BeginProcessRequestNotification(HttpContext context, AsyncCallback cb)
       at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context)
       at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr managedHttpContext, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
       at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr managedHttpContext, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
       at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr managedHttpContext, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
       at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr managedHttpContext, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)

    How do I find out what file/update this is:
    Hows about.. rather than chasing a rabbit down the hole doing whatever you think you're doing...
    We start with this: What problem is it that you're actually trying to solve?
    Lawrence Garvin, M.S., MCSA, MCITP:EA, MCDBA
    SolarWinds Head Geek
    Microsoft MVP - Software Packaging, Deployment & Servicing (2005-2014)
    My MVP Profile: http://mvp.microsoft.com/en-us/mvp/Lawrence%20R%20Garvin-32101
    http://www.solarwinds.com/gotmicrosoft
    The views expressed on this post are mine and do not necessarily reflect the views of SolarWinds.

  • C# compiling error: 'System.Array' does not contain a definition for 'Select' and no extension method 'Select' accepting a first argument of type 'System.Array' could be found (are you missing a using directive or an assembly reference?)

    Hello experts,
    I'm totally new to C#. I'm trying to modify existing code to automatically rename a file if exists. I found a solution online as follows:
    string[] allFiles = Directory.GetFiles(folderPath).Select(filename => Path.GetFileNameWithoutExtension(filename)).ToArray();
            string tempFileName = fileName;
            int count = 1;
            while (allFiles.Contains(tempFileName ))
                tempFileName = String.Format("{0} ({1})", fileName, count++); 
            output = Path.Combine(folderPath, tempFileName );
            string fullPath=output + ".xml";
    However, it gives the following compilation errors
    for the Select and Contain methods respectively.:
    'System.Array' does not contain a definition for 'Select' and no extension method 'Select' accepting a first argument of type 'System.Array' could be found
    (are you missing a using directive or an assembly reference?)
    'System.Array' does not contain a definition for 'Contains' and no extension method 'Contains' accepting a first argument of type 'System.Array' could be
    found (are you missing a using directive or an assembly reference?)
    I googled on these errors, and people suggested to add using System.Linq;
    I did, but the errors persist. 
    Any help and information is greatly appreciated.
    P. S. Here are the using clauses I have:
    using System;
    using System.Data;
    using System.Windows.Forms;
    using System.IO;
    using System.Collections.Generic;
    using System.Text;
    using System.Linq;

    Besides your issue with System.Core, you also have a problem with the logic of our code, particularly your variables. It is confusing what your variables represent. You have an infinite loop, so the last section of code is never reached. Take a look 
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using System.IO;
    namespace consAppFileManipulation
    class Program
    static void Main(string[] args)
    string fullPath = @"c:\temp\trace.log";
    string folderPath = @"c:\temp\";
    string fileName = "trace.log";
    string output = "";
    string fileNameOnly = Path.GetFileNameWithoutExtension(fullPath);
    string extension = Path.GetExtension(fullPath);
    string path = Path.GetDirectoryName(fullPath);
    string newFullPath = fullPath;
    string[] allFiles = Directory.GetFiles(folderPath).Select(filename => Path.GetFileNameWithoutExtension(filename)).ToArray();
    string tempFileName = fileName;
    int count = 1;
    //THIS IS AN INFINITE LOOP
    while (allFiles.Contains(fileNameOnly))
    tempFileName = String.Format("{0} ({1})", fileName, count++);
    //THIS CODE IS NEVER REACHED
    output = Path.Combine(folderPath, tempFileName);
    fullPath = output + ".xml";
    //string fullPath = output + ".xml";
    UML, then code

  • Error handling function: ORA-20001: get_dbms_sql_cursor error:ORA-00942: table or view does not exist  is not trapped. Why?

    Why APEX 4.1 Error handling function does not trap  the error of missing table?
    Say, I create simple application with single IR report page and I also assign standard simple error handling function.
    Function works perfectly, except but this case:
    If I just drop a table used by report page and then refresh the page I am getting usual APEX error message:
    ORA-20001: get_dbms_sql_cursor error ORA-00942: table or view does not exist
    and error handling function is not invoked at all.
    Is this a feature or a bug?

    Hi,
    Check the corrections given in the note 990764:
    Reason and Prerequisites
    Up to now, using a characteristic with its own master data read class as the InfoProvider was not supported. This is now released but it is not available for all modelings. Using the attributes in the query is not supported for characteristics that have their own master data read class. Using the attributes in the query causes a termination. The following errors may occur in this case:
    ORA-00942: table or view does not exist
    Fehler in CL_SQL_RESULT_SET  Include NEXT_PACKAGE
    RAISE_READ_ERROR in CL_RSDRV_VPROV_BASE
    Solution
    SAP NetWeaver 2004s BI
               Import Support Package 11 for SAP NetWeaver 2004s BI (BI Patch 11 or SAPKW70011) into your BI system. The Support Package is available once Note 0914305 "SAPBINews BI 7.0 Support Package 11", which describes this Support Package in more detail, has been released for customers.
    In urgent cases you can implement the correction instructions.
    The correction instructions contain the tightened inspection for characteristics.
    Regards,
    Anil Kumar Sharma .P

  • SOLVED - BIOS UPDATE "SYSTEM DOES NOT CONTAIN the NECESSARY WMI SUPPORT for this VERSION of HPQflash

    If you get infamous error when updating HP Portables (laptops/notebooks/ netbooks) BIOS within Windows:
    "SYSTEM DOES NOT CONTAIN THE NECESSARY WMI SUPPORT FOR THIS VERSION OF HPQFLASH":
    I am posting a solution found for own business laptop (HP 8540W & 8760W) so WebSearch engines index/register it in a few days - future sufferers come here and get a SOLUTION, finally.  Disreagrd previous "experts" advises, they don't work 100% & pity on TechSupport folks who get HP paychecks yet don't know products their co. designs/manufactures (on deep Technical level):
    Below is a SOLUTION (WORKING) !
    Go into Services (Run "services.msc" or get there thru ControlPanel-->AdminTools-->), find following 2 services ==> make sure they're running, chances are they're NOT (as in my case I keep them disabled unless need running):
    1) "HP Software Framework"
    2) "HP Service" [no typo - a real plain name]
    If not running, set Properties-->Manual and click "Start", make sure both are running.
    Rerun BIOS updater, choose option for "Within Windows" or something to that effect (using HPQ/ROMpaq updater), rather than "create USB BootDisk on Key", this time it should work without the hassle of a BootDisk creation.
    Should work from within Windows environment.
    Notes:
    a) Likely only one (1) service is responsible - namely "HP Software Framework" for HPQ Updater to fail, but doesn't hurt to reenable/restart both services.
    I in fact am responding to other customers who elect to Update BIOS within Windows, perhaps oldfashioned but to me Boot Updater is more natural & always works regardless of WMI Support.
    b) After done, don't forget:
    *) Recheck BIOS settings - update may've added new and/or changed old, so rescan tobe sure.
    **) Go BACK into Windows-->Services.msc & redisable both aforementioned Services if were originally disabled; or you're a computer Pro, you know what you're doing & like me keep all HP services disabled.  The ones we got on EliteBook 8760W are pests consuming system resources, you just enable "Software Framework" when occasional issues emerge with HP softupdate (typically no issues) & redisable after use, rest of services are bloatware - some attempt to overrun Windows Wireless console, some seekout HP Networked printers (Ethernet, Wireless, but not USB), some do this & that - I study/know which one does what and decided to disable all. This is called a "minimalist" philosophy & turns your machine into a fast beast, I recently sold a very obsolete 4-year laptop which however handles 3DMCAD & complex designs/simulations, better new machines out fo a store, as new machines are loaded w/bloatware chocking down resources.
    BUT nobody is requiring you to disable anything though.
    The solution merely states the fact:
    These 2 (or 1) services when not running halt BIOS Update "within Windows" (you can still run "BootDisk option", however, if preferred).
    Simply restartung them solves your problem.  Usually
    Ya'll have a good day and enjoy!
    ===========
    BELOW ARE IMPORTANT WARNINGS:
    1) IF YOUR BIOS UPDATE STILL FAILS, SOME OTHER PIECE IN WMI SUPPORT IS MISSING - IN MY CASE WAS THESE 2 SERVICES, BUT THERE'S REMOTE POSSIBILITY SOMETHING ELSE MIGHT BLOCK UPDATER.  DON'T WASTE TIME & CHOOSE "USB/BootDisk" options instead
    2) Once BIOS updater does its job, will ask to auto-restart - let it go on & complete, it will self-shutdown (click "Next" to skip 60-second timer), then do NOT turn it on manually!, wait - it'll turn on by itself in 15 seconds, let it boot into Windows, you're done!
    3) WARNING: close other apps before proceeding, be 100% sure your ACpower won't be interrupted or better yet - make sure battery is in/charged (so if ACpower accidentally disconnects, you're autoswitched onto battery) b/c power loss may result in severe damage to internal hardware.  In the old days it'd result in fatal damage, these days powerloss would still result in a major repair (ROM chip corruption).
    So to summarize: those 2 services I specified, are often responsible for whether HPQ/ROMpaq will or won't run.
    Other causes possible, but I've not witnessed; and if so - choose BootDisk option.
    ===
    Stan M. Starinski, MSEE.

    Hello Ceramics.
    Your ProBook is an Enterprise model.  It would be a good idea to also post your question to the HP Business Boards as those forums deal specifically with that kind of product.  Here is a link.
    Have a great day!
    Please click the white star under my name to give me Kudos as a way to say "Thanks!"
    Click the "Accept as Solution" button if I resolve your issue.

  • SCCM 2012 - Adding Operating System Installer (The specified path does not contain a valid operating system ..)

    I have encountered the dreaded "The specified path does not contain a valid operating system or you do not have permission to access it.  Specify a valid path" message that seems to be popular in many forums .... BUT, so far none of the "solutions"
    have fixed the problem (of I don't understand the fix)
    Configuration
    SCCM 2012 SP1 5.0.7804.1000
    WADK 8.100.26629.0  < Suggested Fix
    Server 2008 R2
    SCCM Administrator with UserID = SCCMAdmin 
    Steps / Fixes I have followed
    I have configured a administrative share
    \\caleb\sources$ to hold directories (such as Apps, Drivers, and OS) with the following NTFS Permissions
    EVERYONE has Read and Execute, List folder, Read permissions<o:p></o:p>
    SYSTEM has Full Control 
    <Suggested Fix
    SCCMManagers (our group that has all SCCMManagers) has Full Control<o:p></o:p>
    SCCMAdmin (the SCCM Admin account that we are using to import image) has Full Control<o:p></o:p>
    Local Administrators (the local machine administrator) has Full Control 
    <Suggested Fix
    <o:p></o:p>
    Another Fix is to explicitly grant all permissions to the SCCM Administrator
    <Suggested Fix
    >Administrative Users ...
    Properties of the SCCM Administrator (for us that is SCCMAdmin) has all the boxes checked<o:p></o:p>
    Another suggestion I was able to glean was to Specify the Network Access Account
    so I configured SCCMAdmin as the Network Access Account.
    Another potential fix is that the image ISO file that has been downloaded is corrupt.   So, I downloaded the Win 7 (and Win 8.1) ISO's from MSDN and did a Checksum check.
    I then mounted the ISO (on 2008R2 I use VirtualClone Drive) and copied the contents of the image to
    E:\Sources\OS\en_windows_7_professional_with_sp1_vl_build_x86_dvd_u_677896 for Windows 7 with SP1
    To double check,
    I computed the Hash on the Install.WIM located in the Sources directory and compared with
    the computed Has Tag for the Install.WIM on the ISO Image  ... and the Hash tag of the WIM's matched (extracted vs what is contained within the ISO)<o:p></o:p>
    I tried to load the images into SCCM 2012 using the "Operating System Installers" option
    UNC to installer
    \\caleb\sources$\OS\en_windows_7_professional_with_sp1_vl_build_x86_dvd_u_677896
    Then I receive the lovely message <o:p></o:p>
    "The specified path does not contain a valid operating system or you do not have permission to access it.  Specify a valid path"<o:p></o:p>
    <o:p> </o:p>
    From
    C:\Program Files (x86)\Microsoft Configuration
    Manager\AdminConsole\AdminUILog\SmsAdminUI.log<o:p></o:p>
    <o:p> </o:p>
    \r\nSystem.Management.ManagementException\r\nGeneric failure \r\n  
    at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus
    errorCode)
       at System.Management.ManagementObject.InvokeMethod(String
    methodName, ManagementBaseObject inParameters, InvokeMethodOptions options)
       at
    Microsoft.ConfigurationManagement.ManagementProvider.WqlQueryEngine.WqlConnectionManager.ExecuteMethod(String
    methodClass, String methodName, Dictionary`2 methodParameters, Boolean
    traceParameters)\r\nManagementException details:
    instance of SMS_ExtendedStatus
     Description = "Failed to get the image property from the source WIM
    file due to error 80070002";
     ErrorCode = 2147942402;
     File ="e:\\nts_sccm_release\\sms\\siteserver\\sdk_provider\\smsprov\\sspimagepackage.cpp";
     Line = 586;
     Operation = "ExecMethod";
     ParameterInfo = "SMS_OperatingSystemInstallPackage";
     ProviderName = "WinMgmt";
     StatusCode = 2147749889;
    \r\n<o:p></o:p>
    What am I missing ????  I assume something simple but, darn I'm stumped!!!

    Hi,
    Configuration Manager version
    Windows AIK or Windows ADK Version
    Windows PE versions for boot images customizable from the Configuration Manager console
    Supported Windows PE versions for boot images not customizable from the Configuration Manager console
    System Center 2012 Configuration Manager with no service pack
    Windows AIK for Windows 7
    Windows PE 3
    None
    System Center 2012 Configuration Manager with SP1
    Windows ADK for Windows 8
    Windows PE 4
    None
    System Center 2012 Configuration Manager with SP1 and cumulative update 2
    Windows ADK for Windows 8
    Windows PE 4
    Windows PE 3.11
    System Center 2012 Configuration Manager with SP1 and cumulative update 3
    Windows ADK for Windows 8
    Windows PE 4
    Windows PE 3.11 and Windows PE 5
    System Center 2012 R2 Configuration Manager
    Windows ADK for Windows 8.1
    Windows PE 5
    Windows PE 3.11
    Please try to install the Windows ADK for Windows 8.
    http://www.microsoft.com/en-us/download/details.aspx?id=30652
    For more information, please review the link below:
    http://technet.microsoft.com/en-us/library/gg682187.aspx
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

Maybe you are looking for

  • How can I reduce the hight of the Legend in the SVG graph

    I need to reduce the height of the legend box in the SVG graph by 50%. From what I have read I soul be able to this with the CSS, but I can not figure it out. This is the current CSS that is in place. text{font-family:Verdana, Geneva, Arial, Helvetic

  • Error in File to Jdbc.

    Hi all I am trying to do a simple File to Jdbc scenario.table has 2 fields empno and empname.i am able to insert records into the database successfull without any data in empname ,but when trying to insert a record with value in empname it is giving

  • Itunes error -42404

    Well, unlike a previous thread about this error code, my itunes will open and play song and music videos. The catch is that it will only play songs and videos that i purchased in the last 4 months or so. All movies and 90% of the songs after that wil

  • Custom converter - parameters not always work

    Hi, I have a web page, which part looks like this: <a4j:repeat value="#{list}" var="art">     <h:outputText escape="false" value="#{art.content}">         <my:substring length="125" />     </h:outputText> </a4j:repeat><my:substring /> is my custom co

  • Programmatically gettiing which AppServer the EAR is deployed under

    Within a Servlet or JSP, I'm trying to programmatically get the name of the JVM (AppServer) where the code (war or ear) is deployed and running under. (This is like getting "server1" when using WSAD). I tried the System, Runtime and Thread approaches