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

Bring2mind Forums

Permission issue / critical error
Last Post 09/28/2009 2:27 PM by Peter Donker. 3 Replies.
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
pegb50
New Member
New Member
Posts:4


--
09/26/2009 4:39 AM

I have a critical error and can't get into doc exchange.  It is complaing about custom fields - but that doesn't seem to be the issue as it occured when I updated the permissions (can't tell you exactly how I did it because I can't get back into the admin screen - but I think it was Permissions Only by Admin).  I was attempting to remove the screen that shows the permissions when adding a new item (file) to document exchange.  I have just 4 permission entries in dmx_permissions.  DMX_PermissionEntryTypes has 10 entries (4 collection, 3 file, 3 hyperlink).  I see PermissionsOnlyByAdmin flag set to 0 in the dmx_entries table, but not sure what it should be set to to put it back.

I would appreciate any help you can provide.

Thank you!

pegb50
New Member
New Member
Posts:4


--
09/26/2009 6:08 AM

Below is from the event log - I also did add Task Number in 2 spots so might have created a conflict somehow.  I was able to enter the custom field against two files before it locked me out (when I updated the permissions).

PropertyName>A column named 'Task Number' already belongs to this DataTable.FileNameFileLineNumber0FileColumnNumber0MethodSystem.Data.DataColumnCollection.RegisterColumnNameStackTraceMessageDotNetNuke.Services.Exceptions.PageLoadException: A column named 'Task Number' already belongs to this DataTable. ---> System.Data.DuplicateNameException: A column named 'Task Number' already belongs to this DataTable.     at System.Data.DataColumnCollection.RegisterColumnName(String name, DataColumn column, DataTable table)     at System.Data.DataColumnCollection.BaseAdd(DataColumn column)     at System.Data.DataColumnCollection.AddAt(Int32 index, DataColumn column)     at System.Data.DataColumnCollection.Add(String columnName, Type type)     at DotNetNuke.Common.Globals.ConvertDataReaderToDataTable(IDataReader reader)     at Bring2mind.DNN.Modules.DMX.Business.EntriesController.GetCollectionContents(PortalSettings& Portal, UserInfo& User, Boolean UserIsAdmin, Int32 EntryId, Boolean IncludeDeleted)     at Bring2mind.DNN.Modules.DMX.ViewCollection.ᜂ(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.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)     --- End of inner exception stack trace ---Source
pegb50
New Member
New Member
Posts:4


--
09/26/2009 7:39 PM
I found my problem and fixe it. The attributes (custom fields) were duplicated. I renamed one of the fields and it resolved my problem, so no response required.
Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
09/28/2009 2:27 PM
Hi peggy,
I'll see if I can make the code a bit more robust against this kind of thing.
Peter
You are not authorized to post a reply.