I suspect that this is caused when the Dataset function tries to add annotation columns to the dataset automatically - I've seen this on synapse before where different annotations (e.g. int on one file, char on another file) causes the creation of multiple columns in the view/dataset schema.
This update makes this a bit more safe by catching these errors and trying to build the dataset again w/o automagically adding the annotation cols.
To test, I think you can just run the function above with your principalId and a sandbox project_id.
I ran into an issue today when I called this:
Where foo$id is:
The error was
I suspect that this is caused when the Dataset function tries to add annotation columns to the dataset automatically - I've seen this on synapse before where different annotations (e.g. int on one file, char on another file) causes the creation of multiple columns in the view/dataset schema.
This update makes this a bit more safe by catching these errors and trying to build the dataset again w/o automagically adding the annotation cols.
To test, I think you can just run the function above with your principalId and a sandbox project_id.