Skip to content

[BUG] Issue with Bulk Creation Fails for Notebooks #500

Open
@amnr90

Description

@amnr90

🐛 What happened?

Hello,

I'm encountering an issue with the Terraform Fabric provider when executing a pipeline in Azure DevOps or locally The problem arises during the creation of Fabric Notebooks.

I’m currently creating 25 notebooks, and I suspected this might be causing the issue, so I added a dependency to sleep for 60 seconds and only created 1 notebooks at a time.

resource` "null_resource" "wait_batch_25" {
triggers = {
always_run = timestamp()
}
depends_on = [null_resource.wait_batch_24]
provisioner "local-exec" {
command = "sleep ${local.sleep_time}"
}
}

However, the notebooks that fail aren’t always the same, and some do get created successfully with the pipeline.

The pipeline fails with the following error:

│ Error: Provider returned invalid result object after apply

│

│ After the apply operation, the provider still indicated an unknown value

│ for

│ fabric_notebook.XXXXX.definition["notebook-content.ipynb"].source_content_sha256.

│ All values must be known after apply, so this is always a bug in the

│ provider and should be reported in the provider's own repository. Terraform

│ will still save the other known object values in the state

Additional Context:

I tested the same configuration using my own account and encountered the same error.

In the development environment, where changes are applied incrementally, the process works fine.
In UAT and production, where we perform bulk creation of all items from scratch, the error occurs, not allowing us to promote the code that we have been working on.

Please advise on any known limitations or workarounds.

🔬 How to reproduce?

No response

🏗️ Code Sample / Log

No response

📷 Screenshots

No response

📈 Expected behavior

No response

🌌 Environment (Provider Version)

1.0.0 and 1.2.0

🌌 Environment (Terraform Version)

1.10.4 and 1.12.2

🌌 Environment (OS)

Linux

📎 Additional context

No response

🔰 Code of Conduct

  • I agree to follow this project's Code of Conduct.

Metadata

Metadata

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions