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.4.0.1000)
Syntax (IReadOnlyCollection<string> Errors, IReadOnlyCollection<string> Warnings) ImportAccountsFromFlatFile(
TextReader textReader
)
Function ImportAccountsFromFlatFile (
textReader As TextReader
) As (Errors As IReadOnlyCollection(Of String), Warnings As IReadOnlyCollection(Of String))
ValueTuple<IReadOnlyCollection<String^>^, IReadOnlyCollection<String^>^> ImportAccountsFromFlatFile(
TextReader^ textReader
)
abstract ImportAccountsFromFlatFile :
textReader : TextReader -> ValueTuple<IReadOnlyCollection<string>, IReadOnlyCollection<string>>
Parameters
- textReader
- Type: System.IOTextReader
The text reader providing the content of the flat file.
Return Value
Type:
ValueTupleIReadOnlyCollectionString,
IReadOnlyCollectionStringA tuple containing lists of errors and warnings encountered during the import.
Exceptions Exception | Condition |
---|
ArgumentNullException | textReader 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. |
InvalidSessionException | The 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