Skip to content

[BUG] Error when re-creating entitlements that only require enablement #485

@EliasB17

Description

@EliasB17

Is there an existing issue for this?

  • I have searched the existing issues

What version of the Terraform exporter are you using?

1.4.0

What version of the Terraform CLI/OpenTofu CLI are you using?

1.13.3

What type of issue are you facing

bug report

Describe the bug

When re-creating entitlements from an exported configuration, an error occurs if the entitlement only requires enablement but was exported with a quota value.
This is caused by the default behavior of the exporter, which includes a quota amount for all entitlements — even those that only need to be enabled.

Error Message:
The enable parameter has not been set or the amount parameter was set with a quota value (setting a quota is not supported by multitenant applications and by services that do not permit a numeric quota assignment). [Error: 12003/400]

Expected Behavior

The exporter should differentiate between quota-based and enablement-only entitlements to avoid invalid configurations.

Steps To Reproduce

  1. Export entitlements from a subaccount using the exporter.
  2. Include an entitlement that only requires enablement (no quota).
  3. Use the exported configuration to re-create the entitlement via the Terraform SAP BTP Provider
  4. Observe the error during re-creation.

User's Role Collections

  • Global Account Administrator
  • Subaccount Administrator

Add screenshots to help explain your problem

Image Image

Additional context

I'm currently using a trial account.
If you manually remove the amount attribute from the exported configuration, the entitlement can be successfully re-created.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions