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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials

question

Upvote
Accepted
16 0 0 1

GetValidExtractionFieldNamesAsync broken in DataScope Select C# REST API

I am using the latest version of the C# Rest API (14.5.72). It is unable to make a request to get valid field names (GetValidExtractionFieldNamesAsync) due to a namespacing error (ThomsonReuters vs DataScope.Select).


dss-rest-apidatascope-selectdssc#
icon clock
10 |1500

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

Upvotes
Accepted
38.1k 71 35 53

@stephen.drew

@VladVM

Have you changed an endpoint to "https://selectapi.datascope.refinitiv.com/RestApi/v1/"?

Uri dssUri = new Uri("https://selectapi.datascope.refinitiv.com/RestApi/v1/")
string dssUserName = "YourUserId
string dssUserPassword = "YourPassword"
ExtractionsContext extractionsContext = new ExtractionsContext(dssUri, dssUserName, dssUserPassword);
icon clock
10 |1500

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

Upvotes
1 0 0 0

Same for InstrumentListOperations.Create(...) and ReportTemplateOperations.Create(...) and GetByName(...)


DataScope.Select.Api.ValidationException

HResult=0x80131500

Message=Malformed request payload: Unexpected @odata.type 'ThomsonReuters.Dss.Api.Extractions.SubjectLists.DataScope.Select.Api.Extractions.SubjectLists.InstrumentList' in payload

Source=ThomsonReuters.Dss.RestApi.Client

StackTrace:

at DataScope.Select.Api.Core.HttpOData.Http.HttpClientExceptionDecorator.<ParseResponseError>d__1b.MoveNext()

at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

at DataScope.Select.Api.Core.HttpOData.Http.HttpClientExceptionDecorator.<HandleExceptions>d__11.MoveNext()

at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

at DataScope.Select.Api.Core.HttpOData.Http.HttpClientExceptionDecorator.<HandleExceptions>d__11.MoveNext()

at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

at DataScope.Select.Api.Core.HttpOData.Http.HttpAsyncJobStrategy.<InvokeAsync>d__0.MoveNext()

at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

at DataScope.Select.Api.Core.HttpOData.HttpODataClient.<PostAsync>d__3e.MoveNext()

at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

at DataScope.Select.Api.Core.OperationsBaseForHttpODataClient.<>c__DisplayClass103.<<CallOnHttpODataClient>b__102>d__105.MoveNext()

at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

at DataScope.Select.Api.Core.OperationsBaseForHttpODataClient.<CallOnHttpODataClient>d__10b`1.MoveNext()

at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

at DataScope.Select.Api.Core.OperationsBaseForHttpODataClient.<CallOnHttpODataClient>d__108.MoveNext()

at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

at DataScope.Select.Api.Core.Helper.<ReAuthenticateIfNecessaryAsync>d__3.MoveNext()

at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

at DataScope.Select.Api.Core.OperationsBaseForHttpODataClient.<PostAsync>d__64.MoveNext()

at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

at DataScope.Select.Core.RestApi.Threading.Tasks.AsyncHelper.RunSync(Func`1 func)

at DataScope.Select.Api.Core.Helper.InvokeSynchronously(Func`1 action)

at Dss.Api.Examples.Extractions.ReportExtractions.ReportExtractionExamples.GetCompletedByDateRange() in C:\Source\PlayRoom\Refinitiv\Extractions\ReportExtractions\ReportExtractionExamples.cs:line 140


This exception was originally thrown at this call stack:

[External Code]

Dss.Api.Examples.Extractions.ReportExtractions.ReportExtractionExamples.GetCompletedByDateRange() in ReportExtractionExamples.cs


DataScope.Select.Api.ValidationException

HResult=0x80131500

Message=Malformed request payload: Unexpected @odata.type 'ThomsonReuters.Dss.Api.Extractions.ReportTemplates.DataScope.Select.Api.Extractions.ReportTemplates.EndOfDayPricingReportTemplate' in payload

Source=ThomsonReuters.Dss.RestApi.Client

StackTrace:

at DataScope.Select.Api.Core.HttpOData.Http.HttpClientExceptionDecorator.<ParseResponseError>d__1b.MoveNext()

at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

at DataScope.Select.Api.Core.HttpOData.Http.HttpClientExceptionDecorator.<HandleExceptions>d__11.MoveNext()

at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

at DataScope.Select.Api.Core.HttpOData.Http.HttpClientExceptionDecorator.<HandleExceptions>d__11.MoveNext()

at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

at DataScope.Select.Api.Core.HttpOData.Http.HttpAsyncJobStrategy.<InvokeAsync>d__0.MoveNext()

at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

at DataScope.Select.Api.Core.HttpOData.HttpODataClient.<PostAsync>d__3e.MoveNext()

at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

at DataScope.Select.Api.Core.OperationsBaseForHttpODataClient.<>c__DisplayClass103.<<CallOnHttpODataClient>b__102>d__105.MoveNext()

at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

at DataScope.Select.Api.Core.OperationsBaseForHttpODataClient.<CallOnHttpODataClient>d__10b`1.MoveNext()

at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

at DataScope.Select.Api.Core.OperationsBaseForHttpODataClient.<CallOnHttpODataClient>d__108.MoveNext()

at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

at DataScope.Select.Api.Core.Helper.<ReAuthenticateIfNecessaryAsync>d__3.MoveNext()

at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

at DataScope.Select.Api.Core.OperationsBaseForHttpODataClient.<PostAsync>d__64.MoveNext()

at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

at DataScope.Select.Core.RestApi.Threading.Tasks.AsyncHelper.RunSync(Func`1 func)

at DataScope.Select.Api.Core.Helper.InvokeSynchronously(Func`1 action)

at Dss.Api.Examples.Extractions.ReportTemplates.ReportTemplateExamples.GetReportTemplateByName() in C:\Source\PlayRoom\Refinitiv\Extractions\ReportTemplates\ReportTemplateExamples.cs:line 94


This exception was originally thrown at this call stack:

[External Code]

Dss.Api.Examples.Extractions.ReportTemplates.ReportTemplateExamples.GetReportTemplateByName() in ReportTemplateExamples.cs

icon clock
10 |1500

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

Click below to post an Idea Post Idea