Missing completed extraction returned via API

Hi,
I have a few scheduled extracts that I want to pull out via the C# .NET SDK. I can retrieve the completed extractions if they are dated after 2018-12-07. (Note: It's currently 2019-01-07 here)
No results is returned if I look for anything before the aforementioned date, but works fine if I use any dates after. (For the dates that have a trigger anyway)
Via the Web UI, I can see and download the extracts prior to 2018-12-07. (I used an arbitrary 2018-12-04).
The earliest extract for this schedule should have been 2018-10-10.
There are no paging available, and I didn't play with the maxPage property (defaults to 250 apparently?)... and I'm only getting 21 results.
Is there some settings that I'm missing...?
Thanks
Regards,
EDIT: I've added images for clarity:
1. From the web UI, there are 26 items available (between the date range for 2018-12-01 to 2019-01-08).
Also, there are files older than 2018-12-08...
Please note, the reports are only running between Mon-Fri (inclusive)
2. From the code (I'm using GetCompletedByScheduleId for simplicity sake)... there are only 20 records, and no paging is available.
Furthermore, the oldest record is dated 2018-12-10
Best Answer
-
Hi @benedict.chiu,
I have done some tests and found similar result. According to API Reference Tree, the ReportExtractions and ExtractedFiles exist in the DataScope Select's databases for a limited time. Currently, that time window is 45 days. However, it seems that some ReportExtractions within this period are not listed in results of GetCompletedByScheduleId.
For workaround, you can use ExtractFiles/GetAll to get the same result as Web UI. The GetAll retrieves all types of ExtractedFiles (i.e. result and Note files), so you need to filter only the FileType = ExtractedFileType.Full. Also, the result also includes ExtractedFile of on demand extraction which is not listed on Web UI. You may need to filter the file started with "_OnD_" prefix out.
Below is the sample code.
var firstPage = ExtractionsContext.ExtractedFileOperations.GetAll();
//Output
System.Console.WriteLine("FIRST PAGE:");
foreach (var extractedFile in firstPage)
{
if (extractedFile.FileType == ExtractedFileType.Full)
System.Console.WriteLine("Filename: {0}, Size: {1}, ReceivedDate: {2}",
extractedFile.ExtractedFileName, extractedFile.Size, extractedFile.ReceivedDateUtc);
}0
Answers
-
Do you mean that you can get extracted result but it doesn't have all extracts? If so, this could be the incomplete output issue stated in this advisory.
Most Tick History reports deliver output as a gzip file. If a report is large, it delivers its output as
several smaller gzip files concatenated into a single large gzip file. The issue is that some HTTP client does not support concatenated gzip files.To avoid this issue, you need to disable AutomaticDecompression, download gzip file, and then decompress the gzip file using function which supports concatenated gzip file. Sample C# codes are provided in page 4-5 of the advisory. For further information, please refer to the .Net SDK Tutorial 5 which illustrates various ways of downloading and saving extraction data from TRTH.
0 -
Hi,
I've updated the question with some screenshots for clarity, but I don't believe the issue is related to the advisory... thanks!
0 -
Thanks a lot for your assistance. Much appreciated!
0
Categories
- All Categories
- 3 Polls
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 690 Datastream
- 1.4K DSS
- 629 Eikon COM
- 5.2K Eikon Data APIs
- 11 Electronic Trading
- 1 Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 255 ETA
- 559 WebSocket API
- 39 FX Venues
- 15 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 25 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 279 Open PermID
- 45 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 23 RDMS
- 2K Refinitiv Data Platform
- 716 Refinitiv Data Platform Libraries
- 4 LSEG Due Diligence
- LSEG Due Diligence Portal API
- 4 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.2K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 12 World-Check Customer Risk Screener
- 1K World-Check One
- 46 World-Check One Zero Footprint
- 45 Side by Side Integration API
- 2 Test Space
- 3 Thomson One Smart
- 10 TR Knowledge Graph
- 151 Transactions
- 143 REDI API
- 1.8K TREP APIs
- 4 CAT
- 27 DACS Station
- 121 Open DACS
- 1.1K RFA
- 106 UPA
- 194 TREP Infrastructure
- 229 TRKD
- 918 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 95 Workspace SDK
- 11 Element Framework
- 5 Grid
- 19 World-Check Data File
- 1 Yield Book Analytics
- 48 中文论坛