Getting error while appeniding identifiers
Hi,
Could you please help on the below issue?
When we are appending instrument list using the API getting error ‘Could not find InstrumentList with an Id of "0x072a5b7fbef6b1f7"’ occasionally.
We are using below sequence while appending instrument list
1.instrumentIdentifierList.Add(new InstrumentIdentifier { Identifier = sIdentifier, IdentifierType = GetIdentifierType(sIdentifierType) });
2.pricesnapInstrumentList = new InstrumentList { Name = sScheduledRequestName };
3._extractionsContext.InstrumentListOperations.Create(pricesnapInstrumentList);
4._extractionsContext.InstrumentListOperations.AppendIdentifiers(pricesnapInstrumentList, instrumentIdentifierList, false);
Below is the stack trace
End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at ThomsonReuters.Dss.Core.RestApi.Threading.Tasks.AsyncHelper.RunSync[TResult](Func`1 func) in d:\BuildAgent\work\5085137dd0574126\src\Core\Threading\Tasks\AsyncHelper.cs:line 25 at ThomsonReuters.Dss.Api.Core.OperationsBase.InvokeSynchronously[T](Func`1 action) in d:\BuildAgent\work\5085137dd0574126\src\ServiceLayer\ServiceLayer.Client\Core\OperationsBase.cs:line 397 at ThomsonReuters.Dss.Api.Core.OperationsBase.Execute[T](DssDataServiceContext context, Uri uri, String httpMethod, Boolean isSingle, OperationParameter[] parameters, String queryOptions) in d:\BuildAgent\work\5085137dd0574126\src\ServiceLayer\ServiceLayer.Client\Core\OperationsBase.cs:line 238 at ThomsonReuters.Dss.Api.Extractions.InstrumentListOperations.AppendIdentifiers(InstrumentList instrumentList, IEnumerable`1 identifiers, Boolean keepDuplicates) in d:\BuildAgent\work\5085137dd0574126\src\Api\RestApi.Client\ExtractionsClientApi.generated.cs:line 11950
Regadrs,
Pooja CM