• Nagaraju Mogili 7
  • NEWBIE
  • 0 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 7
    Questions
  • 1
    Replies

# Deploy Results:
   File Name:    objects/Case.object
   Full Name:  Case
   Action:  NO ACTION
   Result:  FAILED
   Problem: Error parsing file: Element {http://soap.sforce.com/2006/04/metadata}fields invalid at this location in type CustomField
<apex:page controller="NewController_cntrlr" sidebar="false" id="thepage" ShowHeader="false">
  <apex:form >
    <apex:pageBlock id="Thepage" title="Account Details">
       <apex:pageBlockSection collapsible="true">
          <apex:inputField value="{!acc.name}"/>
          <apex:inputField value="{!acc.rating}"/>
          <apex:inputField value="{!acc.AnnualRevenue}"/>
          <apex:inputField value="{!acc.Fax}"/>
          <apex:inputField value="{!acc.Industry}"/>
      </apex:pageBlockSection>
           <apex:pageBlockSection Title="Contact Details" >
              
              <apex:inputField label="Firstname" value="{!con.firstname}"/> 
              <apex:inputField label="Lastname" value="{!con.lastname}"/>
              <apex:inputField label="phone" value="{!con.phone}"/>
           </apex:pageBlockSection>   
    </apex:pageBlock>

  </apex:form>
</apex:page>.
====================================================
=======================================================

User-added image
 
 
Challenge Not yet complete... here's what's wrong: 
Setting 'Match_Billing_Address__c' to false updated the records anyway. The trigger should only act when Match_Billing_Address__c is true.
Create an Apex trigger for Account that matches Shipping Address Postal Code with Billing Address Postal Code based on a custom field.
For this challenge, you need to create a trigger that, before insert or update, checks for a checkbox, and if the checkbox field is true, sets the Shipping Postal Code (whose API name is ShippingPostalCode) to be the same as the Billing Postal Code (BillingPostalCode).
The Apex trigger must be called 'AccountAddressTrigger'.
The Account object will need a new custom checkbox that should have the Field Label 'Match Billing Address' and Field Name of 'Match_Billing_Address'. The resulting API Name should be 'Match_Billing_Address__c'.
With 'AccountAddressTrigger' active, if an Account has a Billing Postal Code and 'Match_Billing_Address__c' is true, the record should have the Shipping Postal Code set to match on insert or update.
Check challenge
Here is My code :---

trigger AccountAddressTrigger on Account (before insert, before update) {
    
    for(Schema.Account a :trigger.new){
        if(a.match_billing_address__C == true && a.billingpostalcode !=Null){
               a.BillingPostalCode = a.ShippingPostalCode ;
              
        }
    }
}
 
*** Deployment Log ***
Result: FAILED
Date: August 1, 2017 5:16:19 PM PDT
# Deployed From:
   Project name: Salesforce Org

   Username: Nagaraju@practice.com
   Endpoint: login.salesforce.com

# Deployed To:
   Username: nagaraju@ppractice.com
   Endpoint: login.salesforce.com

# Deploy Results:
   File Name:    appMenus/AppSwitcher.appMenu
   Full Name:  AppSwitcher
   Action:  NO ACTION
   Result:  FAILED
   Problem: The AppMenu called 'AppSwitcher' is standard and cannot be deleted

   File Name:    applications/LightningSalesConsole.app
   Full Name:  standard__LightningSalesConsole
   Action:  NO ACTION
   Result:  FAILED
   Problem: The CustomApplication called 'standard__LightningSalesConsole' is standard and cannot be deleted

   File Name:    applications/LightningService.app
   Full Name:  standard__LightningService
   Action:  NO ACTION
   Result:  FAILED
   Problem: The CustomApplication called 'standard__LightningService' is standard and cannot be deleted

   File Name:    applications/standard__LightningSales.app
   Full Name:  standard__LightningSales
   Action:  NO ACTION
   Result:  FAILED
   Problem: Tab standard-Chatter can't be added to Lightning app standard__LightningSales because it's not supported in Lightning apps.

   File Name:    assignmentRules/Case.assignmentRules
   Full Name:  Case.Standard
   Action:  NO ACTION
   Result:  FAILED
   Problem: In field: AssignedTo - no User named nagaraju@practice.com found

   File Name:    assignmentRules/Lead.assignmentRules
   Full Name:  Lead.Standard
   Action:  NO ACTION
   Result:  FAILED
   Problem: In field: AssignedTo - no User named nagaraju@practice.com found

   File Name:    aura/AccountList/AccountList.cmp
   Full Name:  AccountList
   Action:  NO ACTION
   Result:  FAILED
   Problem: Invalid definition for null:AccountsController: null

   File Name:    aura/AllAccounts/AllAccounts.app
   Full Name:  AllAccounts
   Action:  NO ACTION
   Result:  FAILED
   Problem: Invalid definition for null:AccountsController: null

   File Name:    classes/AccountsController.cls
   Full Name:  AccountsController
   Action:  NO ACTION
   Result:  FAILED
   Problem: Illegal conversion from List<Account> to List<account>

   File Name:    classes/LightningConnectQuickstart.cls
   Full Name:  LightningConnectQuickstart
   Action:  NO ACTION
   Result:  FAILED
   Problem: Illegal assignment from List<Account> to List<account>

   File Name:    classes/LightningConnectQuickstart.cls
   Full Name:  LightningConnectQuickstart
   Action:  NO ACTION
   Result:  FAILED
   Problem: Illegal assignment from List<Account> to List<account>

   File Name:    classes/LightningConnectQuickstart.cls
   Full Name:  LightningConnectQuickstart
   Action:  NO ACTION
   Result:  FAILED
   Problem: Variable does not exist: Customer_Id__c

   File Name:    classes/LightningConnectQuickstart.cls
   Full Name:  LightningConnectQuickstart
   Action:  NO ACTION
   Result:  FAILED
   Problem: DML requires SObject or SObject list type: List<account>

   File Name:    classes/OlderAccountsUtility.cls
   Full Name:  OlderAccountsUtility
   Action:  NO ACTION
   Result:  FAILED
   Problem: Variable does not exist: description

   File Name:    classes/OlderAccountsUtility.cls
   Full Name:  OlderAccountsUtility
   Action:  NO ACTION
   Result:  FAILED
   Problem: DML requires SObject or SObject list type: List<account>

   File Name:    classes/OlderAccountsUtility.cls
   Full Name:  OlderAccountsUtility
   Action:  NO ACTION
   Result:  FAILED
   Problem: Illegal assignment from List<Account> to List<account>

   File Name:    classes/TestLightningConnectQuickstart.cls
   Full Name:  TestLightningConnectQuickstart
   Action:  NO ACTION
   Result:  FAILED
   Problem: Invalid constructor syntax, name=value pairs can only be used for SObjects: account

   File Name:    classes/TestLightningConnectQuickstart.cls
   Full Name:  TestLightningConnectQuickstart
   Action:  NO ACTION
   Result:  FAILED
   Problem: DML requires SObject or SObject list type: List<account>

   File Name:    classes/TestLightningConnectQuickstart.cls
   Full Name:  TestLightningConnectQuickstart
   Action:  NO ACTION
   Result:  FAILED
   Problem: Illegal assignment from List<Account> to List<account>

   File Name:    components/mycomponent.component
   Full Name:  mycomponent
   Action:  NO ACTION
   Result:  FAILED
   Problem: Cyclic page or component references '/apexcomponent/c__mycomponent' are not allowed

   File Name:    escalationRules/Case.escalationRules
   Full Name:  Case.Standard
   Action:  NO ACTION
   Result:  FAILED
   Problem: In field: AssignedTo - no User named nagaraju@practice.com found

   File Name:    layouts/Account-Account %28Marketing%29 Layout.layout
   Full Name:  Account-Account %28Marketing%29 Layout
   Action:  NO ACTION
   Result:  FAILED
   Problem: In field: relatedList - no CustomField named Orders__x.customerID__c found

   File Name:    layouts/Account-Account %28Sales%29 Layout.layout
   Full Name:  Account-Account %28Sales%29 Layout
   Action:  NO ACTION
   Result:  FAILED
   Problem: In field: relatedList - no CustomField named Orders__x.customerID__c found

   File Name:    layouts/Account-Account %28Support%29 Layout.layout
   Full Name:  Account-Account %28Support%29 Layout
   Action:  NO ACTION
   Result:  FAILED
   Problem: In field: relatedList - no CustomField named Orders__x.customerID__c found

   File Name:    layouts/Account-Account Layout.layout
   Full Name:  Account-Account Layout
   Action:  NO ACTION
   Result:  FAILED
   Problem: In field: relatedList - no CustomField named Orders__x.customerID__c found

   File Name:    layouts/OrderDetails__x-OrderDetails Layout.layout
   Full Name:  OrderDetails__x-OrderDetails Layout
   Action:  NO ACTION
   Result:  FAILED
   Problem: Parent entity failed to deploy

   File Name:    layouts/Orders__x-Orders Layout.layout
   Full Name:  Orders__x-Orders Layout
   Action:  NO ACTION
   Result:  FAILED
   Problem: Parent entity failed to deploy

   File Name:    layouts/SocialPost-Social Post Layout.layout
   Full Name:  SocialPost-Social Post Layout
   Action:  NO ACTION
   Result:  FAILED
   Problem: Parent entity failed to deploy

   File Name:    objectTranslations/OrderDetails__x-en_US.objectTranslation
   Full Name:  OrderDetails__x-en_US
   Action:  NO ACTION
   Result:  FAILED
   Problem: Invalid object name: OrderDetails__x

   File Name:    objectTranslations/Orders__x-en_US.objectTranslation
   Full Name:  Orders__x-en_US
   Action:  NO ACTION
   Result:  FAILED
   Problem: Invalid object name: Orders__x

   File Name:    objects/OrderDetails__x.object
   Full Name:  OrderDetails__x
   Action:  NO ACTION
   Result:  FAILED
   Problem: In field: externalDataSource - no ExternalDataSource named OrderDB found

   File Name:    objects/Orders__x.object
   Full Name:  Orders__x
   Action:  NO ACTION
   Result:  FAILED
   Problem: In field: externalDataSource - no ExternalDataSource named OrderDB found

   File Name:    pages/LightningConnectQuickstart.page
   Full Name:  LightningConnectQuickstart
   Action:  NO ACTION
   Result:  FAILED
   Problem: Apex class 'LightningConnectQuickstart' does not exist

   File Name:    permissionsets/Trailblazer_Developer.permissionset
   Full Name:  Trailblazer_Developer
   Action:  NO ACTION
   Result:  FAILED
   Problem: In field: field - no CustomObject named OrderDetails__x found

   File Name:    profiles/Admin.profile
   Full Name:  Admin
   Action:  NO ACTION
   Result:  FAILED
   Problem: In field: field - no CustomObject named OrderDetails__x found

   File Name:    profiles/Analytics Cloud Integration User.profile
   Full Name:  Analytics Cloud Integration User
   Action:  NO ACTION
   Result:  FAILED
   Problem: In field: field - no CustomObject named OrderDetails__x found

   File Name:    profiles/Analytics Cloud Security User.profile
   Full Name:  Analytics Cloud Security User
   Action:  NO ACTION
   Result:  FAILED
   Problem: In field: field - no CustomObject named OrderDetails__x found

   File Name:    profiles/Authenticated Website.profile
   Full Name:  Authenticated Website
   Action:  NO ACTION
   Result:  FAILED
   Problem: In field: field - no CustomObject named OrderDetails__x found

   File Name:    profiles/Chatter External User.profile
   Full Name:  Chatter External User
   Action:  NO ACTION
   Result:  FAILED
   Problem: In field: field - no CustomObject named OrderDetails__x found

   File Name:    profiles/Chatter Free User.profile
   Full Name:  Chatter Free User
   Action:  NO ACTION
   Result:  FAILED
   Problem: In field: field - no CustomObject named OrderDetails__x found

   File Name:    profiles/Chatter Moderator User.profile
   Full Name:  Chatter Moderator User
   Action:  NO ACTION
   Result:  FAILED
   Problem: In field: field - no CustomObject named OrderDetails__x found

   File Name:    profiles/ContractManager.profile
   Full Name:  ContractManager
   Action:  NO ACTION
   Result:  FAILED
   Problem: In field: field - no CustomObject named OrderDetails__x found

   File Name:    profiles/Cross Org Data Proxy User.profile
   Full Name:  Cross Org Data Proxy User
   Action:  NO ACTION
   Result:  FAILED
   Problem: In field: field - no CustomObject named OrderDetails__x found

   File Name:    profiles/Custom%3A Marketing Profile.profile
   Full Name:  Custom%3A Marketing Profile
   Action:  NO ACTION
   Result:  FAILED
   Problem: In field: field - no CustomObject named OrderDetails__x found

   File Name:    profiles/Custom%3A Sales Profile.profile
   Full Name:  Custom%3A Sales Profile
   Action:  NO ACTION
   Result:  FAILED
   Problem: In field: field - no CustomObject named OrderDetails__x found

   File Name:    profiles/Custom%3A Support Profile.profile
   Full Name:  Custom%3A Support Profile
   Action:  NO ACTION
   Result:  FAILED
   Problem: In field: field - no CustomObject named OrderDetails__x found

   File Name:    profiles/Customer Community Login User.profile
   Full Name:  Customer Community Login User
   Action:  NO ACTION
   Result:  FAILED
   Problem: In field: field - no CustomObject named OrderDetails__x found

   File Name:    profiles/Customer Community Plus Login User.profile
   Full Name:  Customer Community Plus Login User
   Action:  NO ACTION
   Result:  FAILED
   Problem: In field: field - no CustomObject named OrderDetails__x found

   File Name:    profiles/Customer Community Plus User.profile
   Full Name:  Customer Community Plus User
   Action:  NO ACTION
   Result:  FAILED
   Problem: In field: field - no CustomObject named OrderDetails__x found

   File Name:    profiles/Customer Community User.profile
   Full Name:  Customer Community User
   Action:  NO ACTION
   Result:  FAILED
   Problem: In field: field - no CustomObject named OrderDetails__x found

   File Name:    profiles/Customer Portal Manager Custom.profile
   Full Name:  Customer Portal Manager Custom
   Action:  NO ACTION
   Result:  FAILED
   Problem: In field: field - no CustomObject named OrderDetails__x found

   File Name:    profiles/Customer Portal Manager Standard.profile
   Full Name:  Customer Portal Manager Standard
   Action:  NO ACTION
   Result:  FAILED
   Problem: In field: field - no CustomObject named OrderDetails__x found

   File Name:    profiles/External Identity User.profile
   Full Name:  External Identity User
   Action:  NO ACTION
   Result:  FAILED
   Problem: In field: field - no CustomObject named OrderDetails__x found

   File Name:    profiles/Force%2Ecom - App Subscription User.profile
   Full Name:  Force%2Ecom - App Subscription User
   Action:  NO ACTION
   Result:  FAILED
   Problem: In field: field - no CustomObject named OrderDetails__x found

   File Name:    profiles/Force%2Ecom - Free User.profile
   Full Name:  Force%2Ecom - Free User
   Action:  NO ACTION
   Result:  FAILED
   Problem: In field: field - no CustomObject named OrderDetails__x found

   File Name:    profiles/Gold Partner User.profile
   Full Name:  Gold Partner User
   Action:  NO ACTION
   Result:  FAILED
   Problem: In field: field - no CustomObject named OrderDetails__x found

   File Name:    profiles/High Volume Customer Portal User.profile
   Full Name:  High Volume Customer Portal User
   Action:  NO ACTION
   Result:  FAILED
   Problem: In field: field - no CustomObject named OrderDetails__x found

   File Name:    profiles/HighVolumePortal.profile
   Full Name:  HighVolumePortal
   Action:  NO ACTION
   Result:  FAILED
   Problem: In field: field - no CustomObject named OrderDetails__x found

   File Name:    profiles/Identity User.profile
   Full Name:  Identity User
   Action:  NO ACTION
   Result:  FAILED
   Problem: In field: field - no CustomObject named OrderDetails__x found

   File Name:    profiles/MarketingProfile.profile
   Full Name:  MarketingProfile
   Action:  NO ACTION
   Result:  FAILED
   Problem: In field: field - no CustomObject named OrderDetails__x found

   File Name:    profiles/Partner App Subscription User.profile
   Full Name:  Partner App Subscription User
   Action:  NO ACTION
   Result:  FAILED
   Problem: In field: field - no CustomObject named OrderDetails__x found

   File Name:    profiles/Partner Community Login User.profile
   Full Name:  Partner Community Login User
   Action:  NO ACTION
   Result:  FAILED
   Problem: In field: field - no CustomObject named OrderDetails__x found

   File Name:    profiles/Partner Community User.profile
   Full Name:  Partner Community User
   Action:  NO ACTION
   Result:  FAILED
   Problem: In field: field - no CustomObject named OrderDetails__x found

   File Name:    profiles/PlatformPortal.profile
   Full Name:  PlatformPortal
   Action:  NO ACTION
   Result:  FAILED
   Problem: In field: field - no CustomObject named OrderDetails__x found

   File Name:    profiles/ReadOnly.profile
   Full Name:  ReadOnly
   Action:  NO ACTION
   Result:  FAILED
   Problem: In field: field - no CustomObject named OrderDetails__x found

   File Name:    profiles/Silver Partner User.profile
   Full Name:  Silver Partner User
   Action:  NO ACTION
   Result:  FAILED
   Problem: In field: field - no CustomObject named OrderDetails__x found

   File Name:    profiles/SolutionManager.profile
   Full Name:  SolutionManager
   Action:  NO ACTION
   Result:  FAILED
   Problem: In field: field - no CustomObject named OrderDetails__x found

   File Name:    profiles/Standard.profile
   Full Name:  Standard
   Action:  NO ACTION
   Result:  FAILED
   Problem: In field: field - no CustomObject named OrderDetails__x found

   File Name:    profiles/StandardAul.profile
   Full Name:  StandardAul
   Action:  NO ACTION
   Result:  FAILED
   Problem: In field: field - no CustomObject named OrderDetails__x found

   File Name:    profiles/Work%2Ecom Only User.profile
   Full Name:  Work%2Ecom Only User
   Action:  NO ACTION
   Result:  FAILED
   Problem: In field: field - no CustomObject named OrderDetails__x found

   File Name:    quickActions/Case.LogACall.quickAction
   Full Name:  Case.LogACall
   Action:  NO ACTION
   Result:  FAILED
   Problem: An unexpected error occurred. Please include this ErrorId if you contact support: 580862814-90535 (-1431893360)

   File Name:    settings/Case.settings
   Full Name:  Case
   Action:  NO ACTION
   Result:  FAILED
   Problem: In field: defaultCaseOwner - no User named nagaraju@practice.com found

   File Name:    settings/Search.settings
   Full Name:  Search
   Action:  NO ACTION
   Result:  FAILED
   Problem: Entity is null or entity element's name is null

   File Name:    workflows/OrderDetails__x.workflow
   Full Name:  OrderDetails__x
   Action:  NO ACTION
   Result:  FAILED
   Problem: Cannot create workflow directly; must create the CustomObject first

   File Name:    workflows/Orders__x.workflow
   Full Name:  Orders__x
   Action:  NO ACTION
   Result:  FAILED
   Problem: Cannot create workflow directly; must create the CustomObject first

   File Name:    workflows/Question.workflow
   Full Name:  Question
   Action:  NO ACTION
   Result:  FAILED
   Problem: Cannot create workflow directly; must create the CustomObject first

   File Name:    workflows/Reply.workflow
   Full Name:  Reply
   Action:  NO ACTION
   Result:  FAILED
   Problem: Cannot create workflow directly; must create the CustomObject first

   File Name:    workflows/SocialPost.workflow
   Full Name:  SocialPost
   Action:  NO ACTION
   Result:  FAILED
   Problem: Cannot create workflow directly; must create the CustomObject first

   
<apex:page controller="NewController_cntrlr" sidebar="false" id="thepage" ShowHeader="false">
  <apex:form >
    <apex:pageBlock id="Thepage" title="Account Details">
       <apex:pageBlockSection collapsible="true">
          <apex:inputField value="{!acc.name}"/>
          <apex:inputField value="{!acc.rating}"/>
          <apex:inputField value="{!acc.AnnualRevenue}"/>
          <apex:inputField value="{!acc.Fax}"/>
          <apex:inputField value="{!acc.Industry}"/>
      </apex:pageBlockSection>
           <apex:pageBlockSection Title="Contact Details" >
              
              <apex:inputField label="Firstname" value="{!con.firstname}"/> 
              <apex:inputField label="Lastname" value="{!con.lastname}"/>
              <apex:inputField label="phone" value="{!con.phone}"/>
           </apex:pageBlockSection>   
    </apex:pageBlock>

  </apex:form>
</apex:page>.
====================================================
=======================================================

User-added image