R

Tuesday, August 1st, 2023 6:45 PM

Error when using outputModule API

We are on Collibra version
Build Number:20230630114817
Product Version: 2023.07.0-22

Simple Java code to use outputModuleApi, It results in error. Code is simply

OutputModuleApi outputModuleApi = new OutputModuleApi(apiClient);
String configOut = outputModuleApi.getTableViewConfigByViewId(viewConfigUUID, “REFERENCE_DATA_CODEVALUES_AND_SETS”); // This works and returns a JSON string see 1 below. The string is truncated for brevity
System.out.println(configOut);
JsonElement element = JsonParser.parseString(configOut);
System.out.println(element.isJsonObject());//Check if JSON String is valid see 2 below
Job dataOut = outputModuleApi.exportExcelInJob(false, true, null, null, true, true, configOut);//Export data. This gives an error… See message below in 3

This is the output:

  1. {“TableViewConfig”:{“displayLength”:50,“Resources”:{“Term”:{“Signifier”:{“name”:“FullName”},"DisplayNa…
  2. true
  3. 400//{“statusCode”:400,“titleMessage”:“Value not allowed”,“userMessage”:"The JSON String does not correspond to JSON format: "{\“TableViewConfig\”:{\“displayLength\”:50,\"Resou

Please help.

Thanks
-Rajesh

No Responses!
Loading...