Unable to save subset without alias selected. Unexpected value type null when string expected.
Describe the bug
If the alias dropdown is cleared in the subset editor and the user attempts to save a subset (with principal names) then Arc sends an incorrect payload specifying alias:null. Thus it is only possible to save subsets with alias and not without.
To Reproduce
- Open a hierarchy in subset editor of a dimension that contains aliases
- clear the alias field
- attempt to save or save as
- Arc returns error "null encountered where type string expected"
Expected behavior
Should be able to save a subset without an alias.
Logs and Errors
Console error.
Network tab.
Request payload.
{"Name":"zzTest","Alias":null,"Expression":"{DRILLDOWNMEMBER( ...
Not.
{"Name":"zzTest","Alias":"","Expression":"{DRILLDOWNMEMBER( ...
Screenshots
2019-11-29_10-30-31
Version Information (please complete the following information):
- Arc Version 1.8.0