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.

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 keep getting this error, yet I have matched the filters up with the instructions. Why might this be? Here is the filter string provided. 

 

{"datasets":{"DTC_Opportunity_SAMPLE":[{"fields":["Account_Name"],"filter":{"operator":"in","values":["$Name"]},"locked":null,"hidden":null}]}}

 

#Trailhead Challenges

9 answers
  1. Jul 26, 2024, 1:39 PM

    Hi @Eavan Ring,

     

    I'm a member of the Trailblazer Help team. This issue needs further review and we may need access to your playground. We will reach out to you via email to connect further. Thank you!

     

    Best Regards,

    Ravindra

     

    ++CreateTrailheadCase

  2. May 22, 2024, 3:06 PM

    Hi @Eavan Ring,

     

    Is this requirement is part of any Trailhead challenge? If so please share the URL of the Trailhead unit so that I can check and help further.

     

    Best Regards,

    Ravindra

     

    ++TrailheadHelpFollowUp

  3. May 21, 2024, 6:58 PM

    I'm running into the same problem and none of these solutions are working to fix it

  4. May 9, 2024, 1:46 PM

    Hi @Max Stevens,

     

    I'm Ravindra from Trailblazer Help team. Is this requirement is part of any Trailhead challenge? If so please share the URL of the Trailhead unit so that I can check and help further.

     

    Best Regards,

    Ravindra

     

    ++TrailheadHelpFollowUp

  5. May 8, 2024, 4:18 PM

    Hi @Aman Patil

     

    Thanks for the suggestion. This filtered correctly but I am still receiving the JSON issue. I attempted again with {"datasets":{"DTC_Opportunity_SAMPLE":[{"fields":["Account_Name"],"filter":{"operator":"matches","values":["$Name"]},"locked":null,"hidden":null}]}} and still get the same error. Not sure where this error could be coming from.

  6. May 8, 2024, 2:41 PM

    Hi @Max Stevens

     

    • 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.

     

    refer

    https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000A9402SAB

0/9000