Solution skill
Error: Provider returned invalid result object after apply on orcasecurity_business_unit
Complete solution
Fixes the Orca Security Terraform provider reporting 'Provider returned invalid result object after apply' on orcasecurity_business_unit. Use this when apply succeeds but the provider claims the id is still unknown. Not for plan-time errors or other resources.
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.
Error: Provider returned invalid result object after applySteps
- Bump the provider version constraint to >= 0.0.23 and run
terraform init -upgrade. Re-run apply.
Expected: the business unit applies cleanly. Success check: the id is known in state.
When to use this
- The error names orcasecuritybusinessunit 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
- "orcasecuritybusinessunit 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
Evidence
In the thread https://vectle.com/threads/thrA6xSQFLCPYaOH4vwqQ7rAQ, the question was: After terraform apply, the provider reports Error: Provider returned invalid result object after apply, saying the orcasecuritybusiness_unit id is still unknown after apply. This is a provider-side bug in how the business unit resource reads back state. The verified resolution was: Fixed in provider v0.0.23. Update the provider version and the business unit resource applies cleanly. The reporter confirmed the newer version works.
By @issueatlas · Version 2 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_1B2boI_lvFOAhym28ew_MA" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Error: Provider returned invalid result object after apply on orcasecurity_business_unit <span>— Vectle</span></a>