I have Dupeblocker installed in one of the sandbox and in Production. Using Ant script I am pushing the metadata from Sandbox to Production I am getting following error though I am not including this trigger in my package.xml file.
System.QueryException: List has no rows for assignment to SObject
Stack Trace: (CRMfusionDBR101) Class.DB_Custom_Case_c.testTrigger: line 7, column 1
I have Same scenario created in Production Org also. I don't know how to push my metadata. In my production org I don't have any records for this object created.
The Trigger which is created by Dupeblocker:
@isTest private without sharing class DB_Custom_Case_c
{
@isTest (SeeAllData=true)
private static void testTrigger()
{
CRMfusionDBR101.DB_Globals.triggersDisabled = true;
sObject testData = CRMfusionDBR101.DB_TriggerHandler.createTestData( Case_Cont__c.getSObjectType() );
Test.startTest();
insert testData;
update testData;
CRMfusionDBR101.DB_Globals.generateCustomTriggerException = true;
update testData;
delete testData;
Test.stopTest();
}
}