Transactions and Concurrency
Scope transactions and survive concurrency in D365FO — ttsbegin/ttscommit rules, optimistic concurrency and UpdateConflict retry, UnitOfWork, and the error-handling patterns that go with them. Invoke when the user asks about transactions, tts levels, locking, update conflicts, retry, or where to put try/catch.
Install
npx skills add dynamics365ninja/d365fo-cli --skill transactions-and-concurrencygit clone --depth 1 https://github.com/dynamics365ninja/d365fo-cli.git /tmp/d365fo-cli
mkdir -p ~/.claude/skills
cp -r /tmp/d365fo-cli/skills/anthropic/transactions-and-concurrency ~/.claude/skills/transactions-and-concurrencyPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
> ⛔ **NEVER write X++ AOT XML files directly** via PowerShell, terminal file commands (`Set-Content`, `Out-File`, `New-Item`), editor write tools, or any raw text approach. The XML schema is proprietary. **ALWAYS use `d365fo generate …` commands** to produce correct AOT XML. If `d365fo` is unavailable in PATH, stop and ask the user to install it. # Transactions, concurrency and errors ## 1. Transaction scoping - `ttsbegin` and `ttscommit` are **reference-counted**: nesting is legal, and only the outermost `ttscommit` writes. - **Always pair them.** An unbalanced pair is a runtime crash, not a warning. - **Inside an open transaction, exactly two exceptions can reach an inner `catch`** — `Exception::UpdateConflict` and `Exception::DuplicateKeyException` — and **only when named explicitly**; a bare catch-all inside tts does not catch even those two. Every other exception aborts the transaction and unwinds to the first `catch` **outside** the tts block, so a general handler inside the block is dead code (validator rule `TTS002`). - `Exception::UpdateConflictNotRecovered` and `Exception::Timeout` cannot be caught inside a transaction at all. - `throw` inside an open transaction implicitly aborts it before unwinding; `finally` blocks still run on every path. - `ttsabort` is for unrecoverable situations, never for normal control flow. - `forUpdate` on the `select` before any `.update()` / `.delete()`.
Details
- Skill name
transactions-and-concurrency- Repository
- dynamics365ninja/d365fo-cli
- Path
skills/anthropic/transactions-and-concurrency/SKILL.md- Repo updated
- 16 November 2026
FAQ
What does the Transactions and Concurrency skill do?
Scope transactions and survive concurrency in D365FO — ttsbegin/ttscommit rules, optimistic concurrency and UpdateConflict retry, UnitOfWork, and the error-handling patterns that go with them. Invoke when the user asks about transactions, tts levels, locking, update conflicts, retry, or where to put try/catch.
How do I install the Transactions and Concurrency skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add dynamics365ninja/d365fo-cli --skill transactions-and-concurrency. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Transactions and Concurrency popular?
It lives in dynamics365ninja/d365fo-cli, which has 49 GitHub stars and 26 forks.
Related skills
Analytics and Er
49dynamics365ninja/d365fo-cli
Model the D365FO analytical and document-generation surfaces — aggregate measurements and the entity store, tiles/cues and KPIs, and Electronic Reporting (ER). Invoke when the user asks about a workspace tile, a KPI, an aggregate measurement, the entity store, Power BI content, or running/binding an ER format.
Barcode Scanning
49dynamics365ninja/d365fo-cli
Barcodes and scanner input in D365FO — printing vs scanning are unrelated code paths, GS1-128 application identifiers, item-barcode resolution, and where the platform parses a scan for you. Invoke when the user mentions barcodes, GS1, GTIN, SSCC, scanning, scanners, item barcodes, or barcode setup.
Build Error Triage
49dynamics365ninja/d365fo-cli
Turn a D365FO compiler, best-practice, or runtime error into the specific fix it calls for. Invoke when the user pastes a build log, an xppc message, a BP violation, or an infolog stack trace and asks what it means or how to fix it.
Sam Voice
38sam-dumont/claude-skills
Apply Sam Dumont's personal writing voice and style when drafting reports, blog posts, technical documentation, client communications, Slack messages, LinkedIn posts, or any written content. Use this skill whenever Sam asks to write, draft, review, or improve text in his voice - including phrases like "write this for me", "draft a post", "in my style", "my voice", "write a report", "blog post", "client email", "Slack message", or any content creation task where Sam's personal tone should come through. Also trigger when Sam asks to translate content while maintaining his voice. Works in both En
Inkbox Call Review
44inkbox-ai/hermes-agent-plugin
Use when the user asks about Inkbox call history, transcripts, missed calls, active-call status, or post-call follow-up work.
Youtube Transcript
62ElliotJLT/Claude-Skill-Potions
Extracts YouTube video transcripts and saves them as structured markdown files with metadata and timestamped content. When a user shares a YouTube URL, IMMEDIATELY runs the extraction script, creates a local folder, and saves the transcript. Handles both manual and auto-generated captions.
Browse the most popular Claude skills, all images, video & audio skills, or write your own with the skills generator.