1004: DNS Validation Error when creating MX record using terraform

When we try to create a MX record using terraform, we are getting DNS Validation Error ?

Any thoughts on how to resolve this ?

Terraform version: 0.13.6

Cloudflare provider version = “~> 2.0”

Hi there,

Are you able to share the configuration from your terraform? - I would like to see the details of the record you are trying to create.

You should censor any private details about your zone/IP address.

This error normally means you are trying to create a record that does not have the right syntax or wrong options for the DNS record you are trying to configure.