Skip to content

Incorrect window_end when using robyn_read(json_file) #1270

@ghltk

Description

@ghltk

Hi Robyn team,

I found a potential issue when reloading a model using robyn_read(json_file).

In my case:

  • The raw data ends at 2025-04-14, confirmed via json_file$Extras$raw_data$date
  • But json_file$InputCollect$window_end is incorrectly set to 2025-04-20

max(json_file$Extras$raw_data$date)
[1] "2025-04-14" # <-- correct
json_file$InputCollect$window_end
[1] "2025-04-20" # <-- incorrect

This causes a refresh issue. Even after adding the next week of data, I get the following error:
-> Not enough data for this refresh. Input data from date 2025-04-27 or later required

It looks like window_end is not correctly reconstructed, and that prevents proper model refresh even when enough data is available

Questions:

  1. Is this a known issue with robyn_read() incorrectly setting window_end?
  2. Is the refresh feature under active development? It feels somewhat unstable currently.

Robyn Version 3.12.0.9006

Thanks as always for your work and support on Robyn!
@gufengzhou

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions