/dataverse-sdk-for-python:dataverse-python-advanced-patternsfrom dataverse-sdk-for-python
Generates production-ready Microsoft Dataverse SDK for Python code with advanced error handling, retries, batch operations, optimized OData queries, metadata management, file upload, and pandas workflows.
Ships in dataverse-sdk-for-python. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Generate production-grade Microsoft Dataverse SDK for Python examples that combine robust error handling, retry policy, bulk operations, OData optimization, metadata operations, cache management, file transfer, and pandas integration.
| Pattern | Required APIs or concepts | Implementation rule |
|---|---|---|
| Error handling and retry logic | DataverseError, is_transient, exponential backoff | Catch Dataverse-specific errors, retry only transient failures, and cap retries. |
| Batch operations | bulk create, bulk update, bulk delete | Preserve per-record success/failure details and make retry idempotent. |
| OData query optimization | filter, select, orderby, expand, paging | Select only needed columns, use logical names, and page deterministically. |
| Table metadata | custom tables, column type definitions, option sets | Use correct Dataverse logical names and IntEnum for option-set values. |
| Configuration and timeouts | DataverseConfig, http_retries, http_backoff, http_timeout, language_code | Put transport policy in configuration instead of ad hoc sleeps. |
| Cache management | picklist cache flush | Flush picklist cache after metadata or option-set changes. |
| File operations | chunked upload, simple upload | Use chunked upload for large files and simple upload for small files where supported. |
| Pandas integration | PandasODataClient, DataFrame workflows | Use pandas only when tabular analysis or export/import is requested. |
| Situation | Action |
|---|---|
DataverseError with is_transient true | Retry with exponential backoff and jitter. |
| Validation or permission error | Do not retry; report the table, operation, and logical name involved. |
| Partial batch failure | Persist successful IDs, retry failed transient records only, and avoid duplicating creates. |
| Timeout | Use DataverseConfig.http_timeout and idempotent retry boundaries. |
$select/select to reduce payload size and avoid retrieving unused columns.IntEnum so code uses named constants while Dataverse receives numeric values.| Workflow | Use | Avoid |
|---|---|---|
| Simple file upload | Small File column payloads accepted by the SDK in one request. | Loading large files entirely into memory without checking size. |
| Chunked upload | Large File column uploads or service limits requiring chunks. | Retrying from the beginning without checking committed chunks. |
PandasODataClient | DataFrame analysis, transformation, import/export, or reporting. | Replacing simple CRUD with pandas just because it is available. |
## Dataverse Python advanced pattern
**Status:** generated | needs environment details | blocked
**Pattern:** retries | batch | OData | metadata | config | cache | file | pandas
### Code
```python
<production-ready snippet with docstrings and type hints>
```
### API coverage
| API or concept | Used where | Reason |
| --- | --- | --- |
| `DataverseError` | `<function>` | transient retry handling |
| `DataverseConfig` | `<client setup>` | timeout and retry policy |
### Validation
- Logical names verified: yes/no
- Retry boundaries documented: yes/no
- Official API references included for each class/method: yes/no
DataverseError is caught and is_transient controls retry decisions.IntEnum for option sets.DataverseConfig covers http_retries, http_backoff, http_timeout, and language_code when configuration is shown.PandasODataClient is used only for DataFrame workflows.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub gbb-acelerators/awesome-harness-primitives --plugin dataverse-sdk-for-python4 skills in this plugin
/dataverse-python-production-codeGenerate production-ready Python 3.10+ code for the PowerPlatform-Dataverse-Client SDK with DataverseError handling, singleton client management, retry with exponential backoff for 429/timeout failures, OData optimization, audit logging, type hints, docstrings, configuration handling, and usage examples. Use when asked for Dataverse Python code, SDK examples, or system instructions./dataverse-python-quickstartGenerate concise Microsoft Dataverse SDK for Python preview setup, authentication, CRUD, bulk create/update, paging, and optional File column upload snippets using official patterns. Use when the user asks for Dataverse Python quickstart code, SDK setup, InteractiveBrowserCredential, retrieve-multiple paging, or basic CRUD examples./dataverse-python-usecase-builderGenerate complete Python solutions for Microsoft Dataverse SDK business use cases, including architecture, table design, CRUD, batch, query, file, scheduled, or real-time patterns. Use this skill when the user describes a Dataverse business need and asks for production-ready Python code, PowerPlatform-Dataverse-Client guidance, or Dataverse solution architecture.Other plugins' skills for the same job