Forum Discussion

RehanH14's avatar
RehanH14
Regular Visitor
7 months ago
Solved

Fabric Data Warehouse git update issue with correct stored procedures

We’re seeing a repeatable issue with Fabric Warehouse + Git integration that appears to be a deployment bug, not an actual SQL problem.

Scenario

  • We have a Git-enabled Fabric workspace with a Warehouse.
  • The Warehouse contains a stored procedure.
  • The stored procedure:
    • Compiles successfully
    • Executes successfully
    • Has been tested and works as expected

Steps

  1. Create/update a stored procedure in the Warehouse.
  2. Commit changes to Git.
  3. Create a PR and merge into main (merge succeeds).
  4. Go back to the workspace attached to main.
  5. Select “Update from Git”.

Issue

During Update from Git, the workspace update fails with a SQL syntax error on the stored procedure.

However:

  • The exact same stored procedure runs fine when:
    • Executed manually
    • Created in another workspace
    • Dropped and recreated manually
  • The error only happens during Git sync
  • The syntax error is inconsistent / misleading
  • Manually opening the SP and clicking Save (without changes) allows it to work again

This strongly suggests the issue lies in the Git → Warehouse publish process, not in the SQL itself.

 

Expected Behaviour

  • Workspace should update cleanly from Git
  • Stored procedure should deploy as committed
  • No syntax error should be raised for valid SQL

Question

  • Is this a known issue with Fabric Warehouse Git integration?
  • Are there known limitations or required patterns for stored procedure deployment (e.g. DROP + CREATE vs CREATE OR ALTER)?
  • Is there a recommended workaround until this is fixed?

Happy to provide logs, screenshots, or the full error trace if needed.

Thanks!

  • hi RehanH14 ,

     

    Yes — this appears to be a known limitation in the current Git integration for Fabric Data Warehouse, which is still in preview.

    What’s happening?

    • During Update from Git, Fabric attempts to re-deploy the stored procedure via SQL project logic.

    • This sometimes leads to false syntax errors, even if the procedure runs fine manually or in other workspaces.

    • Simply opening the procedure in Fabric and clicking Save often resolves it — confirming it's a deployment issue, not SQL syntax.

    Known Issues (based on community + Microsoft docs):

    • Git + Warehouse sync can fail inconsistently, especially with stored procedures.

    • Microsoft documentation confirms that Git support is still evolving, with limitations around SQL object deployment.

    • Common issue threads: Example

    Workarounds & Best Practices:

    • Use CREATE OR ALTER PROCEDURE instead of CREATE alone — it's more reliable during deployment.

    • Keep stored procedures modular and simple where possible.

    • Use deployment pipelines or SQL projects for production-grade rollouts.

    • Treat Update from Git as less predictable for complex SQL objects during preview.

    If this post helps, then please appreciate giving a Kudos or accepting as a Solution to help the other members find it more quickly.
    If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

  • v-menakakota's avatar
    v-menakakota
    7 months ago

    Hi RehanH14 ,

    This behavior is expected as Fabric Warehouse Git integration is currently in preview. Please wait for a fix in upcoming releases.

     

    Best Regards, 
    Community Support Team.

3 Replies

  • hi RehanH14 ,

     

    Yes — this appears to be a known limitation in the current Git integration for Fabric Data Warehouse, which is still in preview.

    What’s happening?

    • During Update from Git, Fabric attempts to re-deploy the stored procedure via SQL project logic.

    • This sometimes leads to false syntax errors, even if the procedure runs fine manually or in other workspaces.

    • Simply opening the procedure in Fabric and clicking Save often resolves it — confirming it's a deployment issue, not SQL syntax.

    Known Issues (based on community + Microsoft docs):

    • Git + Warehouse sync can fail inconsistently, especially with stored procedures.

    • Microsoft documentation confirms that Git support is still evolving, with limitations around SQL object deployment.

    • Common issue threads: Example

    Workarounds & Best Practices:

    • Use CREATE OR ALTER PROCEDURE instead of CREATE alone — it's more reliable during deployment.

    • Keep stored procedures modular and simple where possible.

    • Use deployment pipelines or SQL projects for production-grade rollouts.

    • Treat Update from Git as less predictable for complex SQL objects during preview.

    If this post helps, then please appreciate giving a Kudos or accepting as a Solution to help the other members find it more quickly.
    If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

    • v-menakakota's avatar
      v-menakakota
      Community Support

      Hi RehanH14 ,
      Thanks for reaching out to the Microsoft fabric community forum. 

       

      I would also take a moment to thank ssrithar   , for actively participating in the community forum and for the solutions you’ve been sharing in the community forum. Your contributions make a real difference.

      Yes, this aligns with current Fabric Warehouse Git limitations. Since Git integration is still in preview, stored procedures can fail during Update from Git even when the SQL itself is valid. The fact that saving the procedure manually resolves the issue strongly suggests a deployment problem rather than a syntax issue.

       

      Best Regards, 
      Community Support Team

      • v-menakakota's avatar
        v-menakakota
        Community Support

        Hi RehanH14 ,

        This behavior is expected as Fabric Warehouse Git integration is currently in preview. Please wait for a fix in upcoming releases.

         

        Best Regards, 
        Community Support Team.