Hierarchy Install Error

Jun 4, 2009 at 6:56 PM

Hi,

The SLAM and Hierarchy - SLAM Extension is installed. But ,  when I push validate button to  Hierarchical Linst, I receive the following erro:

System.NullReferenceException: Object reference not set to an instance of an object. at AWS.SLAM.Configuration.XmlSqlDataMapping.b__3(XElement typeNode) at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext() at System.Linq.Buffer`1..ctor(IEnumerable`1 source) at System.Linq.OrderedEnumerable`1.d__0.MoveNext() at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext() at System.Linq.Enumerable.d__aa`1.MoveNext() at AWS.SLAM.Administration.Configuration.<>c__DisplayClass3.b__0() at Microsoft.SharePoint.SPSecurity.CodeToRunElevatedWrapper(Object state) at Microsoft.SharePoint.SPSecurity.<>c__DisplayClass4.b__2() at Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode) at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(WaitCallback secureCode, Object param) at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(CodeToRunElevated secureCode) at AWS.SLAM.Administration.Configuration.btnValidateConfiguration_Click(Object sender, EventArgs e)
I used the example: http://slam.codeplex.com/Wiki/View.aspx?title=Hierarchy  but, I did not find detail  of configuration.
My slam.config looks like this...
<?xml version="1.0" encoding="utf-8" ?>
<Configuration>
  <ConnectionStrings Default="slam">
    <add Name="slam" ConnectionString="Database=slam;Data Source=SPSRV003-VM\SQL2005;Integrated Security=SSPI"/>
  </ConnectionStrings>
  <DataMapping DataSchema="slam" SiteCollection="sites/slamteste">
     <List  Name="Clients" ActivationOrder="1">
   <Fields>
           <Field Name="Client Name" SqlType="varchar(255)" SPType="Text" Required="true"> </Field>
          </Fields>
 </List>

       <List  Name="Projects" ActivationOrder="2">
  <Fields>
          <Field Name="Project Name" SqlType="varchar(255)" SPType="Text" Required="true"> </Field>
    <Field Name="Client" SPType="Lookup" AssociatedList="Clients" AssociationName="ProjectsToClients"> </Field>
         </Fields>
        </List>
      <List Name="Tasks" ActivationOrder="3">
 <Fields>
          <Field Name="Task Name"  SqlType="varchar(255)" SPType="Text" Required="true"> </Field>
   <Field Name="Project" SPType="Lookup" AssociatedList="Projects" AssociationName="TasksToProjects"></Field>
   <Field Name="Estimated Time"  SqlType="decimal(18,2)" SPType="Number" Required="true"> </Field>
   <Field Name="Notes"  SqlType="varchar(Max)" SPType="note" Required="false"> </Field>
 </Fields>
<List Name="Shapes" TypeProfile="HierarchicalList" ActivationOrder="4">
     <Fields>
          <Field Name="Title" SqlType="varchar(255)" SPType="Text" Required="true"></Field>
     </Fields>
</List>
      </List>

<TypeProfiles>
    <add Name="HierarchicalList" AssemblyQualifiedTypeName=
           "AWS.SLAM.Hierarchy.HierarchicalListTypeProfile,
            AWS.SLAM.Hierarchy, Version=1.0.0.0, Culture=neutral, PublicKeyToken=896136499185ddc1" />
    <add Name="HierarchicalContent" AssemblyQualifiedTypeName=
           "AWS.SLAM.Hierarchy.HierarchicalContentTypeTypeProfile,
            AWS.SLAM.Hierarchy, Version=1.0.0.0, Culture=neutral, PublicKeyToken=896136499185ddc1" />
 
</TypeProfiles>
 </DataMapping>
</Configuration>
How to do configure the Hierarchical Linst in the slam.config?
You have complete slam.config there?
Thank you very much.!
Developer
Jun 5, 2009 at 4:39 PM

Here is what your SLAM config should look like:

 

<?xml version="1.0" encoding="utf-8" ?>
<Configuration>
  <TypeProfiles>
    <add Name="HierarchicalList" AssemblyQualifiedTypeName="AWS.SLAM.Hierarchy.HierarchicalListTypeProfile, AWS.SLAM.Hierarchy, Version=1.0.0.0, Culture=neutral, PublicKeyToken=896136499185ddc1" />
    <add Name="HierarchicalContent" AssemblyQualifiedTypeName="AWS.SLAM.Hierarchy.HierarchicalContentTypeTypeProfile, AWS.SLAM.Hierarchy, Version=1.0.0.0, Culture=neutral, PublicKeyToken=896136499185ddc1" />
  </TypeProfiles>

  <ConnectionStrings Default="slam">
    <add Name="slam" ConnectionString="Database=slam;Data Source=SPSRV003-VM\SQL2005;Integrated Security=SSPI"/>
  </ConnectionStrings>
  <DataMapping DataSchema="slam" SiteCollection="sites/slamteste">
    <List  Name="Clients" ActivationOrder="1">
      <Fields>
        <Field Name="Client Name" SqlType="varchar(255)" SPType="Text" Required="true"></Field>
      </Fields>
    </List>
    <List  Name="Projects" ActivationOrder="2">
      <Fields>
        <Field Name="Project Name" SqlType="varchar(255)" SPType="Text" Required="true"> </Field>
        <Field Name="Client" SPType="Lookup" AssociatedList="Clients" AssociationName="ProjectsToClients"> </Field>
      </Fields>
    </List>
    <List Name="Tasks" ActivationOrder="3">
      <Fields>
        <Field Name="Task Name"  SqlType="varchar(255)" SPType="Text" Required="true"> </Field>
        <Field Name="Project" SPType="Lookup" AssociatedList="Projects" AssociationName="TasksToProjects"></Field>
        <Field Name="Estimated Time"  SqlType="decimal(18,2)" SPType="Number" Required="true"> </Field>
        <Field Name="Notes"  SqlType="varchar(Max)" SPType="note" Required="false"> </Field>
      </Fields>
    </List>
    <List Name="Shapes" TypeProfile="HierarchicalList" ActivationOrder="4">
      <Fields>
        <Field Name="Title" SqlType="varchar(255)" SPType="Text" Required="true"></Field>
      </Fields>
    </List>
 </DataMapping>
</Configuration>

 

-Brian