"The string 'DataScope.Select.Api.Extractions.ReportTemplates.ReportTemplateTypes'Composite'' is ...

YD
YD Newcomer

...not a valid enumeration type constant."}

Hi,


I just moved to the new version of the sdk refinitiv with the new url.

using a batch file of composite, keep getting this following error

"The string 'DataScope.Select.Api.Extractions.ReportTemplates.ReportTemplateTypes'Composite'' is not a valid enumeration type constant."}

when reaching this code part -

var availableFields = ExtractionsContext.GetValidContentFieldTypes(ReportTemplateTypes.Composite);

the RESTAPIExampleApplication will work just fine after making the relevant changes.


Any ideas?

Yaniv

Best Answer

  • Jirapongse
    Jirapongse ✭✭✭✭✭
    Answer ✓

    @YD

    I have tested it with the DSS REST API Toolkit 15.0 and it works fine.

    The code is:

    var availableFields = extractionsContext.GetValidContentFieldTypes(ReportTemplateTypes.Composite);

    DebugPrintAndWaitForEnter("Content Fields: " + availableFields.Count());

    The output is:

    Content Fields: 3104

    Please verify the version of the DSS .NET SDK and .NET framework used by the application.



Answers

  • YD
    YD Newcomer

    Hi,

    After reviewing again all project files, apparently some were still referenced to the old components,

    After fixing it issue was resolved.

    thank you!