IDataCubeServiceGenerateDataCube Method (Guid, Guid, IEnumerableString, PersistencePolicy)

Creates and saves a DataCube using a compatible structure as the starting SelectTransform. A final ResultTransform is added automatically and connected automatically.

Namespace:  Dundas.BI.Entities.DataCubes
Assembly:  Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (24.3.0.1000)
Syntax
DataCube GenerateDataCube(
	Guid parentId,
	Guid structureId,
	IEnumerable<string> dataElements,
	PersistencePolicy persistencePolicy
)

Parameters

parentId
Type: SystemGuid
The ID of the parent file or folder.
structureId
Type: SystemGuid
The structure ID.
dataElements
Type: System.Collections.GenericIEnumerableString
The data elements.
persistencePolicy
Type: Dundas.BI.EntitiesPersistencePolicy
A value indicating whether the entity should be created as persistent or transient.

Return Value

Type: DataCube
The newly created DataCube.
Exceptions
ExceptionCondition
ArgumentNullExceptiondataElements is .
ArgumentExceptionstructureId references a structure that is not compatible with one of the supported SelectTransform transforms or parentId is Empty.
NoPrivilegeExceptionCaller does not have access to the specified data connector.
InvalidSessionExceptionThe caller context is not associated with a valid session.
DataProviderLoadExceptionThe data provider may throw this exception if it requires third party driver to be installed.
DataConnectionExceptionThe connection cannot be established.
NotFoundExceptionThe structure with the specified structureId or parentId does not exist.
QuotaExceededExceptionGenerating the data cube would cause the entity quota for data cubes or one of the underlying entity types to be exceeded.
See Also