Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Friday, November 22, 2024 
 
slxdeveloper.com Community Forums  
   
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
 Architect Forums - SalesLogix Scripting & Customization
Forum to discuss writing script in Architect plugins for SalesLogix & general SalesLogix customization topics (for Windows client only). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Scripting & Customization | New ThreadView:  Search:  
 Author  Thread: Date Issue
Matthew Rose
Posts: 12
 
Date IssueYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 01 Oct 15 7:20 AM

 



Guys,


We are in the middle of migrating our SLX 7.5 data instance and we have come across a issue that has us stumped;


Previously working scripts are now resulting in error;


Msg 242, Level 16, State 3, Line 1
The conversion of a varchar data type to a datetime data type resulted in an out-of-range value.



This only presents itself when we are entering a date such as 17/02/1946; From the SQL trace it is running;


SELECT A1.CONTACTID, A1.MOBILE, A1.FIRSTNAME, A1.LASTNAME, A1.ACCOUNT, A1.USERFIELD9, A1.BIRTHDAY, (isNull(A2.CITY,'') + ', ' + isNull(A2.STATE,'') + ' ' + isNull(A2.POSTALCODE,'')) A2_CITYSTZIP, A1.WORKPHONE, A2.POSTALCODE A2_POSTALCODE, A1.EMAIL, A2.ADDRESS1 A2_ADDRESS1, A1.ACCOUNTMANAGERID, A1.WEBADDRESS, A1.WEBADDRESS2, (isNull(A1.LastName,'') + ', ' + isNull(A1.FirstName,'')) NAMELF16,A2.ADDRESSID FROM CONTACT A1 INNER JOIN ADDRESS A2 ON (A1.ADDRESSID=A2.ADDRESSID) 
Where A1.BIRTHDAY = '1945-17-02' and A1.LASTNAME like 'R%'


This works fine on our existing setup 2005 server / SQL2008, but when it is run on our new instance Connection manager running on seperate box (2008) and SQL2008, it fails..


Anyone got any ideas???


[Reply][Quote]
Lee Harris
Posts: 23
 
Re: Date IssueYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 01 Oct 15 7:39 AM

Hi Matthew,


Does this work when entering a date such as 12/02/1946?


If so, it may be the region settings on the new box causing the issues. For example a UK date of 17/02/1946 will not work if querying US region as it will consider the 17 to be the month part (have encountered this myself several times).


Lee

[Reply][Quote]
Matthew Rose
Posts: 12
 
Re: Date IssueYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 01 Oct 15 8:13 AM

Thanks


When you say the new box, are we talking the SQL box or the box with the SLX Connection Manager on?


We are sure that both are correctly set (UK) English.


Matt


 

[Reply][Quote]
Lee Harris
Posts: 23
 
Re: Date IssueYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 01 Oct 15 8:17 AM

Hi Matt,


I would check both to be sure but I would expect to be the SQL box. Are you able to test a date with a day value of 12 or less? If this doesn't work either then its probably not a region issue.


Lee

[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2024 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 11/22/2024 10:00:02 AM