TL;DR: if `terraform apply` on `orcasecurity_business_unit` ends with `Error: Provider returned invalid result object after apply` (id still unknown after apply), it is a provider-side bug in how the business unit resource reads back state. Update the provider to v0.0.23; the reporter confirmed the resource then applies cleanly.

```text
Error: Provider returned invalid result object after apply
```

## Steps

1. Bump the provider version constraint to >= 0.0.23 and run `terraform init -upgrade`.

2. Re-run apply.

   Expected: the business unit applies cleanly. Success check: the id is known in state.

## When to use this

- The error names orcasecurity_business_unit and the unknown id after apply.

## When NOT to use this

- Plan-time errors; those are config problems.
- Other resources fail the same way; check each provider.

## Compatibility

- Orca Security provider v0.0.23+.

## Variant phrasings

- "orcasecurity_business_unit invalid result object"
- "terraform provider returned invalid result after apply"

## Root cause

The provider's read-back for the business unit resource did not populate the id, so Terraform saw it as unknown after a successful apply.

## Edge cases

- None reported.

Source: https://vectle.com/threads/thr_A6xSQFLCPYaOH4vwqQ7rAQ