2sxc - Data.In.Add creates General Exception Error related to DNN Search indexing -
i'm using faq categories demo on site, , i'm getting constant general exception errors in dnn log viewer. of these related "_all questions (sorted) of selected category.cshtml" template, line 13:
data.in.add("qanda", sorted["default"]);
the exception error inner message "an item same key has been added." , below entire error copy/pasted in full:
absoluteurl:
defaultdataprovider:dotnetnuke.data.sqldataprovider, dotnetnuke
exceptionguid:819672a9-e438-40cf-9e8e-c834b7f1cebb
assemblyversion:
portalid:-1
userid:-1
tabid:-1
rawurl:
referrer:
useragent:
exceptionhash:pklgsjcpamgkl0ycv8+1+q==
message:search: error while indexing module 724 on tab 202, portal 0
stacktrace:
innermessage:an item same key has been added.
innerstacktrace:
at system.collections.generic.dictionary`2.insert(tkey key, tvalue value, boolean add) @ asp._page_portals_0_2sxc_faq_with_categories__all_questions__sorted__of_a_selected_category_cshtml.customizedata() in q:\dev-dnn.calarts.edu\portals\0\2sxc\faq categories_all questions (sorted) of selected category.cshtml:line 13 @ tosic.sexycontent.engines.razorengine.customizedata() in c:\projects\2sexycontent\web\desktopmodules\tosic_sexycontent\2sexy content razor\razorengine.cs:line 121 @ tosic.sexycontent.search.searchcontroller.getmodifiedsearchdocuments(moduleinfo moduleinfo, datetime begindate) in c:\projects\2sexycontent\web\desktopmodules\tosic_sexycontent\sexycontent\search\searchcontroller.cs:line 68
source:
filename:
filelinenumber:0
filecolumnnumber:0
method:
server name: dev-dnn
is there fix this?
i believe data has stream "qanda" can't "add" one. if case
- either remove first before adding
- replace data["qanda"] = ... instead of adding