• Arnold F Brown
  • 0 Points
  • Member since 2015
  • Senior CRM Specialist
  • Bright Horizons Family Services

  • Chatter
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
  • 2
Hi, I folllowed the trailhead (Build a restaurant locator Lightning Component )  Leveraging the Contact Record Data and it also marks as completed. but when i try to see the output, I get the following error,
Unfortunately, there was a problem. Please try again. If the problem continues, get in touch with your administrator with the error ID shown here and any other related details. Something has gone wrong. Error in $A.getCallback() [SyntaxError: Unexpected end of JSON input] Failing descriptor: {markup://c:InTheArea}. Please try again.

Can anyone help me to undersatnd why am I getting this error.
Thank you

On the Account object I have created a formula field called Domain_Name__c . The formula I have used is this,


SUBSTITUTE(Website, LEFT(Website, FIND("www.", Website)), NULL)


Where website is a standard field on Account.


If Website is www.xyzdomain.com or https://www.xyzdomain.com


In Domain_Name__c I expected result as xyzdomain.com


Instead i am getting the result either as

.xyzdomain.com or ww.xyzdomain.com depending on whether the Email entered was 'www.xyzdomain.com' or 'https://www.xyzdomain.com'

Any thoughts how I can only get the text after the .   


e.g If, in the field Website  I enter www.salesforce.com  or  https://www.salesforce.com the result in the Domain_Name__c should be salesforce.com 



  • October 07, 2012
  • Like
  • 0