Select the search type
  • Site
  • Web
Search
You are here:  Support/Forums
Support

Bring2mind Forums

Custom Attribute
Last Post 09/28/2010 8:27 PM by Peter Donker. 3 Replies.
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
shipu miah
New Member
New Member
Posts:2


--
09/09/2010 3:55 AM

Hi,

I am adding a number of custom attributes on per folder basis by running sql script.  After running the sql script I can see the custom attributes from the Manage Attributes option in each folder and all seems to be working as expected, however when I restart IIS, all my items seems to dissappear and all I can see is the Document Exchange folder and none of the items added under it previously.

If i then go to DMX settings and look at Root folder for module I can see all the sub folders underneath 'Document Exchange' and if I select the sub folder and click Update, the following error is returned.  If i then delete all rows from DMX_Attributes table, I can see all the sub folders under Document Exhange and do not get any error, but I have no custom attributes.  I have been stuck with this issue for a few days now and your help to resolve this error would very much be appreciated.

AssemblyVersion: 5.1.1
PortalID: 0
PortalName: My Website
UserID: 1
UserName: host
ActiveTabID: 60
ActiveTabName: DMX 2
RawURL: /nss2/DMX2.aspx
AbsoluteURL: /nss2/Default.aspx
AbsoluteURLReferrer: http://localhost/nss2/DMX...eId/375/Default.aspx
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 20f279a8-a0c9-4e83-bfe1-75e75addb4e5
InnerException: Object reference not set to an instance of an object.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: DotNetNuke.Common.Globals.ConvertDataReaderToDataTable
StackTrace:
Message: DotNetNuke.Services.Exceptions.PageLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.Common.Globals.ConvertDataReaderToDataTable(IDataReader reader) at Bring2mind.DNN.Modules.DMX.Controls.VersionList.ᜀ(Object A_0, EventArgs A_1) at System.Web.UI.Control.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---

Thanks

Shipu

Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
09/09/2010 5:07 PM
Hi Shipu,

The error is probably in the data for the attributes. Note that the Key must be unique for the attribute across the portal. Can you verify this?

Note that the IIS reset emptied the cache and prompted a reloading of the attributes.

Peter
shipu miah
New Member
New Member
Posts:2


--
09/10/2010 1:46 AM
Hi Peter,
I can confirm that there are no duplicate attribute key. For the purpose of testing, I have narrowed down my custom attributes to 199 attributes across 3 folders. After adding 199 attributes I get the error mentioned in this thread. If I reduce the number of attributes then all starts to work ok, but the number of attributes to reduce is not always consistent, sometimes removing one attribute is enough to get it to work and at other times I need to remove 2 or 3 attributes to overcome the error.

I have emailed the list of attributes that I have in the DMX_Attributes table.

Shipu
Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
09/28/2010 8:27 PM
Hi Shipu,

That is quite a few attributes, yes. How about setting a number of those to ShowInUI=false? This means they don't get loaded in the main functions to retrieve the data grid.

Second question: I hope you are aware that you can also have global attributes and that attributes inherit from one folder to another. 200 attributes I've never seen before.

Peter
You are not authorized to post a reply.