Share via


LedgerConsolidate.deleteData Method [AX 2012]

Deletes the data that was created that originated in a given company for an account and date range

Syntax

protected void deleteData(CompanyId _companyId)

Run On

Called

Parameters

Exceptions

Exception Condition
Error

The transaction date for a ledger transaction does not fall in a valid period.

Error

The transaction date for a ledger transaction does not fall in a valid period.

Remarks

When the data from a company is being consolidated into the current company any transactional or budget data that was created during a previous consolidation for the account and date range must be removed.

This prevents the over or under statement of account values.

See Also

Reference

LedgerConsolidate Class