OpenCubeImportResult OpenCubeImport(OdId tOb, OpenCubeImportArg tArg)
tOb. Moniker of the parent object, within which the operation is executed.
tArg. Operation execution parameters.
The OpenCubeImport operation creates an object of data import to cube and returns the context for working with it.
On executing the operation a new object is created in BI server memory that is used for data import. To set up parameters of the obtained object, and also to start import, use the SetCubeImport operation. To get import object state, use the GetCubeImport operation.
To execute the OpenCubeImport operation, in the tObj field specify moniker and in the tArg field specify import object creation parameters. The repository root moniker is specified as a moniker value.
After data is imported, call the CloseCubeImport operation to release BI server resources.
{
"OpenCubeImport" :
{
"tOb" :
{
"id" : "APJPBGEDEHLPFOAEJOPLMILHOOECMEPEOJKDMJHCGFMKDNKM!M!0"
},
"tArg" :
{
"metaGet" :
{
"obInst" : "true",
"parsOwnDefVals" : "true",
"all" : "true"
}
}
}
}
{
"OpenCubeImportResult" :
{
"id" :
{
"id" : "APJPBGEDEHLPFOAEJOPLMILHOOECMEPEOJKDMJHCGFMKDNKM!M!S!IDGLAIGEDEHLPFOAEPEOHNINBKMJBOEEEAINBLLIJNBNHEPDJ"
},
"meta" :
{
"obInst" :
{
"obDesc" :
{
"@ds" : "",
"@isShortcut" : "0",
"@isLink" : "0",
"@ver" : "0",
"@hf" : "0",
"i" : "WAREHOUSE",
"n" : "Warehouse",
"k" : "0",
"c" : "0",
"p" : "4294967295",
"h" : "0",
"hasPrv" : "0",
"ic" : "0",
"trackElementDependents" : "0",
"isPermanent" : "1",
"isTemp" : "0"
}
},
"dimBinds" :
{
"its" : ""
},
"factBinds" :
{
"its" : "",
"newDictionaryName" : ""
},
"parent" :
{
"@ds" : "",
"@isShortcut" : "0",
"@isLink" : "0",
"@ver" : "0",
"@hf" : "0",
"i" : "WAREHOUSE",
"n" : "Warehouse",
"k" : "0",
"c" : "0",
"p" : "4294967295",
"h" : "0",
"hasPrv" : "0",
"ic" : "0",
"trackElementDependents" : "0"
},
"resultType" : "Cube",
"addAllFields" : "0",
"editExistingObject" : "0",
"createStoredView" : "0",
"createETLTask" : "0",
"loadDuplicates" : "0"
}
}
}
public static OpenCubeImportResult OpenCubeImport(MbId mb)
{
var somClient = new SomPortTypeClient(); //Proxy object for operation execution
//Operation execution parameters
var tOpen = new OpenCubeImport()
{
tArg = new OpenCubeImportArg()
{
metaGet = new CubeImportMdPattern()
{
all = true
}
},
tOb = new OdId()
{
id = mb.id + "!0"
}
};
//Create an object of data import to cube
var result = somClient.OpenCubeImport(tOpen);
return result;
}
See also: