Hi team. I am getting SRM detected issue This star...
# ask-questions
m
Hi team. I am getting SRM detected issue This started coming after I added a custom MongoDB query for attribute targeting before starting a new phase. PS: I crossed the possible issue as stated in 2nd screenshot
Custom MongoDB: Filter is having a premium subscription and any one package with any one supported id.
Copy code
{
  "$and": [
    {
      "subscription": "premium"
    },
    {
      "$or": [
        {
          "$and": [
            {
              "name": "com.v1"
            },
            {
              "ids": {
                "$elemMatch": {
                  "$in": [
                    1,
                    3
                  ]
                }
              }
            }
          ]
        },
        {
          "$and": [
            {
              "name": "com.v2"
            },
            {
              "ids": {
                "$elemMatch": {
                  "$in": [
                    1,
                    3
                  ]
                }
              }
            }
          ]
        },
        {
          "$and": [
            {
              "name": "com.v3"
            },
            {
              "ids": {
                "$elemMatch": {
                  "$in": [
                    2
                  ]
                }
              }
            }
          ]
        },
        {
          "$and": [
            {
              "name": "com.v4"
            },
            {
              "ids": {
                "$elemMatch": {
                  "$in": [
                    8
                  ]
                }
              }
            }
          ]
        },
        {
          "$and": [
            {
              "name": "com.v5"
            },
            {
              "ids": {
                "$elemMatch": {
                  "$in": [
                    1
                  ]
                }
              }
            }
          ]
        }
      ]
    }
  ]
}