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

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and ListChanged Data Type URL to Download (oops...)Changed Data Type URL to Download (oops...)
Previous
 
Next
New Post
9/10/2006 2:07 AM
 

I just broke my UDT.  I changed the datatype of a field from URL to Download.  Now I can't change it back.  Anyone have any ideas?

(I know I should have backed up before doing it...  Lesson learned... )

 

Error Reported:

Error: Checking Journal is currently unavailable.
DotNetNuke.Services.Exceptions.ModuleLoadException: Input string was not in a correct format. ---> System.FormatException: Input string was not in a correct format. at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) at DotNetNuke.Modules.UserDefinedTable.DataTypeDownload.RenderValuesToHtmlInsideDataSet(DataSet ds, Int32 ModuleId) at DotNetNuke.Modules.UserDefinedTable.DataTypeController.RenderValuesToHtmlInsideDataSet(DataSet ds, Int32 ModuleId) at DotNetNuke.Modules.UserDefinedTable.UserDefinedTableController.GetDataSet(Int32 ModuleId, PortalModuleBase ParentModule, Boolean WithPreRenderedValues) at DotNetNuke.Modules.UserDefinedTable.UserDefinedTable.BindData() at DotNetNuke.Modules.UserDefinedTable.UserDefinedTable.Page_Load(Object sender, EventArgs e) --- End of inner exception stack trace ---


  

Unhandled error loading module.
DotNetNuke.Services.Exceptions.ModuleLoadException: Unhandled Error Adding Module to TopPane ---> System.FormatException: Input string was not in a correct format. at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) at DotNetNuke.Modules.UserDefinedTable.DataTypeDownload.RenderValuesToHtmlInsideDataSet(DataSet ds, Int32 ModuleId) at DotNetNuke.Modules.UserDefinedTable.DataTypeController.RenderValuesToHtmlInsideDataSet(DataSet ds, Int32 ModuleId) at DotNetNuke.Modules.UserDefinedTable.UserDefinedTableController.GetDataSet(Int32 ModuleId, PortalModuleBase ParentModule, Boolean WithPreRenderedValues) at DotNetNuke.Modules.UserDefinedTable.UserDefinedTable.get_ModuleActions() at DotNetNuke.Entities.Modules.PortalModuleBase.LoadActions() at DotNetNuke.Entities.Modules.PortalModuleBase.get_Actions() at DotNetNuke.UI.Skins.Skin.ProcessActionControls(PortalModuleBase objPortalModuleBase, Control objContainer) at DotNetNuke.UI.Skins.Skin.InjectModule(Control objPane, ModuleInfo objModule, PortalSettings PortalSettings) --- End of inner exception stack trace ---

 
New Post
9/10/2006 5:11 AM
 

Sorry about this issue - it is right that changing the datatype from url to download is not supported. But this shouldn't stop you changing it back. Sadly the error is caused before the module actions are added and you have no chance to clean it up. I will look at the code to catch these kind of errors.

To repair your UDT, please make a backup of your database, login as host, select run sql and execute the follwing SQL statement as script:

UPDATE {databaseOwner}[{objectQualifier}UserDefinedFields]
SET FieldType = 'URL'
FROM {databaseOwner}[{objectQualifier}UserDefinedData] INNER JOIN
{databaseOwner}[{objectQualifier}UserDefinedFields] ON {databaseOwner}[{objectQualifier}UserDefinedData].UserDefinedFieldId = {databaseOwner}[{objectQualifier}UserDefinedFields].UserDefinedFieldId
WHERE ({databaseOwner}[{objectQualifier}UserDefinedFields].FieldType = 'Download') AND (NOT ({databaseOwner}[{objectQualifier}UserDefinedData].FieldValue LIKE N'FileID=%'))

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and ListChanged Data Type URL to Download (oops...)Changed Data Type URL to Download (oops...)


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