Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Monday, July 7, 2025 
 
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: Failed to parse SQL
Georgiy.Celovansky
Posts: 13
 
Failed to parse SQLYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 28 Jul 10 6:51 AM
I've tried

set objCon = Application.GetNewConnection
Contact=Application.BasicFunctions.CurrentContactID
objCon.Execute("insert into abu_notifications(contactid,kind,nday,period,lang) values('C6UJ9A000DV6','1',to_date('20100727','yyyymmdd'),'1','ua')")

and I have error "Failed to parse SQL"

If I tried to execute this SQL string direct on server via toad everything is fine.

In SLXProfiler I found two error message

Failed to parse SQL. (SQL: "{ call insert into abu_notifications(contactid,kind,nday,period,lang) values('C6UJ9A000DV6','1',to_date('20100727','yyyymmdd'),'1','sdfsf') }")

and

Failed to parse SQL. (SQL: "select * from insert into abu_notifications(contactid,kind,nday,period,lang) values('C6UJ9A000DV6','1',to_date('20100727','yyyymmdd'),'1','sdfsf')")

And I can't understand why in 1st script SLX added "call" and what is purpose of second script
[Reply][Quote]
Leon Gort
Posts: 127
 
Re: Failed to parse SQLYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 29 Jul 10 12:31 AM
you should try using the below method

http://www.slxdeveloper.com/page.aspx?id=35&articleid=76
[Reply][Quote]
Georgiy.Celovansky
Posts: 13
 
Re: Failed to parse SQLYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 29 Jul 10 1:28 AM
Thx,

it works and really much better than using sql statement
[Reply][Quote]
Vitaly Lidov
Posts: 5
 
Re: Failed to parse SQLYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 29 Jul 10 9:24 AM
to_date is not a function in SQL.
Use Cast or Convert
[Reply][Quote]
Georgiy.Celovansky
Posts: 13
 
Re: Failed to parse SQLYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 29 Jul 10 9:28 AM
we are using oracle

actually I've already fixed problem, but anyway thanks
[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 © 2025 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): 7/7/2025 12:49:18 PM