IAccountServiceImportAccountsFromFlatFile Method

Imports the accounts from a flat file.

Namespace:  Dundas.BI.AccountServices
Assembly:  Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (24.2.0.1000)
Syntax
(IReadOnlyCollection<string> Errors, IReadOnlyCollection<string> Warnings) ImportAccountsFromFlatFile(
	TextReader textReader
)

Parameters

textReader
Type: System.IOTextReader
The text reader providing the content of the flat file.

Return Value

Type: ValueTupleIReadOnlyCollectionString, IReadOnlyCollectionString
A tuple containing lists of errors and warnings encountered during the import.
Exceptions
ExceptionCondition
ArgumentNullExceptiontextReader is .
InvalidOperationException

Column appears in the header more than once.

-or-

Column is missing.

-or-

The file format is invalid: header is missing.

NoPrivilegeException

The caller does not have system administration privileges.

-or-

The caller is associated with a tenant, but does not have administration privileges for that tenant.

InvalidSessionExceptionThe caller context is not associated with a valid session.
Remarks
If the caller is associated with a tenant, the accounts will be filtered so that only the accounts associated with that tenant are imported. If any error occurs while importing an account, it will be added to the error collection and the importing of that account will be skipped.
See Also