Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us at FabCon Vienna from September 15-18, 2025, for the ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM. Get registered

Reply
chetanhiwale
Helper II
Helper II

Create Data Pipeline with existing definition using Terraform

Hi Folks,

I am trying to create data pipelines using Terraform where  I already have defined definition at a path. In path, the defination is in JSON format so no need to decode the defination from Base64 format. I am getting following error, any one has faced similar error. 

Error : 

Error: Create operation

│ with fabric_data_pipeline.bronze_pipelines["PL_BRONZE_"],
│ on items.tf line 5, in resource "fabric_data_pipeline" "bronze_pipelines":
│ 5: resource "fabric_data_pipeline" "bronze_pipelines" {

│ Could not create resource: The request could not be processed due to an error

│ Error Code: UnknownError



Terraform Source Code

resource "fabric_data_pipeline" "bronze_pipelines" {
  for_each = toset(var.bronze_datapipelines)
  display_name              = each.value
  description               = "example with definition bootstrapping"
  workspace_id              = var.workspace_id
  format                    = "Default"
  definition = {
    "pipeline-content.json" = {
      source = "${var.bronze_base_path}/datapipelines/${each.value}.DataPipeline/pipeline-content.json"
      tokens = {
        "MyValue" = "World"
      }
    }
  }
}
Path : chetanhiwale_2-1750399749633.png

 

 

2 REPLIES 2
v-aatheeque
Community Support
Community Support

Hi @chetanhiwale ,
Thanks for raising this query in Fabric Community Forum.

Thanks for sharing the error and the context.

The error you’re encountering could you try the below trouble shooting steps :

 

  • Ensure that the JSON file located at the specified path (${var.bronze_base_path}/datapipelines/${each.value}.DataPipeline/pipeline-content.json) is valid and correctly formatted. You can use a JSON validator to check for any syntax errors. Confirm that the path to the JSON file is correct and accessible.
  •  Ensure that the Terraform process has the necessary permissions to read the file.
  • Double-check the values of " var.bronze_datapipelines " and " var.workspace_id "to ensure they are correctly defined and populated. Incorrect or empty values could lead to errors during resource creation.
  • Ensure that the fabric_data_pipeline resource configuration is correct.
  • Ensure you're using the latest version of the Microsoft Fabric provider. Older versions may not support all features or may have unresolved bugs.

for more info prefer this blog :  Terraform Provider for Microsoft Fabric (Generally Available) | Microsoft Fabric Blog | Microsoft Fa...

Hope this helps !!

 

If this post was helpful, please consider marking Accept as solution to assist other members in finding it more easily.

If you continue to face issues, feel free to reach out to us for further assistance!



Hi  @chetanhiwale 

I wanted to follow up regarding your inquiry about the "UnknownError" you encountered while creating data pipelines using Terraform. I provided some troubleshooting steps in my previous response, but I haven't received any feedback from you yet.

To ensure we can assist you effectively, please take a moment to review the suggestions and let us know if you have made any progress or if you need further assistance.

If the issue is resolved accept the solution.
Your input is valuable, and we want to ensure you receive the support you need.

 

Thank you for your understanding!

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June FBC25 Carousel

Fabric Monthly Update - June 2025

Check out the June 2025 Fabric update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.