2016-12-06 17:27:53,517 [11027223] INFO - lij.diagnostic.DebugLogManager - Set DEBUG for the following categories: #com.illuminatedcloud.intellij.builder.ForceComBuilder, #com.illuminatedcloud.intellij.builder.ForceComToolingApiDeployer, #com.illuminatedcloud.intellij.builder.ForceComMetadataApiDeployer 2016-12-06 17:28:13,674 [11047380] DEBUG - tellij.builder.ForceComBuilder - Checking whether this is a single item static resource or Lightning bundle file deployment using the Tooling API. 2016-12-06 17:28:13,674 [11047380] DEBUG - der.ForceComToolingApiDeployer - Deploying ContactTriggerHandler to ENERGY STAR - Dev 2016-12-06 17:28:13,680 [11047386] DEBUG - der.ForceComToolingApiDeployer - Using the tooling API to deploy the following files for module salesforce-web: { ContactTriggerHandler.cls }. 2016-12-06 17:28:13,680 [11047386] DEBUG - der.ForceComToolingApiDeployer - Checking for conflicts. 2016-12-06 17:28:13,839 [11047545] DEBUG - tellij.builder.ForceComBuilder - Comparing local to server timestamps for classes/ContactTriggerHandler.cls: 2016-12-06 17:28:13,839 [11047545] DEBUG - tellij.builder.ForceComBuilder - lastDeployedDate = Tue Dec 06 17:05:35 EST 2016 2016-12-06 17:28:13,839 [11047545] DEBUG - tellij.builder.ForceComBuilder - serverLastModifiedDate = Tue Dec 06 17:05:35 EST 2016 2016-12-06 17:28:13,839 [11047545] DEBUG - tellij.builder.ForceComBuilder - localLastModifiedDate = Mon Dec 05 09:40:07 EST 2016 (raw) 2016-12-06 17:28:13,839 [11047545] DEBUG - tellij.builder.ForceComBuilder - localLastModifiedDate = Mon Dec 05 09:40:06 EST 2016 (adjusted) 2016-12-06 17:28:13,839 [11047545] DEBUG - der.ForceComToolingApiDeployer - Creating any missing metadata before saving with the Tooling API. 2016-12-06 17:28:14,127 [11047833] DEBUG - der.ForceComToolingApiDeployer - Using the tooling API to create the following missing metadata for module salesforce-web: ContactTriggerHandler.cls. 2016-12-06 17:28:14,127 [11047833] DEBUG - der.ForceComToolingApiDeployer - Deploying ContactTriggerHandler to ENERGY STAR - Dev 2016-12-06 17:28:14,127 [11047833] INFO - der.ForceComToolingApiDeployer - Using the tooling API to create ApexClass ContactTriggerHandler. 2016-12-06 17:28:14,134 [11047840] DEBUG - der.ForceComToolingApiDeployer - Sending REST request body to https://us-epa--Dev.cs32.my.salesforce.com/services/data/v38.0/tooling/sobjects/ApexClass: {"body":"public class ContactTriggerHandler implements TriggerHandlerInterface {\n // Allows unit tests (or other code) to disable this trigger for the transaction\n public static Boolean TriggerDisabled \u003d false;\n\n // Utility methods/functions class\n PublicUtils publicUtils \u003d new PublicUtils();\n\n public Boolean IsDisabled() {\n // Custom Settings override any run-time values\n if (Application_Settings__c.getInstance().Disable_All_Triggers__c \u003d\u003d true) {\n return true;\n\n }\n else {\n return TriggerDisabled;\n\n }\n\n }\n\n public void BeforeInsert(List\u003cSObject\u003e newRecordList) {\n for (Contact record : (List\u003cContact\u003e)newRecordList){\n record.Individual_Full_Name__c \u003d (record.FirstName + \u0027 \u0027 + record.LastName).trim();\n\n }\n\n }\n\n public void AfterInsert(Map\u003cId, SObject\u003e newRecordMap) {\n List\u003cId\u003e contactIds \u003d new List\u003cId\u003e();\n for (Contact record : (List\u003cContact\u003e)newRecordMap.values()){\n contactIds.add(record.AccountId);\n }\n\n completeAddContactTask(contactIds);\n }\n\n public void BeforeUpdate(Map\u003cId, SObject\u003e newRecordMap, Map\u003cId, SObject\u003e oldRecordMap) {\n for (Id key : newRecordMap.keySet()){\n Contact record \u003d (Contact)newRecordMap.get(key);\n Contact oldRecord \u003d (Contact)oldRecordMap.get(key);\n\n record.Individual_Full_Name__c \u003d (record.FirstName + \u0027 \u0027 + record.LastName).trim();\n\n }\n\n }\n\n public void AfterUpdate(Map\u003cId, SObject\u003e newRecordMap, Map\u003cId, SObject\u003e oldRecordMap) {}\n\n public void BeforeDelete(Map\u003cId, SObject\u003e oldRecordMap) {}\n\n public void AfterDelete(Map\u003cId, SObject\u003e oldRecordMap) {}\n\n public void AfterUndelete(Map\u003cId, SObject\u003e oldRecordMap) {}\n\n public void completeAddContactTask(List\u003cId\u003e contactIds){\n List\u003cTask\u003e tasks \u003d [\n SELECT\n Id,\n Status\n FROM Task\n WHERE\n Type \u003d :TaskType.ADD_CONTACT\n AND WhatId IN :contactIds\n ];\n if (!tasks.isEmpty()){\n for (Task task : tasks){\n task.Status \u003d TaskType.COMPLETED_STATUS;\n }\n update tasks;\n }\n }\n}","name":"ContactTriggerHandler"} 2016-12-06 17:28:15,678 [11049384] DEBUG - der.ForceComToolingApiDeployer - Received unexpected response status code 400 != 201. 2016-12-06 17:28:15,678 [11049384] DEBUG - der.ForceComToolingApiDeployer - Response body: [{"message":"duplicate value found: duplicates value on record with id: ","errorCode":"DUPLICATE_VALUE","fields":[]}] 2016-12-06 17:28:15,693 [11049399] DEBUG - der.ForceComToolingApiDeployer - Extracting errorCode and message from response body: {message=duplicate value found: duplicates value on record with id: , errorCode=DUPLICATE_VALUE, fields=[]} 2016-12-06 17:28:15,694 [11049400] WARN - der.ForceComToolingApiDeployer - Failures when trying to create missing metadata. Aborting deployment.