• Neerpal singh 6
  • NEWBIE
  • 10 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 2
    Replies
Hi there, I 'm trying to complete the "Automating Processes with the Lightning Process Builder" challenge in TrailHead but I get the following error :
Encountered unhandled fault when running process Update_contact_adress/
301240000004FXO exception by user/organization: 00D24000000JsNt/{4}

The flow failed to access the value for myVariable_current.Account.ShippingCountry because it hasn't been set or assigned.
caused by element : FlowRecordUpdate.myRule_1_A1
caused by: The flow failed to access the value for myVariable_current.Account.ShippingCountry because it hasn't been set or assigned.
Salesforce Error ID: 490660201-42718 (736882147)

Any idea what could be could wrong ?
 

Hi I am creating new Visual Force page that displays views of Contact.That view contains Contact Lastname & Contacts AccountName if Contact account name is there.

 

Its all ok.But i am used command link to that view. So If i click to contact Lastname that contact will be open & same for Account Name...

How to handle this one????

I am Hardcoded that value its working fine.But not hard coded itd not working...

 

My sample code is:

 

Apex Class::

 

public class dataTableCont 
{
    List<Contact> Con;
    public List<Contact> getContacts()
    {
        Con = [select id,LastName, AccountId,contact.Account.Name from contact where contact.AccountId != NULL];
        return Con;
    }
   
    public PageReference LinkContactName()
    {
      PageReference pdfPage =new PageReference('my org URL' + '/' + 'Contact.Id');
//If i am hardcoded the contact Id its working..
      pdfpage.setRedirect(true);
      return pdfPage;
    }
    public PageReference LinkAccountName()
    {
        PageReference pdfPage =new PageReference('my org URL' + '/' + Contact.AccountId);
        pdfpage.setRedirect(true);
        return pdfPage;
        //return null;
    }
}

My VisualForce Page::

 

<apex:page controller="dataTableCont" id="thePage">
<apex:form > 
   <apex:pageBlock title="Contacts">
   <apex:pageBlockTable value="{!Contacts}" var="ge">
                        <apex:column headervalue="Last Name" width="500">
                        <apex:commandLink action="{!LinkContactName}" value="{!ge.LastName}"  >
                             <apex:param name="ConLastName" value="{!ge.Id}"/>
                        </apex:commandLink>
                    </apex:column>
                   
                    <apex:column headervalue="Account Name" width="500">
                        <apex:commandLink action="{!LinkAccountName}" value="{!ge.Account.Name }" >
                             <apex:param name="ConAccName" value="{!ge.AccountId}"/>
                        </apex:commandLink>
                    </apex:column>
    </apex:pageBlockTable>
   </apex:pageBlock>
   </apex:form>
   </apex:page>

 

If i click to contact Lastname that contact will be open & same for Account Name.

How to handle this one????

Message Edited by Krishna_ on 05-12-2009 05:49 PM