Results 1 to 4 of 4

Thread: Converting datetime error

  1. #1
    worgi is offline Junior Member
    Join Date
    May 2008
    Posts
    3

    Default Converting datetime error

    I just upgraded to 5.0.0e from d. I am now getting the following error when trying to sync using Outlander and am struggling trying to pinpoint the problem. Hoping someone might have a suggestion or two of where to look. I do see the absence of a value for the where clauses though.

    Here is the Messages Error and the log:

    Processing modified Outlook call events...

    Exception caught: Client found response content type of 'text/html', but expected 'text/xml'.

    The request failed with the error message:
    --
    SQL Error : Conversion failed when converting datetime from character string.
    --.
    at System.Web.Services.Protocols.SoapHttpClientProtoc ol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
    at System.Web.Services.Protocols.SoapHttpClientProtoc ol.Invoke(String methodName, Object[] parameters)
    at SugarCRMTools.net.hereware.app1.SugarCrmWebService s.sugarsoap.set_entry(String session, String module_name, name_value[] name_value_list)
    at SugarCRMTools.Tools.addUpdateCrmItem(String moduleName, name_value[] fieldList)
    at Frijoles.CalendarService.updateCrmCalendarEvent(Ca lendarEventDO calEvent)
    at Frijoles.CalendarService.syncCalendarEvents(Status MessageHandler showStatusMessage, OverallProgressHandler updateOverallProgress)
    at Frijoles.Form1.PerformSync(StatusLabelHandler showStatusLabel, StatusMessageHandler showStatusMessage, OverallProgressHandler updateOverallProgress)

    ------------------------------------------------------------
    05/25/08 14:55:44,458 [5556] FATAL SugarCRM - Incorrect syntax near ')'.: SELECT meetings.id , meetings.id , meetings.name , meetings.description , meetings.date_end , meetings.location , meetings.date_start , meetings.duration_hours , meetings.duration_minutes , meetings.reminder_time , meetings.status , meetings.deleted , meetings.assigned_user_id , meetings.created_by FROM meetings where (meetings.id IN ) AND 1=1
    05/25/08 14:55:44,458 [5556] FATAL SugarCRM - SQL Server error: Incorrect syntax near ')'.
    05/25/08 14:55:46,275 [5556] FATAL SugarCRM - Incorrect syntax near ')'.: SELECT calls.id , calls.id , calls.name , calls.description , calls.date_end , calls.date_start , calls.duration_hours , calls.duration_minutes , calls.reminder_time , calls.status , calls.deleted , calls.assigned_user_id , calls.created_by FROM calls where (calls.id IN ) AND 1=1
    05/25/08 14:55:46,276 [5556] FATAL SugarCRM - SQL Server error: Incorrect syntax near ')'.

  2. #2
    franklin_sugar is offline Sugar Team Member
    Join Date
    Jun 2006
    Posts
    157

    Default Re: Converting datetime error

    Quote Originally Posted by worgi
    I am now getting the following error when trying to sync using Outlander
    Hi worgi,

    Are you using Sugar's Outlook plug-in? If yes, which version do you have?
    Also, can you share your environment with us? Like operating system, web server, database, and php version.

    Thanks,
    Franklin

  3. #3
    ptemplin7 is offline Sugar Community Member
    Join Date
    Jun 2007
    Location
    Puget Sound Washington
    Posts
    380

    Default Re: Converting datetime error

    I've run into this error as well.

    Sugar changed the datetime to Date type.

    My solution was to change the type in the DB from Varchar (25) to date.

    Sugar needs to be consistent here.

    Good luck, PAris

  4. #4
    harkenman is offline Member
    Join Date
    Jun 2008
    Location
    Ravensburg, Germany
    Posts
    8

    Default Re: Converting datetime error

    Quote Originally Posted by ptemplin7
    I've run into this error as well.

    Sugar changed the datetime to Date type.

    My solution was to change the type in the DB from Varchar (25) to date.

    Sugar needs to be consistent here.

    Good luck, PAris
    Hello.
    Which tables did you edit?

    Thank you.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Email IMAP SSL issue ( with error log )
    By clearlink in forum Help
    Replies: 16
    Last Post: 2009-11-16, 01:50 AM
  2. Query Failed: AND users.id = '1'::MySQL error 1064:
    By artco001 in forum Installation and Upgrade Help
    Replies: 63
    Last Post: 2009-05-07, 05:56 AM
  3. Replies: 0
    Last Post: 2007-08-08, 02:47 PM
  4. SQL Error : Conversion failed when converting datetime from character string.
    By default in forum Installation and Upgrade Help
    Replies: 1
    Last Post: 2007-07-12, 02:19 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •