function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
softcloud2009softcloud2009 

Error on Deploy to Server using Eclipse IDE

All,

 

I have spent hours trying to deploy my triggers to the production org.

I create a testscript and everything is fine no error.

But when I tried to deploy, I received this error:

 

Unable to deploy Force.com components.

Reason: ZipException: Zip file must have at least one entry

 

Can anyone help me to solve this issue?

 

Also, where can I get a tutorial on deploying using ANT. I think ANT is easier to use than Eclipse.

 

Thanks.

JonPJonP

If you're more comfortable with Apache Ant, the Force.com Migration Tool Guide covers the Ant library in detail:

 

http://www.salesforce.com/us/developer/docs/daas/index.htm (link)

junaid_ajjunaid_aj

Hi

 

did you check your package.xml file

 

it should be like this

<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
    <types>
        <members>*</members>
        <name>ApexClass</name>
    </types>
    <types>
        <members>*</members>
        <name>ApexComponent</name>
    </types>
    <types>
        <members>*</members>
        <name>ApexPage</name>
    </types>
    <types>
        <members>*</members>
        <name>ApexTrigger</name>
    </types>
    <types>
        <members>*</members>
        <name>CustomObject</name>
    </types>
    <types>
        <members>*</members>
        <name>StaticResource</name>
    </types>
    <version>15.0</version>
</Package>

 

make sure that ApexTrigger is available there.

 

Hope this can help you.

 

if not please reply back.

 

Regards,

Mohammed Junaid

softcloud2009softcloud2009
Can I just deploy one trigger instead of the whole component using Ant? Because I just made changes to the one trigger, nothing else change.
junaid_ajjunaid_aj

Yes you can deploy either you remove all the attribute except the

<types>
        <members>*</members>
        <name>ApexTrigger</name>
    </types>

 

or second approach will be using eclipse ide.

 

right click on the Trigger and goto force.com-->Deploy to Server.

 

in this way you can acheive the Task.