For a deeper look into our DataScope Select REST API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials

question

Upvotes
Accepted
5 2 2 6

"The string 'DataScope.Select.Api.Extractions.ReportTemplates.ReportTemplateTypes'Composite'' is 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

dss-rest-apidatascope-selectdss
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvote
Accepted
78.9k 250 52 74

@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.



icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
5 2 2 6

Hi,

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

After fixing it issue was resolved.

thank you!

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.