Skip to main content Join us at TDX in San Francisco or on Salesforce+ on March 5-6 for the Developer Conference for the AI Agent Era. Register now.
I've completed the Embed an Einstein Analytics Dashboard in Lightning Experience modules, but in the last module (Filter an Embedded Dashboard) the module won't verify.  

 

The instructions require that I copy a JSON code into the analytics filter as follows: 

 

{'datasets': {'DTC_Opportunity_SAMPLE': [{'fields': ['Account_Name'], 'filter': {'operator': 'matches', 'values': ['$Name']}}]}}

 

It even recommends copying and pasting this code as even a small mistake will result in error.  I have done that - I've copied and pasted it several times over, saved, and activated.

 

I can see the accurate result of this module because when I then go back to various accounts the JSON code works functionally and depending on which account I'm looking at the wave dashboard displays different results.  

 

When I go to verify I get this message:

 

The filter doesn't match the JSON string in the instructions. Check your filter carefully. Even one character missing or out of place can cause problems.

 

I decided to just create a new dev org and re-do this module and following the same exact method of handling the issue.  Now I'm getting this error message:

 

We can't find the account record page. Make sure that you’re using your Analytics-enabled Developer Edition org and that you’re in the Sales app.

 

I know with certainty that I've activated an analytics enabled org and that I'm in the Sales app.

 

Is this a buggy module?  I didn't get a single hit when I googled these error messages so it seems that nobody else is having this issue.... help?
39 answers
  1. Jan 26, 2020, 5:53 PM

    I solved this issue by following this steps:

    • In Dashboard filters instead of Filter Builder switch to Filter String
    • Fill text area fill the following code:

      {'datasets': {'DTC_Opportunity_SAMPLE': [{'fields': ['Account_Name'], 'filter': {'operator': 'matches', 'values': ['$Name']}}]}}

       

      As I see it the problem is in incorrect convertion of filter condition. It expect matches but get in value insted.
  2. Jan 29, 2020, 10:08 PM
    @Aleksandr Pashkin  new org for the win.  Thank you much, that closes out the last badge and module. 

     

    In a new DE org, the winning json

    {"datasets":{"DTC_Opportunity_SAMPLE":[{"fields":["Account_Name"],"filter":{"operator":"matches","values":["$Name"]}}]}}

     

    Notice: no spaces and using double quotes. 

     

    Best of luck fellow hikers and look forward to seeing you somewhere down the trail.
  3. Oct 12, 2019, 8:19 PM
    Same problem for me. I think this is a broken module. Does anyone know how to put in a ticket for broken trailhead modules?
  4. Jul 15, 2022, 6:31 AM

    After many many attempts i was finally successful, what i did was 

    1. clicked  +Add data set builder

    2. changed the defaults (Opportunity Name) to select (Account Name)

     and ensure  operator  is "Equals"

    3. Select Object Field  to Account Name

    4. hit Tab three times in my keyboard until i see the OK button. (this was the step which get me to the OK button, which otherwise is not vissible)

     

    and save and it worked for me and was able to pass the challenge.

     

    Thanks @Jim Taber @Aleksandr Pashkin for the tip to explore options.

     

    notice: when i checked the filter string, i see it as below, with "locked" : null and "hidden" : null (little extension in my filter string) and my operator as "in" instead of matches.

    not sure if the issue is always different  for each one but I have attached my steps if this might help

     

    {"datasets":{"DTC_Opportunity_SAMPLE":[{"fields":["Account_Name"],"filter":{"operator":"in","values":["$Name"]},"locked":null,"hidden":null}]}}
  5. Apr 23, 2020, 1:41 PM
    {"datasets":{"DTC_Opportunity_SAMPLE":[{"fields":["Account_Name"],"filter":{"operator":"in","values":["$Name"]}}]}}
  6. Oct 14, 2019, 10:26 AM
    I've open a ticket and the support told me to recreate a new org and it has been ok for me. The Json to copy/paste was ok, but my org was not in good shape. With a new org i've validated my badge
  7. Jul 8, 2023, 5:07 PM

    I also faced this error when I was using my existing Developer Org. I tried to follow the instructions on this module many times , but still show the exact same error. Here is what I did to finish this module.I created a new Developer org and tried to re-do with their instructions again and it worked smoothly and finally I'm able to complete this module.

  8. Apr 14, 2021, 5:49 PM
    Thanks @Aleksandr Pashkin for the tip. It worked for me. 'matches' translated to 'contains'  and 'in' translated to equals in the filter.
  9. Jan 28, 2021, 4:34 AM
    I created a new developer org and completed just the last section of this module and it worked. Thanks!
  10. Nov 20, 2020, 12:24 PM
    Facing the same issue 

     

    The filter doesn't match the JSON string in the instructions. Check your filter carefully. Even one character missing or out of place can cause problems.

     

    {"datasets":{"DTC_Opportunity_SAMPLE":[{"fields":["Account_Name"],"filter":{"operator":"matches","values":["$Name"]}}]}}
0/9000