You need to sign in to do that
Don't have an account?

This component depends on another component that is not included in this package.
Hi,
I'm converting an old unmanaged package into a new managed packaged and I am running into an issue. I have an S-Control named Checklist_New, shown here:
<html>
<head>
<script type="text/javascript" language="javascript" src="/soap/ajax/9.0/connection.js"></script>
<script type="text/javascript" language="javascript">
<!--
function init() {
// Call the 'new checklist' page and set the save URL to our custom populate SControl.
// Always set the return URL to the checklist view page.
// Request.CF00N70000001aCWA contains entity name, if called from the entity
if ('{!$Request.CF00N70000001aCWA}' != '') {
window.parent.location.href = "{!URLFOR($Action.Checklist__c.New, null, [CF00N70000001aCWA=$Request.CF00N70000001aCWA, saveURL=URLFOR($SControl.Checklist_Populate, null, [retURL=URLFOR($Request.retURL, null, null, true)]), retURL=URLFOR($Request.retURL, null, null, true)], true)}";
} else {
window.parent.location.href = "{!URLFOR($Action.Checklist__c.New, null, [saveURL=URLFOR($SControl.Checklist_Populate, null, [retURL=URLFOR($Request.retURL, null, null, true)]), retURL=URLFOR($Request.retURL, null, null, true)], true)}";
}
}
// -->
</script>
</head>
<body onLoad="init()">
<p> </p>
</body>
</html>
When I attempt to upload my package I get the following error:
Component Type Name Problem
Custom S-Control Checklist New This component depends on another component that is not included in this package.
If I remove this S-Control from my package the upload is sucessful, but clearly this is not an option.
The S-Control Checklist_Populate and the Object Checklist__c are both included in the package by Checklist_New.
I can't seem to think of anything else it could possible be dependant on so I'm thinking something quirky is going on here...
Any ideas?
Thanks a lot,
Mike
The issue is caused by the inclusion of a salesforce ID in the body of the scontrol. The component that ID is pointing to is not in the package, which is why you are receiving this error. You should not include salesforce IDs in your scontrol as these are not stable from org to org. Thus your scontrol would most likely break in a subscriber's organization. Remove these ID references and then you should be able to upload the package.
CF00N70000001aCWA=$Request.CF00N70000001aCWA
Thanks,
I have a very similar problem with the following S-Control snippet. Can someone help?
Thanks
Bao-Long
Thanks for looking at my code.
No, I have not tried migrating to VF. This is a snippet S-Control which is used in at least 3 other S-controls. So switching to VF at this point would mean re-writing lots of code. I would rather not do that at this point if I can avoid it.
Hi,
I think I got an odd issue with the same topic. However, my message was as follow:
"This component depends on another component that is not included in this package. null"
Since the msg was not able to show me the depency name. I am totally scraching my head now. Thank you.
Regards,
John