Register   Login
     
  Latest Posts  
Recently created articles are not shown in list
by atriage on 3/19/2010 11:18 AM
RE: News Articles Tokens
by spirit on 3/19/2010 10:43 AM
Author post count and link in listing.item.html
by mattbunce on 3/19/2010 10:18 AM
RE: News Article Detail and Lightbox
by spirit on 3/19/2010 10:12 AM
RE: News Article Detail and Lightbox
by ray-isc on 3/19/2010 9:49 AM
Using custom profile properties with [AUTHOR:XXX]
by mattbunce on 3/19/2010 9:34 AM
RE: NA Latest - Template question
by Blondie on 3/19/2010 9:23 AM
skin disfigured after click on article link
by jsw on 3/19/2010 9:11 AM
Format of Image popup in Detail view
by spirit on 3/19/2010 7:58 AM
Missing CSS for latest albums
by mattbunce on 3/19/2010 7:23 AM
  Forums  
Subject: "Property Agent is currently unavailable" error on sort by date
Prev Next
You are not authorized to post a reply.

Author Messages
anna tarrantUser is Offline
Gold Membership
Ventrian Addict
Ventrian Addict
Posts:82

5/07/2009 1:25 AM  

Hi Scott,

I'm getting an error everytime we try to sort by date.  Our custom field is set to 'one line text' with a validation of 'date'.  I believe this is correct...

This is the error (on user sort or default sort settings):

Error: Property Agent is currently unavailable.
DotNetNuke.Services.Exceptions.ModuleLoadException: Arithmetic overflow error converting expression to data type datetime. The statement has been terminated. ---> System.Data.SqlClient.SqlException: Arithmetic overflow error converting expression to data type datetime. The statement has been terminated. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) at System.Data.SqlClient.SqlDataReader.ConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) 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.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteReader(SqlConnection connection, SqlTransaction transaction, CommandType commandType, String commandText, SqlParameter[] commandParameters, SqlConnectionOwnership connectionOwnership) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteReader(String connectionString, CommandType commandType, String commandText, SqlParameter[] commandParameters) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteReader(String connectionString, String spName, Object[] parameterValues) at Ventrian.PropertyAgent.SqlDataProvider.ListProperty(Int32 moduleID, Int32 propertyTypeID, Int32 status, Int32 authorID, Int32 brokerID, Boolean isActive, Boolean isPending, Boolean isExpired, Boolean showFeaturedOnly, Int32 sortBy, Int32 sortByID, Int32 sortByIDType, Int32 sortOrder, String customFieldIDs, String searchValues, Int32 pageNumber, Int32 pageSize, Boolean bubbleFeatured, Boolean searchSubTypes, Int32 propertyIDForNextPrev, Double latitude, Double longitude, DateTime startDate) at Ventrian.PropertyAgent.PropertyController.List(Int32 moduleID, Int32 propertyTypeID, SearchStatusType status, Int32 authorID, Int32 brokerID, Boolean showFeaturedOnly, SortByType sortBy, Int32 sortByID, SortDirectionType sortOrder, String customFieldIDs, String searchValues, Int32 pageNumber, Int32 pageSize, Int32& totalRecords, Boolean bubbleFeatured, Boolean searchSubTypes, Int32 propertyIDForNextPrev, Int32& typePosition, Double latitude, Double longitude, DateTime startDate) at Ventrian.PropertyAgent.PropertyController.List(Int32 moduleID, Int32 propertyTypeID, SearchStatusType status, Int32 authorID, Int32 brokerID, Boolean showFeaturedOnly, SortByType sortBy, Int32 sortByID, SortDirectionType sortOrder, String customFieldIDs, String searchValues, Int32 pageNumber, Int32 pageSize, Int32& totalRecords, Boolean bubbleFeatured, Boolean searchSubTypes, Int32 propertyIDForNextPrev, Int32& typePosition) at Ventrian.PropertyAgent.ViewType.BindProperty() at Ventrian.PropertyAgent.ViewType.Page_Initialization(Object sender, EventArgs e) --- End of inner exception stack trace ---


Anna Tarrant | Website Design Hampshire, Web Design Hampshire UK | www.meoncreative.com
Scott McCullochUser is Offline
Administrators
Ventrian Master
Ventrian Master
Posts:17204


5/07/2009 7:10 AM  
This error happens when there is something in that field that is not a date. Was there anything previously loaded in the field? Was it always validating against date?

Scott McCulloch
Site Administrator
anna tarrantUser is Offline
Gold Membership
Ventrian Addict
Ventrian Addict
Posts:82

5/18/2009 3:00 AM  

Hi Scott,

That's what I thought.... so, I completely removed all the properties and re-entered them all using the date calendar - just in case i missed any last time - however it is still not working.

Is there anything else?  All the other sorts work fine, just not the date. 

Yes it has always been validated against date.  I also just upgraded as I saw a sort fix in the latest release but it's still not working.

Any help much appreciated.


Regards,

Anna

 


Anna Tarrant | Website Design Hampshire, Web Design Hampshire UK | www.meoncreative.com
Scott McCullochUser is Offline
Administrators
Ventrian Master
Ventrian Master
Posts:17204


5/18/2009 6:54 AM  
Hmm, it's still saying that it can't convert to date.

I would need to look at your database directly, did you load any data outside of the module?

Scott McCulloch
Site Administrator
anna tarrantUser is Offline
Gold Membership
Ventrian Addict
Ventrian Addict
Posts:82

5/20/2009 3:12 AM  
Hi Scott,

No data loaded in, and only 10 properties in the whole module at the moment.

I've sent you an email with a linka nd login to take a look...

Any help would be fantastic.

Thanks,

Anna

Anna Tarrant | Website Design Hampshire, Web Design Hampshire UK | www.meoncreative.com
Scott McCullochUser is Offline
Administrators
Ventrian Master
Ventrian Master
Posts:17204


5/20/2009 6:42 AM  
Thanks, I've got the details.

Scott McCulloch
Site Administrator
anna tarrantUser is Offline
Gold Membership
Ventrian Addict
Ventrian Addict
Posts:82

6/10/2009 6:14 AM  

Hi Scott,

We are still getting this error - even on the latest version.

I dont suppose you've had any thoughts on what may be cuasing this?

A critical error has occurred.
Arithmetic overflow error converting expression to data type datetime. The statement has been terminated.

Thanks,

Anna


Anna Tarrant | Website Design Hampshire, Web Design Hampshire UK | www.meoncreative.com
Scott McCullochUser is Offline
Administrators
Ventrian Master
Ventrian Master
Posts:17204


6/10/2009 8:01 AM  
Okay - if you can resend the details, I need to know the version of DNN, the custom field causing the issue and a superuser account (support@ventrian.com)

Scott McCulloch
Site Administrator
Andy DaveyUser is Offline
Gold Membership
Ventrian Newbie
Ventrian Newbie
Posts:9

6/28/2009 3:17 PM  

Hi Scott & Anna

I am encountering the same problem when sorting on date. The localisation for the portal is NZ which uses the same date format as UK eg, dd/mm/yyyy. I have found the problem only occures when there is a date in the list that cannot be read as US date format mm/dd/yyyy.

EG. When I add a record with a date for 20th August it is saved in db as 20/08/2009. When I sort on this field, there is an error. If I change the date to 12th August 12/08/2009, there is no error as I suspect the sorting reads it as 8th December.

Hope this helps you find a fix for this Scott.

Cheers

Andy

Scott McCullochUser is Offline
Administrators
Ventrian Master
Ventrian Master
Posts:17204


6/29/2009 7:51 AM  
Andy, can I take a look at your database? (support@ventrian.com), or can you send me a dump of your custom fields table.

Scott McCulloch
Site Administrator
You are not authorized to post a reply.
Forums > Modules > Property Agent > "Property Agent is currently unavailable" error on sort by date



ActiveForums 3.7