Manage Legal Addresses Setup Task Guidance
Purpose
Provides task-specific setup planning, routing, export, import, and validation guidance for Manage Legal Addresses under Legal Structures.
Setup Task Skill Contract
- task_code:
XLE_MANAGE_LEGAL_ADDRESSES - task_name:
Manage Legal Addresses - parent_skill_id:
erp.financials.legal-structures - pillar:
ERP - offering:
Financials - functional_area:
Legal Structures - functional_area_code:
ORA_ASK_LEGAL_STRUCTURES - available_flag:
Y - export_import_supported_flag:
Y - csv_export_import_supported_flag:
Y - source_catalog:
knowledge/setup-task-catalog/effective/setupTasksAll.json
Usage
Use this skill when planning, sequencing, exporting, importing, or validating setup data for Manage Legal Addresses under Legal Structures.
Setup Task Metadata
- Task name:
Manage Legal Addresses - Task code:
XLE_MANAGE_LEGAL_ADDRESSES - Available:
Y - Export/import supported:
Y - CSV export/import supported:
Y - CSV export/import routing:
supported
CSV Export, Import, and Validation Workflow
CSVExportImportSupportedFlag is Y for this task, so route task setup data work through the relevant skills:
- Export setup task data with
shared.setup-export.task-level-export. - Validate setup task data with
shared.validation.setup-data-validator. - Validate reference data with
shared.validation.reference-data-validator. - Load the task-local
ora-resource/ora_rule_registry.jsonand run its referenced input, lookup, dependency, defaulting, design, error-handling, and final-package-readiness checks. The ora-resource graph validates the candidate; it does not create a Fusion mutation. - Prepare the FSM archive locally using the contract below.
- Hand the exact final archive to
core.data-loaderonly after the local workflow returnsREADY_FOR_DATA_LOADER_PREVIEW.
Use this task metadata when invoking those skills:
- Offering:
Financials - Functional area / Setup Object:
Legal Structures - Setup task name:
Manage Legal Addresses - Setup task code:
XLE_MANAGE_LEGAL_ADDRESSES
Local-Only FSM Package Preparation
This assisted workflow prepares a package locally and stops before upload or any Fusion mutation.
- Require a fresh, same-target, same-release, successful same-task FSM export as the immutable baseline. Bind the exact environment and task identity, current
ASM_SETUP_CSV_METADATA.xml, exact CSV member hierarchy, exact header spelling and order, and the exported encoding. - Re-run the complete task ora-resource graph against the reviewed inputs and baseline. Fail closed with a task-specific package-contract gap if any source, mapping, value, member hierarchy, header, encoding, carrier, or system-blank rule is missing or ambiguous; do not invent a package contract.
- Build a new-rows-only upload archive; the immutable export is reference evidence for metadata, headers, and duplicate checks, never the upload payload. Preserve
ASM_SETUP_CSV_METADATA.xmlbyte-for-byte and retain the exact exported CSV member hierarchy, header bytes/order, and encoding. InXLE_LE_LEGAL_ADDRESS.csv, include only the reviewed new addresses that passed complete-scope duplicate checks. Keep every companion CSV header-only with zero data rows. Exclude every existing baseline row, including existing addresses, legal entities, establishments, registrations, and functions. Omitting rows from this create package does not request deletion in Fusion. Do not submit an unfiltered export or append new rows to a populated baseline for upload. - Every new address row must have nonblank
LeFormattedAddress,CreatedByModuleset toXLE_CREATE_LE, and a new collision-checkedOrigSystemReference. Apply the deterministic formatting contract inora-resource/ora_defaulting_rules.md: replace every comma in a supplied complete single-line address with/, preserving the other characters and spaces. For component-only input, derive a nonblank value from the reviewed components and resolved country layout; block if the source or mapping is ambiguous. Validate the final CSV value, not just the input or preview. - Do not copy physical IDs, audit fields, object-version fields, ESS fields, or service-owned values from the baseline or another row. Copy a value only when the task resources explicitly authorize it as a carrier. Keep Fusion-generated
FormattedAddressandFormattedMultilineAddressblank; this blank treatment never applies toLeFormattedAddress. - Reparse every CSV in the final ZIP. Require its address data-row count and identities to equal exactly the reviewed unique new candidate set, all
LeFormattedAddressvalues to be populated and normalized, existing data rows included to equal zero, and every companion data-row count to equal zero. Require at least one new row; if all requested addresses already exist, return Existing Match without submitting an empty import. Block a mismatch before Data Loader preview. Produce the immutable archive, SHA-256, per-member baseline/upload row counts, header/metadata fingerprints, and a semantic diff explicitly showing excluded baseline rows and newly authored rows. Record a sanitized package-preparation receipt. - Any source, mapping, value, package byte, member inventory, or hash change invalidates this preview state and requires the full validation and package-preparation workflow to run again.
- On success, return
READY_FOR_DATA_LOADER_PREVIEW. Do not claimREADY_FOR_IMPORTor approval. Stop before upload or mutation and hand the exact immutable archive tocore.data-loader, which owns Task Hook validation, preview, explicit approval, archive-hash verification, upload, and initiation. A standalone new-rows-only package is the normal contract for this task, not an exception requiring a baseline-preservation waiver.
Outcome Reporting and Verification
Keep the central Data Loader approval, initiation, monitoring, and report contracts unchanged. Accepted initiation means submitted, not created; return its initiation report without automatic status polling. When the user requests status, results, errors, or verification, use the central monitoring workflow and apply ora-resource/ora_error_handling.md before making a task-level success or failure claim.
Inspect the current, correctly correlated FSM ProcessLog, underlying process completion state, and relevant object counters alongside Data Loader status/errors. A Data Loader error with a still-running FSM process is a status discrepancy, not proof that address creation failed. Missing or incomplete logs leave the task outcome unverified. Confirm exact new-row persistence through a fresh same-target export before claiming the address or a particular field value is present in Fusion. Distinguish the authored LeFormattedAddress from the returned value and Fusion-generated display fields; do not promise the submitted slash string will be displayed verbatim.
Inputs
implementation_objectiveproject_contextsetup_task_scopesetup_data_artifacts
Outputs
setup_task_plansetup_data_routingvalidation_checkpointsskill_run_recordtoken_usage_record
Implementation Notes
Use the parent functional-area skill erp.financials.legal-structures for functional-area sequencing and scope decisions. Track token usage for any generated project artifact or skill-run record using the manifest policy.