Skip to main content
David_Wang
Staff
Staff
Oct 12, 2020 2:45 AM UTC
Question

CS-WF-5: Inappropriate use of Jinja key: 'no filter named 'json_query'' in Jinja template '{{vars.steps.Get_Connector_Details.data.data | json_query(\"[?contains(name, 'code-snippet')].id\") }}'.

Hi FortiSoar Team,

When Running playbook "Playbooks/Collections/11 - Demo/Create Sample Records - IR, Threat Intelligence and Vulnerability Management" failed,  error message is " CS-WF-5: Inappropriate use of Jinja key: 'no filter named 'json_query'' in Jinja template '{{vars.steps.Get_Connector_Details.data.data | json_query(\"[?contains(name, 'code-snippet')].id\") }}'.".

Why it says "no filter name 'json_query'". 

    1 reply

    David_Wang
    Staff
    Staff
    Oct 12, 2020 6:55 AM UTC
    I found a solution to the problem.
    Reference links are as follows:
    https://kb.fortinet.com/kb/microsites/search.do?cmd=displayKC&docType=kc&externalId=FD49101&sliceId=1&docTypeID=DT_KCARTICLE_1_1&dialogID=173652614&stateId=1%200%20173654394%27)-------------------------------------------
    Original Message:
    Sent: Oct 11, 2020 07:45 PM
    From: David Wang
    Subject: CS-WF-5: Inappropriate use of Jinja key: 'no filter named 'json_query'' in Jinja template '{{vars.steps.Get_Connector_Details.data.data | json_query(\"[?contains(name, 'code-snippet')].id\") }}'.

    Hi FortiSoar Team,

    When Running playbook "Playbooks/Collections/11 - Demo/Create Sample Records - IR, Threat Intelligence and Vulnerability Management" failed,  error message is " CS-WF-5: Inappropriate use of Jinja key: 'no filter named 'json_query'' in Jinja template '{{vars.steps.Get_Connector_Details.data.data | json_query(\"[?contains(name, 'code-snippet')].id\") }}'.".

    Why it says "no filter name 'json_query'". 
    Thought Leadership. Security Summit. Thursday, November 12th, PGA National Resort, Palm Beach Gardens, FL.
    Security Operations Summit: Modernize SecOps. Operate AI-Native.AMER: November 4 | 9:00 AM PST. India and SAARC: November 5 | 10:00 AM IST. EMEA: November 5 | 10:30 AM CET. APAC: November 5 | 11:00 AM SGT