datafactory-tips
Skill47 starsChanged 7 months agoMITView on GitHub
Operational tips and best practices for working with Microsoft Fabric Data Factory MCP tools. Use when executing queries, troubleshooting timeouts, creating dataflows end-to-end, or working with large datasets via the DataFactory.MCP tools.
In this repository9 other files it gives its agents.
- agents.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- architecture.mcp-toolsSkill
- builder.datafactorySkill
- coder.datafactory-styleSkill
- datafactory.architectureSkill
- devops.fabric-mcp-integrationSkill
- tester.testing-patternsSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 0 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 13
Use executeOption = "ApplyChangesIfNeeded" on first refresh of API-created dataflows
- Very specific: line 15
Use list_workspaces and filter by name — there is no find_workspace tool
- Very specific: line 17
Create a new dataflow instead of reverting a multi-source one to single-source — there is no remove_connection tool
≈ “Common” is an estimate: at least 1 in 5 of the 383,637 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Data Factory Tips
Operational knowledge for working with Microsoft Fabric Data Factory.
Must / Prefer / Avoid
MUST DO
- Use
executeOption = "ApplyChangesIfNeeded"on first refresh of API-created dataflows - Re-add connections via
add_connection_to_dataflowaftersave_dataflow_definition(save may wipe them) - Use
list_workspacesand filter by name — there is nofind_workspacetool - Validate each connection with
execute_queryafter adding - Create a new dataflow instead of reverting a multi-source one to single-source — there is no
remove_connectiontool
PREFER
- Filter early in M queries to enable query folding (push filters to source)
- Expensive operations (sorting, aggregation) last — streaming operations (filter, select) first
execute_querywithcustomMashupDocumentto iterate on M code before saving- Standard engine for complex transforms; Fast Copy only for simple ingestion
AVOID
get_authoring_guidance— deprecated, author M directly- Sorting early in query chains (requires reading all data before returning results)
SELECT *equivalent without row limits during development — use "Keep First Rows" then remove
Symptom Triage
| Symptom | Likely Cause | Read |
DataflowNeverPublishedError | Default SkipApplyChanges on first run | destinations/dest-new-table.md |
DestinationColumnNotFound | Manual mappings for new table | destinations/dest-new-table.md |
| Credentials error on Lakehouse | Connection not bound | datafactory-connections.md (Binding) |
| FastCopy fails with transforms | Unsupported transform in fast copy | datafactory-advanced.md (Fast Copy) |
| Instant refresh fail (0-3s) | Privacy firewall or unpublished draft | sources/multi-source.md |
| Multi-source instant fail via API | Dirty dataflow or separate Lakehouse.Contents calls | sources/multi-source.md |
IsNewTarget = false fails | Direct navigation on API-created dataflow | destinations/dest-new-table.md |
| Stale connections after revert | save_dataflow_definition doesn't remove connections | datafactory-connections.md (Troubleshooting) |
Knowledge Files
| File | When to Read |
datafactory-core.md | MCP tools, M basics, rolling dates, what-if queries |
datafactory-connections.md | Connection discovery, creation, binding, gateways, troubleshooting connection errors |
datafactory-performance.md | Query timeouts, chunking, query folding, connector selection |
datafactory-advanced.md | Fast Copy limits, Action.Sequence, Modern Evaluator |
datafactory-pipelines.md | Pipeline creation, Dataflow activities, chaining, scheduling |
Destination Files (read only the one you need)
| File | When to Read |
destinations/dest-new-table.md | Creating a new output table via MCP (most common path) |
destinations/dest-existing-table.md | Writing to a table that already exists |
destinations/dest-troubleshooting.md | Diagnosing refresh failures, connection issues, silent errors |
Source Files
| File | When to Read |
sources/multi-source.md | Combining Lakehouse + SharePoint/Web sources, AllowCombine |
sources/sharepoint-excel.md | Reading Excel files from SharePoint via Web.Contents |
M Templates (copy-paste-ready, no prose)
| File | When to Read |
templates/m-new-table-destination.m | Need the complete M section document for a new table |
templates/m-existing-table-destination.m | Need the M section document for an existing table |
templates/m-multi-source-section.m | Need the M section document for multi-source with AllowCombine |
templates/m-sharepoint-excel-source.m | Need the M snippet for SharePoint Excel via Web.Contents |
templates/pipeline-single-dataflow.json | Need pipeline JSON for a single Dataflow activity |
templates/pipeline-chained-dataflows.json | Need pipeline JSON for chained Dataflow activities |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

