+ Start a Discussion
Jim F.ax281Jim F.ax281 

INCLUDE function isn't working!

Hi,
 
I'm trying to install an S-Control that includes another S-Control.  I've never had an issue doing this in the past, but am now getting an error when I try to INCLUDE that control. 
 
I get no syntax errors when I use the following line of code:
{!$SControl.MyUtils}
 
However, this line of code gives the error Error: Field $SControl.MyUtils does not exist. Check spelling.:
{! INCLUDE($SControl.MyUtils)}
 
I've used this line of code numerous times, both on the Sandbox and in live implementations.  The only clue for me that this might be different is that this is in the Sandbox and is using Win08PreRe.  Can anybody help?
 
Thanks, Jim
dchasmandchasman
Jim,

Can you verify that the scontrol being referenced (MyUtils) is marked as a Snippet (oinly snippets can be included)?


Jim F.ax281Jim F.ax281
That was indeed the problem.  Thanks so much for your help.