• anand k 11
  • NEWBIE
  • 89 Points
  • Member since 2015


  • Chatter
    Feed
  • 2
    Best Answers
  • 0
    Likes Received
  • 1
    Likes Given
  • 0
    Questions
  • 31
    Replies
I have a formula field "Solutions TAT" which is of 4500 compiled characters.

I have another formula field as below which is giving compiled formula is too big to execute error as I am referring "Solutions TAT" twice which is a big formula field:

IF( Solutions_TAT__c >  Target_Completion_Days_Solutions__c , 'RED'
 IF(Solutions_TAT__c < (Target_Completion_Days_Solutions__c * 0.7), 'GREEN',
'AMBER'

)

Please suggest some workaround to overcome this. Thanks in advance.
Hello,

I have a picklist on a page, I want to make that field mandatory. I dont have option like Required like other fields.
Can i add any validation rule or any other method
  • July 15, 2015
  • Like
  • 0
I have set the session timeout value to 30 min and enabled "force logout on session timeout" in session settings. I have logged in a salesforce user and kept him idle for more than 30 min. After 40 min, i refreshed the page and noticed that the salesforce session id is being changed and the salesforce session is still active and doesn't logout the user. I didn't also get any warning for the session timeout. Please note that i have not enabled the option "Disable session timeout warning popup"

Can anyone help me on why the user is not logged out eventhough the force logout is enabled? Is there any way to find whether its a new session or renewed session?
when i enter that mobile number that sholud be a number like that  but iam given text that showing error. How to solve the above scenario please give some ideas.
Hi,

I keep getting the error that there is no Visual Force page titled "SpeakerForm." I've checked everything multiple times. Anyone know what I'm doing wrong?
Hello,

I use code bellow and have a same error in two different SandBoxes.
Challenge not yet complete... here's what's wrong: 
There was an unexpected error while verifying this challenge. Usually this is due to some pre-existing configuration or code in the challenge Org. We recommend using a new Developer Edition (DE) to check this challenge. If you're using a new DE and seeing this error, please post to the developer forums and reference error id: YUMZCIAK

Component 
<aura:component >
    <aura:attribute name = "IsSunday" type = "Boolean" default="false"/>
    <aura:attribute name = "IsMonday" type = "Boolean" default="false"/>
    <aura:attribute name = "IsThuesday" type = "Boolean" default="false"/>
    <aura:attribute name = "IsWednesday" type = "Boolean" default="false"/>
    <aura:attribute name = "IsThuerday" type = "boolean" default="false"/>
    <aura:attribute name = "IsFriday" type = "boolean" default="false"/>
    <aura:attribute name = "IsSaturday" type = "boolean" default="false"/>
    <aura:attribute name="today" type="Date" default=""/>
    <aura:handler name="init" value="{!this}" action="{!c.doInit}"/>


    <aura:if isTrue="{!v.IsSunday}" >
       <p> Today is Sunday </p>
    </aura:if>
    <aura:if isTrue="{!v.IsMonday}" >
       <p> Today is Monday </p>
    </aura:if>
    <aura:if isTrue="{!v.IsThuesday}" >
       <p> Today is Thuesday </p>
    </aura:if>    <aura:if isTrue="{!v.IsWednesday}" >
       <p> Today is Wednesday </p>
    </aura:if>    <aura:if isTrue="{!v.IsThuerday}" >
       <p> Today is IsThuerday </p>
    </aura:if>    <aura:if isTrue="{!v.IsFriday}" >
       <p> Today is Friday </p>
    </aura:if>    <aura:if isTrue="{!v.IsSaturday}" >
       <p> Today is Saturday </p>
    </aura:if>
    
</aura:component>

and as a controller 
({
      doInit: function(cmp) {
        var Aujourdhui = new Date();               
          if  (Aujourdhui.getDay()==0) {cmp.set("v.IsSunday", true); }    
          if  (Aujourdhui.getDay()==1) {cmp.set("v.IsSunday", true);} 
          if  (Aujourdhui.getDay()==2) {cmp.set("v.IsSunday", true); } 
          if  (Aujourdhui.getDay()==3) {cmp.set("v.IsSunday", true); } 
          if  (Aujourdhui.getDay()==4) {cmp.set("v.IsSunday", true); } 
          if  (Aujourdhui.getDay()==5) {cmp.set("v.IsSunday", true); } 
          if  (Aujourdhui.getDay()==6) {cmp.set("v.IsSunday", true); }

      }
})


Thans for help
Hervé Colsenet

I'm trying to complete the "Creating a Visual Force Page" step of the "Build a Conference Management App" module.  I think I've setup everything up correctly. I've created the page, can test it, and can override the default edit action on the default form.

But I'm getting the following error when trying to verify the step:

Step not yet complete... here's what's wrong:
The 'SpeakerForm' Visualforce page was not found.
Note: you may run into errors if you've skipped previous steps.

Any one know what I could be missing?

Thanks!

 

I am trying to complete the step where you have to set up the Master-Detail Relationship. I followed all the steps but I got this message.
I have already set up such Master-Detail Relationship before during the trailhead, it worked but this time i don't know what is wrong

"Step not yet complete... here's what's wrong:
A sample Session Speaker record could not be inserted. Please check the relationship fields with the Speaker and Session objects
Note: you may run into errors if you've skipped previous steps"

Schema builder

I double check all should be allright?

Here are my two related fields :
User-added image

and the last one :
User-added image

Thanks in advance
can you please give me the example programm of asynchronous Batch Apex. please give some ideas.
I have a formula field "Solutions TAT" which is of 4500 compiled characters.

I have another formula field as below which is giving compiled formula is too big to execute error as I am referring "Solutions TAT" twice which is a big formula field:

IF( Solutions_TAT__c >  Target_Completion_Days_Solutions__c , 'RED'
 IF(Solutions_TAT__c < (Target_Completion_Days_Solutions__c * 0.7), 'GREEN',
'AMBER'

)

Please suggest some workaround to overcome this. Thanks in advance.
Hi,

While executing the following class from the Trailhead : Creating Test Data for Apex Tests Chapter, I am facing the error. System.ListException: Missing id at index: 0  with  all the 4 Database.deleteResult statement (marked in the code).
Class :
@isTest
private class TestAccountDeletion {
    @isTest static void TestDeleteAccountWithOneOpportunity(){
        //Test data setup
        Account[] accts = TestDataFactory.createAccountsWithOpps(1,1);
        Test.startTest();
        Database.DeleteResult result= Database.delete(accts[0], false);
        Test.stopTest();
        System.assert(!result.isSuccess());
        System.assert(result.getErrors().size() > 0);
        System.assertEquals('Cannot delete account with related opportunities.',result.getErrors()[0].getMessage());
    }
     @isTest static void TestDeleteAccountWithNoOpportunities(){
        Account [] accts = TestDataFactory.createAccountsWithOpps(1, 0);
        Test.startTest();
        Database.deleteResult result = Database.delete(accts[0],false);
        Test.stopTest();
        System.assert(result.isSuccess());
    }
     @isTest static void TestDeleteBulkAccountsWithOneOpportunity(){
        Account[] accts = TestDataFactory.createAccountsWithOpps(200,1);
        Test.startTest();
        Database.deleteResult[] result = Database.delete(accts,false);
        Test.stopTest();
        for(Database.deleteResult dr:result){
            System.assert(!dr.isSuccess());
            System.assert(dr.getErrors().size() > 0);
            System.assertEquals('Cannot delete account with related opportunities.',
                                dr.getErrors()[0].getMessage());
        }
    }
     @isTest static void TestDeleteBulkAccountsWithNoOpportunity(){
        Account[] accts = TestDataFactory.createAccountsWIthOpps(200,0);
        Test.startTest();
        Database.deleteResult[] result = Database.delete(accts, false);
        Test.stopTest();
        for(Database.deleteResult dr:result){
            System.assert(dr.isSuccess());
    }
    }
}

Pls let me know, what could be the issue. Thanks in Advance
Regards
Reshmi
How do I populate my Excel spreadsheet with specific information (e.g. First Name, Last Name, E-mail) given an Account Name in column A?
Challenge not yet complete... here's what's wrong: 
There was an unexpected error while verifying this challenge. Usually this is due to some pre-existing configuration or code in the challenge Org. We recommend using a new Developer Edition (DE) to check this challenge. If you're using a new DE and seeing this error, please post to the developer forums and reference error id: YCKXBVFD


Even I have done the same using a new DE. GIving the Same Error
Hello,

I have a picklist fields. I have added validation rule to check if the field has some value. But i want to have the red icon adjacent to the field like other mandatopry field has
  • July 15, 2015
  • Like
  • 0
Getting this error tough everything is created as its stated.

User-added image

Completed:

User-added image
Unable to proceed further.
Has anyone recently given Salesforce dev 401 certification ? 
I completed the challenges long back and was intimated through mail that I will be recieving my T-Shirt in 1 month.But, I didn't receive it yet. 
I recieved mail regarding it last in February 4,2015.
So, I wanted to know about the status.
Hi Guys,
  1. Until the Spring 15 release, Maps and Sets are Unordered Collections. So the returned order will be random.
  2. But beginning from Summer 15 release onwards, Maps and Set order is predictable. The order will be same that what you put from the beginning to end.
Example:
Map<String, String> orderedMap = new Map<String, String>();
orderedMap.put('Good', 'This is so good');
orderedMap.put('Bad', 'This is so bad');
System.debug(orderedMap);

If you run the above code snippet in Developer console you will get the returned order as below,

Until Spring 15 Release:

{Bad=This is so bad, Good=This is so good}

From Summer 15 Release:

{Good=This is so good, Bad=This is so bad}

This changes is not the API level, this is Schema level change. If anyone relying on the Map or Set order in your codes, change it as soon. 

Thanks.