Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...SQL and SQL Ser...SQL and SQL Ser...Maximum stored procedure, function, trigger, or view nesting level exceededMaximum stored procedure, function, trigger, or view nesting level exceeded
Previous
 
Next
New Post
10/12/2012 7:03 AM
 
Maximum stored procedure, function, trigger, or view nesting level exceeded

Message: System.Data.SqlClient.SqlException (0x80131904): Maximum stored procedure, function, trigger, or view nesting level exceeded (limit 32). at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection) at System.Data.SqlClient.SqlInternalConnection. (SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning() at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) at System.Data.SqlClient.SqlDataReader.HasMoreRows() at System.Data.SqlClient.SqlDataReader.ReadInternal(Boolean setTimeout) at System.Data.SqlClient.SqlDataReader.Read() at DotNetNuke.Common.Lists.ListController.FillListInfoDictionary(IDataReader dr) in \06.02.03_Source\Community\Library\Common\Lists\ListController.cs:line 86

The error occues after i delete one my Custom List in Lists.

I think have problem with function dbo.[GetListParentKey]

Anybody met this the same error!??


https://www.onednn.com
 
New Post
10/12/2012 10:24 AM
 
this sounds like a recursive look, I haven't seen it in FnL yet, there seem to be an issue to retrieve data from Lists table - how many levels do you have in there?

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
10/12/2012 10:25 AM
 
I found the source problem, error in data Lists table, Have a list entry with not exist ParentID. Why?
i think when DNN deleting my custom Listname, it not delete all childs of item in it.

I think this is important error, because Lists is core extension.

https://www.onednn.com
 
New Post
10/12/2012 10:30 AM
 
Yes Sebastian, i have list with 4 level.

Temp i fixed problem by modified in [dbo].[GetListParentKey], by the way add breaking flag at line 41, check @ListValue is NULL:

IF ISNULL(@ListValue, '') = ''
RETURN ''

https://www.onednn.com
 
New Post
10/12/2012 11:03 AM
 
I write sql script to fix Entries having invalid ParentID, script bellow:

Declare @entryID int, @parentID int
Declare c Cursor For Select EntryID, ParentID From dbo.Lists as L0 WHERE L0.ParentID > 0
Open c

Fetch next From c into @entryID, @parentID

While @@Fetch_Status=0
Begin
--Print 'EntryID: ' + CONVERT(nvarchar(50),@entryID) + ' ParentID:' + CONVERT(nvarchar(50),@parentID)
If (@parentID > 0)
begin
IF NOT EXISTS(SELECT EntryID FROM dbo.Lists as L1 WHERE L1.EntryID = @parentID)
Begin
Print '==> Error in EntryID: ' + CONVERT(nvarchar(50),@entryID) + ', not exist ParentID: ' + CONVERT(nvarchar(50),@parentID)
--Delete from dbo.Lists where EntryID = @entryID
End
end
Fetch next From c into @entryID, @parentID
End
Close c
Deallocate c
-- UnComment the row Delete from... if you want clear all invalid entries

https://www.onednn.com
 
Previous
 
Next
HomeHomeDevelopment and...Development and...SQL and SQL Ser...SQL and SQL Ser...Maximum stored procedure, function, trigger, or view nesting level exceededMaximum stored procedure, function, trigger, or view nesting level exceeded


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out