"An identical record already exists" when creating TXT record while already deleted

What is the name of the domain?

pulpos.com, pulpos.shop

What is the error number?

81058

What is the error message?

An identical record already exists.

What is the issue you’re encountering

Unable to create TXT record due to “An identical record already exists” while there’s no matching record (since it was already deleted)

What steps have you taken to resolve the issue?

I’m creating some TXT records for certificate renewal validation, and I’m stuck with the creation. I have created a TXT DNS record with content XXXX via Terraform, and I forgot to include the quotes inside it. When I opened Cloudflare’s UI, I realized about it and even if it says Cloudflare would take care of it and add the quotes on their side, I tried to change it via Terraform, which I couldn’t (I think due to missing allow_overwrite when creating, not really sure), so I deleted the record from Cloudflare’s UI, to re-create it afterwards. Problem is that now, I can’t re-create the record with the content \"XXXX\", since I get the error “An identical record already exists”, even if it doesn’t. I can’t do it via Cloudflare nor Terraform, so I’m completely stuck.

What feature, service or problem is this related to?

DNS records

Screenshot of the error

1 Like

Seems to me you’re trying to generate or renew your origin SSL certificate by using Acme, Let’s Encrypt or Certbot metod using DNS TXT challenge? :thinking:

Since Cloudflare’s Universal SSL certificate is also using CA of Let’s Encrypt to generate such, which might results of you experiencing such error, and we don’t see those TXT records in the UI.

May I ask if you’ve tried using Cloudflare API to fix this? :thinking:

Hi fritex! Thanks for your reply. I’m adding those TXT records as you said for SSL certificate renewal, since we received some emails from Cloudflare to add those specific records and then validate the renewal, so it might be a bit strange that those are already generated.

I could try with the API, but I don’t have the corresponding dns_record_id to delete the existing one (which is not in the UI as you said). From what I inspected, that API is the same used from the UI too, so I don’t feel it will have too much difference neither. In fact, using a DNS checker, the TXT records are not found neither, so as I said, I’m quite stuck! :slightly_frowning_face:

I have the exact same issue. Contacted support weeks ago but still haven’t received an answer and the certificates expire tomorrow.

I have the same issue.
Has anyone discovered a solution?

Nothing on my side yet. I have submitted a case to Cloudflare support, but still no reply from their side.

Have the same issue. Was it resolved?

Did anyone find a solution?

Same issue. I need to add two DNS records. The first one is added, but the second one gives an error.

I would also ask you to please give a more detailed description of how exactly this happened. Did you all create the records via Terraform and then deleted them in the UI? Were quotes related to the problems?

What error exactly do you see? Can you post a screenshot that shows your existing records, so we can confirm it doesn’t actually exist already?

I received MULTIPLE emails saying “Domain Control Verification (DCV) failed…” and asking me to add two “_acme-challenge” TXT records to DNS. I added the first one with no problem, but the second one gave me the error “An identical record already exists”.
I posted a message in this thread, but a few minutes after your reply the problem was resolved and I got the “Certificate renewal has succeeded…” email. I don’t know if this happened on its own or if you helped somehow.

I’m not a Cloudflare employee, so I certainly did not do anything. Glad it’s working for you now.

2 Likes

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.