"Error writing Managed Metadata field 'Category' ---> Error adding new Term to Term Store (please use the Term Store Management Tool to check the Term Set and verify Submission Policy is set to Open (Server was unable to process request. ---> There is already a term with the same default label and parent term.)"
The Category keywords has newlines and trailing spaces in Notes.
1. Open Source Data Definition
2. Modify the Categories field by changing column type to Formula and specifying the following formula:
@Transform(Categories; "xx"; @Trim(@ReplaceSubstring(xx; @NewLine; "")))