Same format for flowchart works fine, but generating error for sankey type. 