You're hitting the error because the DataSources.json file in your Canvas App is too large for Git to handle during commit.
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!