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
dev_jhdev_jh 

Strange Eclipse Deployment error

Hi all,

 

I am getting a very strange error from Eclipse while trying to deploy Code from Sandbox to Live:

 

!MESSAGE WARN [2009-05-25 13:03:07,690] (DeploymentController.java:deployWork:940) - Deployment FAILED. Got the following deploy messages [10]: (1) filename = classes/TestCreacionCandidatosYAnunciantes.cls, result = SUCCESS, affect = changed, id = 01p200000002YrhAAE, fullname = TestCreacionCandidatosYAnunciantes (2) filename = objects/Account.object, result = SUCCESS, affect = changed, id = 00N20000001t0q6EAA, fullname = Account.ApellidosContacto__c (3) filename = objects/Account.object, result = SUCCESS, affect = changed, id = 00N20000001t0q7EAA, fullname = Account.NombreContacto__c (4) filename = objects/Account.object, result = SUCCESS, affect = changed, id = 00N20000001t0q8EAA, fullname = Account.Repeticiones__c (5) filename = objects/Account.object, result = SUCCESS, affect = none, id = 00N20000000itFrEAI, fullname = Account.Tel_fono_2__c (6) filename = objects/Lead.object, result = SUCCESS, affect = none, id = 00N20000001sz5iEAA, fullname = Lead.Repeticiones__c (7) filename = package.xml, result = SUCCESS, affect = changed, id = null, fullname = package.xml (8) filename = triggers/ComprobacionCandidatos.trigger, result = SUCCESS, affect = changed, id = 01q200000004fJEAAY, fullname = ComprobacionCandidatos (9) filename = triggers/PostInsertCuentas.trigger, result = SUCCESS, affect = changed, id = 01q200000004fJFAAY, fullname = PostInsertCuentas (10) filename = triggers/PreInsertCuentas.trigger, result = SUCCESS, affect = changed, id = 01q200000004fJGAAY, fullname = PreInsertCuentas

 

 As you can see, the log states there has been a problem but then shows 10 lines that all display success. Any ideas how I can find out what the problem is? (ie: a more verbose log?)

 

Best Answer chosen by Admin (Salesforce Developers) 
JonPJonP

Ignore the IDE system log file for now. What shows up in the Deploy to Server wizard, in the UI?  There's a more detailed deployment results log there (see the "View Log" button).

 

It's possible that all of the individual files were valid and their dependencies were met, but a higher level failure occurred, such as failing to satisfy the 75% test coverage requirements for Apex code being deployed to a production organization.

 

 

All Answers

JonPJonP

Ignore the IDE system log file for now. What shows up in the Deploy to Server wizard, in the UI?  There's a more detailed deployment results log there (see the "View Log" button).

 

It's possible that all of the individual files were valid and their dependencies were met, but a higher level failure occurred, such as failing to satisfy the 75% test coverage requirements for Apex code being deployed to a production organization.

 

 

This was selected as the best answer
dev_jhdev_jh

Thanks Jon. That did the trick, the error we can see now is:

 

System.DmlException: Insert failed. First exception on row 0; first error: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY, ComprobacionCandidatos: execution of BeforeInsert caused by: System.QueryException: Non-selective query against large object type (more than 100000 rows). Consider an indexed filter or contact salesforce.com about custom indexing. Even if a field is indexed a filter might still not be selective when: 1. The filter value includes null (for instance binding with a list that contains null) 2. Data skew exists whereby the number of matching rows is very large (for instance, filtering for a particular foreign key value that occurs many times)

 We requested 3rd line support to index 3 fields we need to query on Lead object (which has over 100K records). They created the index in 2 of them, I am guessing the issue is still happening because the 3rd index is missing.

 

Thanks,

 

J