Open this page in the API Guide

IDataCubeService.GenerateDataCube Method (String, Guid, Guid, IEnumerable<String>, IEnumerable<String>, EntityCreationOptions)

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 (25.1.0.1000)
Syntax
DataCube GenerateDataCube(
	string name,
	Guid parentId,
	Guid structureId,
	IEnumerable<string> measures,
	IEnumerable<string> hierarchies,
	EntityCreationOptions options
)

Parameters

name
Type: System.String
The name of the data cube.
parentId
Type: System.Guid
The ID of the parent file or folder.
structureId
Type: System.Guid
The structure ID.
measures
Type: System.Collections.Generic.IEnumerable<String>
The measure elements.
hierarchies
Type: System.Collections.Generic.IEnumerable<String>
The hierarchy elements.
options
Type: Dundas.BI.Entities.EntityCreationOptions
Options for saving the new entity; or null to use the default options.

Return Value

Type: DataCube
The newly created DataCube.
Exceptions
ExceptionCondition
ArgumentNullExceptionmeasures or hierarchies is null.
ArgumentExceptionname is null or Empty or measures and hierarchies have no elements or parentId is Empty or structureId references a structure that is not compatible with one of the supported SelectTransform transforms.
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.
DuplicateItemExceptionThe name for the data cube is not unique.
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