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

Bring2mind Forums

Possible error
Last Post 01/27/2010 4:44 PM by David Havenridge. 19 Replies.
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Bill
New Member
New Member
Posts:30


--
01/07/2010 7:22 PM

 

When I try to right click on a folder, edit the permissions and click finish I get the following error:

An error has occurred.
Error: Root Collection is currently unavailable.


Failed to convert parameter value from a Int64 to a Int32.

 

Without saving the changes.  Can you suggest a work around?

Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
01/12/2010 10:20 AM
Hi Bill,

I'll need more info to narrow this down. Are you running DMX without any extensions? And is this v 5.2.1? Do you have any custom attributes?

Peter
Bill
New Member
New Member
Posts:30


--
01/12/2010 2:56 PM

Using 05.02.01 No extenstions on a child portal.  Everything straight out of the box.  Only happens to Folders on the tree when changing View, Edit, Add, Approve permissions

Error: Root Collection is currently unavailable.
DotNetNuke.Services.Exceptions.ModuleLoadException: Failed to convert parameter value from a Int64 to a Int32. ---> System.OverflowException: Failed to convert parameter value from a Int64 to a Int32. ---> System.OverflowException: Value was either too large or too small for an Int32. at System.Convert.ToInt32(Int64 value) at System.Int64.System.IConvertible.ToInt32(IFormatProvider provider) at System.Convert.ChangeType(Object value, Type conversionType, IFormatProvider provider) at System.Data.SqlClient.SqlParameter.CoerceValue(Object value, MetaType destinationType) --- End of inner exception stack trace --- at System.Data.SqlClient.SqlParameter.CoerceValue(Object value, MetaType destinationType) at System.Data.SqlClient.SqlParameter.GetCoercedValue() at System.Data.SqlClient.SqlParameter.Validate(Int32 index, Boolean isCommandProc) at System.Data.SqlClient.SqlCommand.SetUpRPCParameters(_SqlRPC rpc, Int32 startCount, Boolean inSchema, SqlParameterCollection parameters) at System.Data.SqlClient.SqlCommand.BuildRPC(Boolean inSchema, SqlParameterCollection parameters, _SqlRPC& rpc) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(SqlConnection connection, CommandType commandType, String commandText, SqlParameter[] commandParameters) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(String connectionString, CommandType commandType, String commandText, SqlParameter[] commandParameters) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(String connectionString, String spName, Object[] parameterValues) at Bring2mind.DNN.Modules.DMX.Data.SqlDataProvider.UpdateEntry(Int32 EntryId, Boolean BypassTriggers, String Author, Int32 CollectionId, DateTime Created, Boolean Deleted, String Entry, String EntryType, Int64 FileSize, Boolean InheritAttributes, Boolean IsApproved, String Keywords, Int32 LastVersionId, Int32 LockedBy, DateTime LockedUntil, Guid LockKey, String MD5Hash, String OriginalFileName, Int32 Owner, String Path, Boolean PermissionsOnlyByAdmin, Int32 PortalId, String State, Int32 StorageProviderID, Int32 Version, Int32 VersionsToKeep, String WorkflowId) at Bring2mind.DNN.Modules.DMX.Business.EntriesController.UpdateEntry(EntryInfo objEntry, Boolean IncludeMultiTexts, Boolean UpdatePermissions, Boolean UpdateAttributes, Boolean UpdateCategories, Boolean BypassTriggers) at Bring2mind.DNN.Modules.DMX.Business.EntriesController.UpdateEntry(EntryInfo objEntry) at Bring2mind.DNN.Modules.DMX.Controls.EditEntry.ᜀ() at Bring2mind.DNN.Modules.DMX.Controls.EditEntry.DmxEditWizard_FinishButtonClick(Object sender, WizardNavigationEventArgs e) --- End of inner exception stack trace ---


Failed to convert parameter value from a Int64 to

David Havenridge
New Member
New Member
Posts:4


--
01/13/2010 11:00 PM
I am experiencing the same thing, but only on one of my main folders. Here's the log info

ModuleId: 397
ModuleDefId: 146
FriendlyName: Bring2mind\DMX
ModuleControlSource: DesktopModules/Bring2mind/DMX/Dispatch.ascx
AssemblyVersion: 5.2.1
PortalID: 0
PortalName: Intranet
UserID: 2
UserName: admin
ActiveTabID: 59
ActiveTabName: Docs
RawURL: /Docs.aspx?Command=Core_Edit&EntryId=6915
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer: http://intranet/Docs.aspx...re_Edit&EntryId=6915
UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; OfficeLiveConnector.1.4; OfficeLivePatch.1.3)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 8dcdc225-6f1d-40de-a332-2e8fce2e695e
InnerException: Failed to convert parameter value from a Int64 to a Int32.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: System.Convert.ToInt32
StackTrace:
Message: DotNetNuke.Services.Exceptions.ModuleLoadException: Failed to convert parameter value from a Int64 to a Int32. ---> System.OverflowException: Failed to convert parameter value from a Int64 to a Int32. ---> System.OverflowException: Value was either too large or too small for an Int32. at System.Convert.ToInt32(Int64 value) at System.Int64.System.IConvertible.ToInt32(IFormatProvider provider) at System.Convert.ChangeType(Object value, Type conversionType, IFormatProvider provider) at System.Data.SqlClient.SqlParameter.CoerceValue(Object value, MetaType destinationType) --- End of inner exception stack trace --- at System.Data.SqlClient.SqlParameter.CoerceValue(Object value, MetaType destinationType) at System.Data.SqlClient.SqlParameter.GetCoercedValue() at System.Data.SqlClient.SqlParameter.Validate(Int32 index, Boolean isCommandProc) at System.Data.SqlClient.SqlCommand.SetUpRPCParameters(_SqlRPC rpc, Int32 startCount, Boolean inSchema, SqlParameterCollection parameters) at System.Data.SqlClient.SqlCommand.BuildRPC(Boolean inSchema, SqlParameterCollection parameters, _SqlRPC& rpc) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(SqlConnection connection, CommandType commandType, String commandText, SqlParameter[] commandParameters) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(String connectionString, CommandType commandType, String commandText, SqlParameter[] commandParameters) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(String connectionString, String spName, Object[] parameterValues) at Bring2mind.DNN.Modules.DMX.Data.SqlDataProvider.UpdateEntry(Int32 EntryId, Boolean BypassTriggers, String Author, Int32 CollectionId, DateTime Created, Boolean Deleted, String Entry, String EntryType, Int64 FileSize, Boolean InheritAttributes, Boolean IsApproved, String Keywords, Int32 LastVersionId, Int32 LockedBy, DateTime LockedUntil, Guid LockKey, String MD5Hash, String OriginalFileName, Int32 Owner, String Path, Boolean PermissionsOnlyByAdmin, Int32 PortalId, String State, Int32 StorageProviderID, Int32 Version, Int32 VersionsToKeep, String WorkflowId) at Bring2mind.DNN.Modules.DMX.Business.EntriesController.UpdateEntry(EntryInfo objEntry, Boolean IncludeMultiTexts, Boolean UpdatePermissions, Boolean UpdateAttributes, Boolean UpdateCategories, Boolean BypassTriggers) at Bring2mind.DNN.Modules.DMX.Business.EntriesController.UpdateEntry(EntryInfo objEntry) at Bring2mind.DNN.Modules.DMX.Controls.EditEntry.ᜀ() at Bring2mind.DNN.Modules.DMX.Controls.EditEntry.DmxEditWizard_FinishButtonClick(Object sender, WizardNavigationEventArgs e) --- End of inner exception stack trace ---
Source:
Server Name: SVR-INET2
Bill
New Member
New Member
Posts:30


--
01/15/2010 5:24 AM
any feedback to this issue?
Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
01/16/2010 9:03 PM
I have not been able to replicate this yet. I have to add to that that I cannot get a good DNN 5.2.1 to install DMX on as there is a bug in DNN 5.2.1 which prevents me from uploading the module. As 5.2.2 (with a fix for this) should be out this coming week, I'll give that a try.

Peter
Bill
New Member
New Member
Posts:30


--
01/16/2010 9:11 PM
My DNN is 04.09.04 my DMX if 05.02.01 Nothing custom and this is a child portal
Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
01/16/2010 9:22 PM
Thanks Bill. I'll try it with 494.
Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
01/16/2010 9:47 PM
I may be on to something. I was able to replicate the logoff issue! Maybe it's all related to the same thing: child portals.

Peter
Bill
New Member
New Member
Posts:30


--
01/21/2010 1:48 AM
I get the same errors with 5.02.02
Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
01/22/2010 2:59 PM
Hi Bill,

Can you just check the column on DMX_Entries called FileSize? What type is it in the database? It should be bigint.

Peter
Bill
New Member
New Member
Posts:30


--
01/22/2010 3:18 PM
Yes- It is bigint
Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
01/25/2010 1:46 PM
Hi Bill,

Can you list the columns on DMX_Entries that are bigint in your database?

Peter
Bill
New Member
New Member
Posts:30


--
01/25/2010 2:23 PM
The only one is FileSize the rest are mostly int or bit
Kevin McCusker
New Member
New Member
Posts:6


--
01/26/2010 9:45 PM
We are experiencing this same issue in three of our clients' portals. In each case, the folder size is over 2GB.

We recently upgraded from version 3 to version 5. I ran the script to insert a new base folder for each portal, it ran successfully for all of our portals. But, I cannot modify/update the "New Base Folder" on these three clients without getting the overflow error.

In DMX_Entries, FileSize is bigint.
Our DNN version is 4.9.5
DMX version 5.2.2

If you need more information Peter, let me know.
Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
01/26/2010 10:43 PM
OK, let me see if I can replicate that. That might be the clue.

Peter
Kevin McCusker
New Member
New Member
Posts:6


--
01/26/2010 11:15 PM
Peter,

I sent you an email, but I wanted to follow up here as well. The fix you suggested in the email worked and I am able to update my clients' folders.

Thank you for the fast response and support!
Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
01/27/2010 12:20 AM
Hi guys,

OK, I think I'm onto something. It looks like there is a connection with FileSize after all (2 Gb in Kevin's post was a giveaway as that is roughly the maximum nr that can be stored in an Int32). I have not traced it to the exact location however. I can't access Kevin's system and I can't reproduce locally. So if any of you can grant me some access I'd be grateful.

Details: there is a trigger on DMX_Entries that runs a few SPROCs after update/insert. One of these SPROCS calculates the folder sizes for parent folders. It's either something to do with this or with the size itself.

Peter
Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
01/27/2010 12:38 AM
Found it!! Please run this and you should be fine. The SPROCS had INT on FileSize.

IF EXISTS (select * from dbo.sysobjects where id = object_id(N'{databaseOwner}{objectQualifier}DMX_AddEntry') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
DROP PROCEDURE {databaseOwner}{objectQualifier}DMX_AddEntry
GO

CREATE PROCEDURE {databaseOwner}{objectQualifier}DMX_AddEntry
@Author NVARCHAR(500),
@CollectionId Int,
@Created DateTime,
@Deleted Bit,
@Entry NVARCHAR(2000),
@EntryType NVARCHAR(150),
@FileSize BIGINT,
@InheritAttributes Bit,
@IsApproved Bit,
@Keywords NVARCHAR(255),
@LastVersionId Int,
@LockedBy Int,
@LockedUntil DateTime,
@LockKey uniqueidentifier,
@MD5Hash NVARCHAR(50),
@OriginalFileName NVARCHAR(255),
@Owner Int,
@Path NVARCHAR(4000),
@PermissionsOnlyByAdmin Bit,
@PortalId Int,
@State NVARCHAR(50),
@StorageProviderID INT,
@Version Int,
@VersionsToKeep Int,
@WorkflowId NVARCHAR(50)
AS

INSERT INTO {databaseOwner}{objectQualifier}DMX_Entries (
[Author],
[CollectionId],
[Created],
[Deleted],
[Entry],
[EntryType],
[FileSize],
[InheritAttributes],
[IsApproved],
[Keywords],
[LastVersionId],
[LockedBy],
[LockedUntil],
[LockKey],
[MD5Hash],
[OriginalFileName],
[Owner],
[Path],
[PermissionsOnlyByAdmin],
[PortalId],
[State],
[StorageProviderID],
[Version],
[VersionsToKeep],
[WorkflowId]
) VALUES (
@Author,
@CollectionId,
@Created,
@Deleted,
@Entry,
@EntryType,
@FileSize,
@InheritAttributes,
@IsApproved,
@Keywords,
@LastVersionId,
@LockedBy,
@LockedUntil,
@LockKey,
@MD5Hash,
@OriginalFileName,
@Owner,
@Path,
@PermissionsOnlyByAdmin,
@PortalId,
@State,
@StorageProviderID,
@Version,
@VersionsToKeep,
@WorkflowId
)

select SCOPE_IDENTITY()
GO


IF EXISTS (select * from dbo.sysobjects where id = object_id(N'{databaseOwner}{objectQualifier}DMX_UpdateEntry') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
DROP PROCEDURE {databaseOwner}{objectQualifier}DMX_UpdateEntry
GO

CREATE PROCEDURE {databaseOwner}{objectQualifier}DMX_UpdateEntry
@EntryId Int,
@BypassTriggers BIT,
@Author NVARCHAR(500),
@CollectionId Int,
@Created DateTime,
@Deleted Bit,
@Entry NVARCHAR(2000),
@EntryType NVARCHAR(150),
@FileSize BIGINT,
@InheritAttributes Bit,
@IsApproved Bit,
@Keywords NVARCHAR(255),
@LastVersionId Int,
@LockedBy Int,
@LockedUntil DateTime,
@LockKey uniqueidentifier,
@MD5Hash NVARCHAR(50),
@OriginalFileName NVARCHAR(255),
@Owner Int,
@Path NVARCHAR(4000),
@PermissionsOnlyByAdmin Bit,
@PortalId Int,
@State NVARCHAR(50),
@StorageProviderID INT,
@Version Int,
@VersionsToKeep Int,
@WorkflowId NVARCHAR(50)
AS

IF @BypassTriggers=1
DISABLE TRIGGER {databaseOwner}{objectQualifier}DMX_EntryUpdatePath ON {databaseOwner}{objectQualifier}DMX_Entries;
UPDATE {databaseOwner}{objectQualifier}DMX_Entries SET
[Author] = @Author,
[CollectionId] = @CollectionId,
[Created] = @Created,
[Deleted] = @Deleted,
[Entry] = @Entry,
[EntryType] = @EntryType,
[FileSize] = @FileSize,
[InheritAttributes] = @InheritAttributes,
[IsApproved] = @IsApproved,
[Keywords] = @Keywords,
[LastVersionId] = @LastVersionId,
[LockedBy] = @LockedBy,
[LockedUntil] = @LockedUntil,
[LockKey] = @LockKey,
[MD5Hash] = @MD5Hash,
[OriginalFileName] = @OriginalFileName,
[Owner] = @Owner,
[Path] = @Path,
[PermissionsOnlyByAdmin] = @PermissionsOnlyByAdmin,
[PortalId] = @PortalId,
[State] = @State,
[StorageProviderID]=@StorageProviderID,
[Version] = @Version,
[VersionsToKeep] = @VersionsToKeep,
[WorkflowId] = @WorkflowId
WHERE
[EntryId] = @EntryId;
IF @BypassTriggers=1
ENABLE TRIGGER {databaseOwner}{objectQualifier}DMX_EntryUpdatePath ON {databaseOwner}{objectQualifier}DMX_Entries;

GO



David Havenridge
New Member
New Member
Posts:4


--
01/27/2010 4:44 PM
That fixed it! Thanks.
You are not authorized to post a reply.