web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Canvas App Git Integra...
Power Apps
Suggested Answer

Canvas App Git Integration Fails – DataSources.json Too Big to Fit in Source Control

(0) ShareShare
ReportReport
Posted on by 2

We're trying to transition from using pac canvas unpack for Canvas App source control to the built-in Git integration in Power Apps Studio, since pac canvas unpack is now deprecated.

 

However, when enabling Git integration and attempting to commit, we get the following error:

 

"DataSources.json of CanvasApp is too big to fit in source control."

This happens even on apps that are relatively simple, and we've tested with and without various data sources, but the issue persists.

I found a related thread here, but there doesn’t appear to be an official resolution yet:

🔗 Similar issue on Power Platform Community
 

My Questions:


  1. Is there a documented size limit for DataSources.json or the overall Git integration?

  2. Is it possible to exclude or minimize metadata in Git mode (e.g., exclude unused connections or fields)?

  3. Are there recommended practices to keep Canvas Apps within the Git integration size limits?

  4. Could this be a bug or regression in recent Git integration behavior?

I'm trying to adopt Git integration as part of our ALM process, but currently blocked by this issue. Any guidance from Microsoft or the community would be appreciated.

 

Thanks!

Categories:
I have the same question (3)
  • Suggested answer
    wolenberg_ Profile Picture
    1,476 Super User 2026 Season 1 on at
    You're hitting the error because the DataSources.json file in your Canvas App is too large for Git to handle during commit.
     
    Answering your questions:
     
     

    Is there a documented size limit for DataSources.json or Git integration?  

    No official size limit has been published by Microsoft, but the error you're seeing suggests that Git integration has trouble handling large or complex DataSources.json files. This seems to be a known limitation, especially with apps that reference multiple or nested data sources.

    Is it possible to exclude or minimize metadata in Git mode?  

    Not directly. Git integration commits the entire app structure, including all referenced data sources—even if they’re unused. You can reduce metadata by cleaning up unused connectors and simplifying your app’s logic, but selective exclusion isn’t supported.

    Are there recommended practices to stay within Git integration limits?  

    Yes. Keep your app lean:

      Remove unused data sources and connectors.

      Avoid overly complex formulas or nested queries.

      Publish the app before committing (Git only works with the latest published version).

      Test with a minimal app to isolate what’s triggering the error.

    Could this be a bug or regression?  

    Very likely. Others have reported similar issues recently, even with small apps. Microsoft hasn’t confirmed a fix yet, so it’s worth submitting a support ticket or commenting on related threads to help escalate it.

     

    Resources:

    Source control for canvas apps

     
     
     
     
    If this helped or could help others in the community, feel free to give it a like or a kudo — it helps surface useful answers for everyone!
  • CU31101244-1 Profile Picture
    2 on at

    Thank you for the detailed response; it's very helpful!

     

    We’ve already tried:


    • Removing all unused data sources

    • Simplifying formulas

    • Publishing the app before committing

    Even with a stripped-down app, Git integration still fails due to DataSources.json being too large. This appears to affect apps that utilize standard connectors, not just complex sources.

    Since pac canvas unpack is deprecated, Git integration is our only remaining ALM-friendly option, but this issue is currently blocking us from adopting it.

     
     

    Request for Microsoft:


    • Could Microsoft provide clarity on actual size limits (file or repo-level)?

    • Is there any planned fix or roadmap item to improve Git integration scalability?

    • Will there be a supported alternative to pac canvas unpack and when will it be removed entirely?


    •  

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 899

#2
Valantis Profile Picture

Valantis 571

#3
11manish Profile Picture

11manish 499

Last 30 days Overall leaderboard