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
RachnaRachna 

Errors coming while deploying using ANT Tool.....

Hi All,

I am trying to deploy a package from Sandbox to Production. In Production already some Apex classes(Say LoanTriggerTester,SavingsTriggerTester) are existing.

I am getting the following errors when I am trying to deploy it..

<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="ProgId" content="Word.Document"><meta name="Generator" content="Microsoft Word 11"><meta name="Originator" content="Microsoft Word 11">

C:\salesforce_ant\sample\build.xml:53: Failures:

Test failure, method: LoanTriggerTester.testLoanTransaction_BeforeInsert_AllInte

restPayment -- System.Exception: Assertion Failed: Expected: -8, Actual: null st

ack Class.LoanTriggerTester.testLoanTransaction_BeforeInsert_AllInterestPayment:

 line 134, column 9


<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="ProgId" content="Word.Document"><meta name="Generator" content="Microsoft Word 11"><meta name="Originator" content="Microsoft Word 11">

Test failure, method: SavingsTriggerTester.Contact_CascadeAccountToSavings -- Sy

stem.Exception: Assertion Failed: Expected: 0013000000NAPVeAAP, Actual: null sta

ck Class.SavingsTriggerTester.Contact_CascadeAccountToSavings: line 26, column 9


When I tried to deploy this package in my developer instance. It got deployed without any errors.


The Classes existing in Production is not required now.Even I tried to delete it through ANT Tool (Salesforce Migration tool)itself.

Then also its showing the same errors.



Vijay RautVijay Raut
You / Or somebuddy from your Org have to fix those errors (which you are getting in deployment / deletion) before performing any deployment on your Org.

Once you are sure that existing classes are working fine, you may delete them or go ahead with your deployment.

Cheers,
V.R.
RachnaRachna
Thanks for your reply. But I am not able to delete those classes from production which are causing this error.

When I am trying to delete it also its showing the same error. Is there any way to delete those classes without using Ant tool?






Message Edited by Rachna on 01-07-2009 12:07 AM