You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
╷
│ Error: failed to update flag "flag" in project "default": 400 Bad Request: {"code":"invalid_request","message":"The fallthrough variation can't be deleted because no off variation is set"}
│
What do we do here?
The text was updated successfully, but these errors were encountered:
Unfortunately, this is by design. I've filed a ticket internally to update the rather unhelpful error message, but essentially what is happening here is that there is an existing environment configuration that is still referencing the index 2 variation as a fallthrough. We use updates to the global flag configuration to inform future environment configurations only, which is why you are hitting this error.
If you have environment configurations set up in Terraform, you will want to run through and check them for reference to the index 2 variation and update those together with your global flag update to delete the variation. If they are not configured in Terraform, you will unfortunately have to update them manually from the flag targeting page in each individual environment before applying your global launchdarkly_feature_flag changes again. If you have too many environments configured with this flag for this to be feasible and you are okay with otherwise losing all your environment-specific flag configurations, a nuclear option you could consider is deleting the flag entirely and then recreating it.
I'm so sorry that there isn't a better solution to this. I hope it doesn't cause too much of an inconvenience.
Version: 2.5.0
I am not really sure what this error means:
Essentially we have three variations defined like so (lines omitted for clarity):
We are removing
two
, but makingthree
the default, so we get a plan like this:And we applying we get this error:
What do we do here?
The text was updated successfully, but these errors were encountered: