Skip to content

Reports - csv column headers change order based on date #1545

@Ben-in-Chicago

Description

@Ben-in-Chicago

Describe the bug
When exporting csv from the Reports -> Routing menu, the order of the columns in the csv file will change based on month/year selected. For example, selecting June 2024, the column headers are in this order:

timestamp
chan_id_in
chan_id_out
amt_in
amt_out
fee
fee_msat
amt_in_msat
amt_out_msat
timestamp_ns
peer_alias_in
peer_alias_out
alias_in
alias_out

When selecting a more recent month, like November 2025, the columns order change to:

timestamp
chan_id_in
chan_id_out
amt_in
amt_out
fee
fee_msat
amt_in_msat
amt_out_msat
timestamp_ns
peer_alias_in
peer_alias_out
incoming_htlc_id
outgoing_htlc_id
alias_out
alias_in

It seems that when the incoming_htlc_id and outgoing_htlc_id columns were added, the alias_in and alias_out columns were switched.

To Reproduce
Steps to reproduce the behavior:

  1. Go to Reports
  2. Click on Routes (select a month from different years)
  3. Scroll down to Export CSV
  4. See differences

Screenshots
If applicable, add screenshots to help explain your problem.

Your environment

  • Version of RTL: 0.15.6 beta
  • Version of lnd/core lightning/eclair: LND 0.20.0-beta
  • Version of btcd, bitcoind, or other backend
  • Browser & browser version: Chrome
  • Operating system (uname -a on *Nix): UmbrelOS
  • any other relevant environment details

Additional context
Add any other context about the problem here.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions