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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials

question

Upvotes
Accepted
18 2 9 11

DSS REST API error message: «ThomsonReuters.Dss.Api.NotFoundException: ExtractedFile of id 'VjF8fDQxMjQ5NDIxNw' not found».

Hi All,

one of my clients is experiencing an error message: «ThomsonReuters.Dss.Api.NotFoundException: ExtractedFile of id 'VjF8fDQxMjQ5NDIxNw' not found». when trying to fetch the actual file after running "extractionsContext.LoadProperty(reportExtraction, «Files»" command. It appears only when there is a partial file present (i.e. the files named Intraday.5min.csv / Intraday.10min.csv / Intraday.15min.csv). Obviously the file id varies and the error does not pop out every time.

Can you please advise?

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.

@lukasz.ossowski, that should not happen, but with the info you give it is difficult to diagnose or solve the issue. Could your customer share his actual code ? That might help us investigate.

Please also tell your customer to use diagnostics headers, as described here, and to send us the file ID that is not found, as well as the Client-Session-Id and Request-Execution-Correlation-Id used when he runs into the issue. That will help us trace the call.

@lukasz.ossowski, thank you for your participation in the forum. Are any of the replies below satisfactory in resolving your query? If yes please click the 'Accept' text next to the most appropriate reply. This will guide all community members who have a similar question. Otherwise please post again offering further insight into your question. Thanks, AHS

@lukasz.ossowski

Hi,

Thank you for your participation in the forum.

Is the reply below satisfactory in resolving your query?

If yes please click the 'Accept' next to the appropriate reply. This will guide all community members who have a similar question. Otherwise please post again offering further insight into your question.

Thanks,

AHS

Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.

Thanks,

-AHS

Upvotes
Accepted
13.7k 26 8 12

@lukasz.ossowski, I received an answer from the dev team:

The Get Request was performed 840 milliseconds before the file was available. That would explain the later Request completing successfully.

So it seems there was sort of a race condition ... maybe the customer should just add a pause of a few seconds between the time the extraction is labeled "complete", and the moment he attempts to retrieve the file, that should solve it.

Side note: this makes me wonder if the customer is polling the extraction status (to find out when he can retrieve the files) at too short an interval ? The polling interval should be reasonable, I'd say 30 seconds or more, see page 8 of the best practices document.

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
18 2 9 11

client-update-rest-api.pdf

Hi Christiaan,

please find attached detailed response from the client. Hope it will be useful.

Best,

Lukasz


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.

@lukasz.ossowski, that is a good starting point, but I will still need the code to delve in deeper. I escalated this to the dev team to see if they can trace the IDs you gave us and maybe explain the issue on that basis.

@lukasz.ossowski, just to keep you informed, the dev team is working on this, using the IDs you sent. I'm waiting for their conclusion.

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.