ITokenServiceCreateGlobalDataToken Method | 
Namespace: Dundas.BI.Data.Parameters.Tokens
DataToken CreateGlobalDataToken( string tokenName, Guid projectId, Guid sourceStructureId, string elementName, TokenDataCategory category )
| Exception | Condition | 
|---|---|
| ArgumentException | projectId or sourceStructureId is Empty. | 
| ArgumentException | category is not a valid TokenDataCategory. -or- the specified source structure is not a DataCube or a NativeStructure.  | 
| ArgumentException | tokenName or elementName is or Empty. | 
| NotFoundException | The specified source structure or the data element cannot be found. | 
| NoPrivilegeException | The caller does not have permission to update the token. -or- The caller does not have permission to update the token for the token tenant.  | 
| InvalidSessionException | The caller context is not associated with a valid session. |