For a deeper look into our Eikon Data API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
20 3 1 1

Error: Error in 1:nrow(input_data_frame) : argument of length 0 while using get_timeseries

Hi,

I am getting the above addressed error while running the get_timeseries. It is not a consistent error, sometimes it appear and sometimes it does not

NCLData <- get_timeseries(list(paste0(CFTCRICS[i],"NLNG")),start_date = paste(floor_date(Sys.Date() - years(14), "year"),"T00:00:00",sep = ""),end_date = paste(LastDayInMonth(Sys.Date()),"T00:00:00",sep = ""))

where CFTCRICS[1]="4005602".Sometimes while running, it shows error:

Error in 1:nrow(input_data_frame) : argument of length 0

and sometimes it runs properly. Please Help,

Thank you

eikoneikon-data-apipythonworkspacerefinitiv-dataplatform-eikonworkspace-data-apireikon-data-api-r
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.

1 Answer

Upvotes
Accepted
52.5k 134 44 63

@niket.chauhan

You may need to set the debug to TRUE to verify the retrieved response.

NCLData <- get_timeseries(
    list(paste0(CFTCRICS[i],"NLNG")),
    start_date = paste(floor_date(Sys.Date() - years(14), "year"),"T00:00:00",sep = ""),
    end_date = paste(LastDayInMonth(Sys.Date()),"T00:00:00",sep = ""),
    debug = TRUE)
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.