You need to sign in to do that
Don't have an account?
Weetz
Total time: 4 seconds
ANT - cannot delete trigger in production
I do not seem to be able to delete a trigger from production using the ANT tool. I get the following error:
C:\Documents and Settings\rogerh\My Documents\SFDC-APEX>ant delete
Buildfile: build.xml
Buildfile: build.xml
delete:
[sf:compileAndTest] compileAndTest on https://www.salesforce.com/services/Soap/u/10.0, compiling 0 classes and 0 triggers, deleting 0 classes and 1 triggers
[sf:compileAndTest] compileAndTest on https://www.salesforce.com/services/Soap/u/10.0, compiling 0 classes and 0 triggers, deleting 0 classes and 1 triggers
BUILD FAILED
C:\Documents and Settings\rogerh\My Documents\SFDC-APEX\build.xml:17: Failed:
Failed to delete trigger SetLeadCallCount: Not found for delete 'SetLeadCallCount'
C:\Documents and Settings\rogerh\My Documents\SFDC-APEX\build.xml:17: Failed:
Failed to delete trigger SetLeadCallCount: Not found for delete 'SetLeadCallCount'
Total time: 4 seconds
My build.xml file includes:
<!-- Cleans up above. (Deletes can be combined with compiles.) -->
<target name="delete">
<sf:compileAndTest username="${sf.username}" password="${sf.password}" server="${sf.serverurl}" apiversion="10.0">
<deleteTrigger>SetLeadCallCount</deleteTrigger>
<target name="delete">
<sf:compileAndTest username="${sf.username}" password="${sf.password}" server="${sf.serverurl}" apiversion="10.0">
<deleteTrigger>SetLeadCallCount</deleteTrigger>
</sf:compileAndTest>
</target>
</target>
I called SFDC support and was told that ANT is not supported, although right on the page in Setup->App Setup->Deploy-> Tools it says:
Salesforce-Supported Tools
Apex Deployment Tool A Java/ANT-based command line utility for scripted deployment of Apex code.
Is anyone else having this problem? My kluge workaround was to basically have the trigger do nothing and redeploy it. I really want to remove it altogether.
The trigger really is called SetLeadCallCount, right? No typos, case-sensitivity issues, etc. in there?
Just looking for Occam's Razor.
Message Edited by werewolf on 06-02-2008 07:01 PM