dateFormat/dateMath transform works in Preview but has an error on Refresh

We want to get the value \2022\Apr from \yyyy\MMM. When I look in the preview, the value is as expected, but once I run the refresh, there are errors on the users.

Preview:
image

Error:

Transform:

{
  "name": "Temp Year Month",
  "type": "static",
  "attributes": {
    "value": "$slash$year$slash$month",
    "month": {
      "type": "dateFormat",
      "attributes": {
        "inputFormat": "ISO8601",
        "outputFormat": "MMM",
        "input": {
          "type": "dateMath",
          "attributes": {
            "expression": "now"
          }
        }
      }
    },
    "year": {
      "type": "dateFormat",
      "attributes": {
        "inputFormat": "ISO8601",
        "outputFormat": "yyyy",
        "input": {
          "type": "dateMath",
          "attributes": {
            "expression": "now"
          }
        }
      }
    },
    "slash": {
      "attributes": {
        "value": "\\"
      },
      "type": "static"
    }
  }
}

This has been resolved by changing the inputFormat to ‘yyyy-MM-dd’T’HH:mm’ as this is the output of dateMath.