Hi All,
I’m trying to write an XS OData service on top of calculation view that is defined as a CUBE (in XSA SP 12). The calc view has several aggregated columns (measures). Here is the service definition for the OData service:
service namespace "com.sap.sample" {
"sap.sample.analytics::CVKF_TEST" as "Test"
keys generate local "GENERATED_ID"
aggregates always;
}
When I call this service, the whole application crashes and I get the following error message. Also, I’m unable to call any other services in this application (unless restarted):
7/23/16 4:00:11.137 PM [APP/42176-0] ERR /hana/shared/CNX/xs/ea_data/mo-15f893dff.mo.sap.corp/executionroot/dbae0e96-ddc6-4a52-bccf-27f12689c376/app/node_modules/sap-xsjs/node_modules/sap-xsodata/lib/model/entityType.js:355
7/23/16 4:00:11.138 PM [APP/42176-0] ERR p.aggregate = cvp.MEASURE_AGGREGATOR ? CV_AGGREGATE_FUNCTIONS[cvp.MEASURE_AGGREGATOR] : null;
7/23/16 4:00:11.138 PM [APP/42176-0] ERR ^
7/23/16 4:00:11.138 PM [APP/42176-0] ERR
7/23/16 4:00:11.138 PM [APP/42176-0] ERR TypeError: Cannot read property 'MEASURE_AGGREGATOR' of undefined
7/23/16 4:00:11.138 PM [APP/42176-0] ERR at /hana/shared/CNX/xs/ea_data/mo-15f893dff.mo.sap.corp/executionroot/dbae0e96-ddc6-4a52-bccf-27f12689c376/app/node_modules/sap-xsjs/node_modules/sap-xsodata/lib/model/entityType.js:355:26
7/23/16 4:00:11.138 PM [APP/42176-0] ERR at Array.forEach (native)
7/23/16 4:00:11.138 PM [APP/42176-0] ERR at EntityType.setCalculationView (/hana/shared/CNX/xs/ea_data/mo-15f893dff.mo.sap.corp/executionroot/dbae0e96-ddc6-4a52-bccf-27f12689c376/app/node_modules/sap-xsjs/node_modules/sap-xsodata/lib/model/entityType.js:352:21)
7/23/16 4:00:11.138 PM [APP/42176-0] ERR at processRows (/hana/shared/CNX/xs/ea_data/mo-15f893dff.mo.sap.corp/executionroot/dbae0e96-ddc6-4a52-bccf-27f12689c376/app/node_modules/sap-xsjs/node_modules/sap-xsodata/lib/model/metadataReader.js:156:20)
7/23/16 4:00:11.138 PM [APP/42176-0] ERR at done (/hana/shared/CNX/xs/ea_data/mo-15f893dff.mo.sap.corp/executionroot/dbae0e96-ddc6-4a52-bccf-27f12689c376/app/node_modules/sap-xsjs/node_modules/hdb/lib/protocol/Result.js:120:15)
7/23/16 4:00:11.138 PM [APP/42176-0] ERR at done (/hana/shared/CNX/xs/ea_data/mo-15f893dff.mo.sap.corp/executionroot/dbae0e96-ddc6-4a52-bccf-27f12689c376/app/node_modules/sap-xsjs/node_modules/hdb/lib/protocol/Result.js:212:5)
7/23/16 4:00:11.138 PM [APP/42176-0] ERR at next (/hana/shared/CNX/xs/ea_data/mo-15f893dff.mo.sap.corp/executionroot/dbae0e96-ddc6-4a52-bccf-27f12689c376/app/node_modules/sap-xsjs/node_modules/hdb/lib/protocol/Result.js:217:14)
7/23/16 4:00:11.138 PM [APP/42176-0] ERR at nextTickCallbackWith0Args (node.js:423:9)
7/23/16 4:00:11.138 PM [APP/42176-0] ERR at process._tickCallback (node.js:352:13)
7
Has anyone else come across this problem in XSA? What could be the issue here?
Thanks,
Isuru