Hi
I’m trying to port EDD views from 10.2.300 to a test instance of 11.1.200 (2021.2). I was provided a script by support for doing so, because the Export function in EDD wasn’t introduced until 10.2.400. It’s failing on a step for redeploying the views in new version.
Support suggest that doing it at 10.2.400, and then exporting will work. I don’t have that environment built, but support are going to test for me.
Poking around I had a query for the coding experts about how these 2 similar but different code blocks:
ERP 10.2.700 version
private OlapCube GetCube(JObject schema)
{
string cubeName = schema["cube"]["name"].ToString();
return _olapCubeService.GetByName(cubeName);
}
Kinetic 2021.2 version
private OlapCube GetCube(JObject schema)
{
string cubeName = schema["cube"]!["name"]!.ToString();
return _olapCubeService.GetByName(cubeName);
}
When I check the log it’s failing because of this:
2022-03-17 23:51:48,822 [36] INFO - == Processing NCR - Open by Dept id aef534e1-368a-437f-8b9e-98022d99a034 ==========
2022-03-17 23:51:48,823 [36] ERROR - Cube Not Found! Moving to next BaseContent
I’m happy that the scheme seems correct:
"cube":{"olapDatasourceId":"4E4AC4ED-E841-408A-8F50-0F1910D9FC72","catalog":"BAQ","name":"QAHoldStock","id":"BD393C91-3B48-48EB-47D7-6A3418A54D8B"}
and the dbo.OlapCubes table has a corresponding entry where the name matches:
Id Catalog Name OlapDatasourceId
BD393C91-3B48-48EB-47D7-6A3418A54D8B BAQ QAHoldStock 4E4AC4ED-E841-408A-8F50-0F1910D9FC72
What do the exclamation marks in the string constructor mean?
Many Thanks
Mark