You need to sign in to do that
Don't have an account?
Bobby Knezevic
Metadata API throwing Error: limit exceeded when deploying custom Case fields
When deploying custom Case fields to one of our sandboxes, the Metadata API is returning Error: limit exceeded failures on all custom fields defined in Case.object. Here is a portion of the build failure output:
[sf:deploy]
*********** DEPLOYMENT FAILED ***********
Request ID: xxx
All Component Failures:
1. objects/Case.object (Case.OC_Project_Due_Date__c) -- Error: limit exceeded (line 3594, column 13)
2. objects/Case.object (Case.Omni_Data_Uploaded_Allocations__c) -- Error: limit exceeded (line 3642, column 13)
3. objects/Case.object (Case.Omni_Data_Uploaded_Assets__c) -- Error: limit exceeded (line 3653, column 13)
4. objects/Case.object (Case.Omni_Data_Uploaded_Characteristics__c) -- Error: limit exceeded (line 3664, column 13)
5. objects/Case.object (Case.Omni_Data_Uploaded_Historical__c) -- Error: limit exceeded (line 3675, column 13)
6. objects/Case.object (Case.Omni_Data_Uploaded_Holdings__c) -- Error: limit exceeded (line 3686, column 13)
7. objects/Case.object (Case.Omni_Data_Uploaded_Performance__c) -- Error: limit exceeded (line 3697, column 13)
8. objects/Case.object (Case.Omni_Data_Uploaded_Personnel__c) -- Error: limit exceeded (line 3708, column 13)
.....
I checked the 'Limits' section for the Case object and it states we're using 2% of our custom Case field allocation (i.e. 15 of 800).
I've confirmed that there are no custom fields in the custom Case field recycle bin.
Anyone know if this is an underlying issue with Salesforce? Refreshing or creating a new sandbox each time we run into this issue is not a good option for us whatsoever.
[sf:deploy]
*********** DEPLOYMENT FAILED ***********
Request ID: xxx
All Component Failures:
1. objects/Case.object (Case.OC_Project_Due_Date__c) -- Error: limit exceeded (line 3594, column 13)
2. objects/Case.object (Case.Omni_Data_Uploaded_Allocations__c) -- Error: limit exceeded (line 3642, column 13)
3. objects/Case.object (Case.Omni_Data_Uploaded_Assets__c) -- Error: limit exceeded (line 3653, column 13)
4. objects/Case.object (Case.Omni_Data_Uploaded_Characteristics__c) -- Error: limit exceeded (line 3664, column 13)
5. objects/Case.object (Case.Omni_Data_Uploaded_Historical__c) -- Error: limit exceeded (line 3675, column 13)
6. objects/Case.object (Case.Omni_Data_Uploaded_Holdings__c) -- Error: limit exceeded (line 3686, column 13)
7. objects/Case.object (Case.Omni_Data_Uploaded_Performance__c) -- Error: limit exceeded (line 3697, column 13)
8. objects/Case.object (Case.Omni_Data_Uploaded_Personnel__c) -- Error: limit exceeded (line 3708, column 13)
.....
I checked the 'Limits' section for the Case object and it states we're using 2% of our custom Case field allocation (i.e. 15 of 800).
I've confirmed that there are no custom fields in the custom Case field recycle bin.
Anyone know if this is an underlying issue with Salesforce? Refreshing or creating a new sandbox each time we run into this issue is not a good option for us whatsoever.
Bobby,
What Salesforce edition is your organization on? It could be that you're hitting a different limit other than the number of custom fields on an object. Potential other limits you could be hitting are:
- Total number of custom fields in your org (http://resources.docs.salesforce.com/198/16/en-us/sfdc/pdf/salesforce_app_limits_cheatsheet.pdf)
- Total number of API requests (I suspect this would be a different "API REQUEST LIMIT EXCEEDED" kind of error, but who knows
- Storage size exceeded (Check your company profile to find out what your current storage is at)
- Some other error :)
Also, I see different lines added in your failure list. Is there a trigger or apex class (or maybe java class?) that these coincide with?As noted in my original post, we're using 15 of the 800 allocated custom Case fields. API usage is at 870 of 5,000,000. This doesn't have anything to do with storage size as we're not not loading data, but just defining metadata. Some other error is likely the scenario. This is very troubling for us under the circumstances. =(