Groovy BR DataImporter Error: java.lang.UnsupportedOperationException
Summary:
In Groovy business rule, trying to load data using the dataImporter but getting the error: java.lang.UnsupportedOperationException
Content (required):
Have tried many different permutations for the code but cannot get the importer to run. Any ides appreciated.
Version (include the version you are using, if applicable):
PBCS 23.03
Code Snippet (add any code snippets that support your topic, if applicable):
Map<Integer,Map<Dimension,Member>> rowMetadataImport = [:]
Map<Integer,String> rowDataImport = [:]
cube.createDataImportRequest().importData([curr]).withCloseable { dataImporter ->
Tuple importMetadata
List<Member> importColumnMembers = [curr_mbr]
Map<String,String> importData = [:]
RowData rowImportData
for (i in 1..rowImportCounter) {
importMetadata = rowMetadataImport[i] as Tuple