New bug in Origin 2019. Fixed in Origin 2019b.
E.g. plot a scatter graph with part of rows and index the symbol color to another column.
Click Ctrl+L to reconstruct legend. It should create categorical legend. But instead, error message Encountered an improper argument showed.