1
Vote

Hierarchy List error on AllItems.aspx

description

I have a problem on viewing Hierarchy List. I've followed what's on this link : http://slam.codeplex.com/wikipage?title=Hierarchy&referringTitle=Home. All was a success but when I view the list to this message comes out.
 
Exception Details:
System.Data.SqlClient.SqlException: Invalid column name 'ID'.
Invalid column name 'ListRelativeID'.
 
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
 
Stack Trace:
[SqlException (0x80131904): Invalid column name 'ID'.
Invalid column name 'ListRelativeID'.]
System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) +212
System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +245
System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +1099
System.Data.SqlClient.SqlDataReader.ConsumeMetaData() +58
System.Data.SqlClient.SqlDataReader.get_MetaData() +112
System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) +6291924
System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) +6292993
System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) +424
System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) +28
System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) +211
System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior) +19
System.Data.Linq.SqlClient.SqlProvider.Execute(Expression query, QueryInfo queryInfo, IObjectReaderFactory factory, Object[] parentArgs, Object[] userArgs, ICompiledSubQuery[] subQueries, Object lastResult) +1177
System.Data.Linq.SqlClient.SqlProvider.ExecuteAll(Expression query, QueryInfo[] queryInfos, IObjectReaderFactory factory, Object[] userArguments, ICompiledSubQuery[] subQueries) +207
System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Execute(Expression query) +576
System.Data.Linq.DataContext.ExecuteMethodCall(Object instance, MethodInfo methodInfo, Object[] parameters) +100
System.Data.Linq.DataContext.ExecuteQuery(String query, Object[] parameters) +314
AWS.SLAM.Hierarchy.HierarchyListView.GetParentageDictionary(String itemDisplayName) +1409
AWS.SLAM.Hierarchy.HierarchyListView.CreateChildControls() +2464
System.Web.UI.Control.EnsureChildControls() +146
System.Web.UI.Control.PreRenderRecursiveInternal() +61
System.Web.UI.Control.PreRenderRecursiveInternal() +224
System.Web.UI.Control.PreRenderRecursiveInternal() +224
System.Web.UI.Control.PreRenderRecursiveInternal() +224
System.Web.UI.Control.PreRenderRecursiveInternal() +224
System.Web.UI.Control.PreRenderRecursiveInternal() +224
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3394

file attachments

comments

brjenkins wrote Mar 28, 2012 at 10:33 PM

If you look in the table for the list that is hierarchical do you see the ListRelativeID column? If not, are you using TypeIdDefinitions?

arjaylyn wrote Mar 29, 2012 at 2:32 AM

On the table, I don't see ListRelativeID column. I'm also using TypeIdDefinitions att for DataMapping tag. I've attached the slam.config file that I am using. Thanks.

brjenkins wrote Mar 29, 2012 at 4:59 PM

Use the TypeIdDefintion "GlobalWithSharePointIDs", when ReplaceSharePointIds is false the ListItemID and ListRelativeID columns will be present. For now that should fix this issue.

arjaylyn wrote Mar 30, 2012 at 1:43 AM

Still encountering errors. I've attached a zip file containing the new slam.config with 4 screen shots of the table generated and error for each TypeDefinitions I try. I also tried to re install both SLAM Hierarchy.wsp and SLAM.wsp, but same errors are generated.