exFAT external drive not recognized on Windows

After some trial and errors, I've been able to format an exFAT partition on Ubuntu that is working on Windows 10. The trick is to add the msftdata flag on the partition (regardless if partition is aligned or not):

 sudo parted <DEVICE> set <PARTITION_NUMBER> msftdata on

For example:

 sudo parted /dev/sde set 1 msftdata on

And it worked for me in Windows 10!

And in case it helps someone, this is how I created a single aligned exFAT partition in the first place:

 sudo parted /dev/sde mklabel gpt
 sudo parted -a optimal /dev/sde mkpart primary '0%' '100%'
 sudo mkfs.exfat /dev/sde1

I have the same problem with Ubuntu 14.04 LTS So I ended up with formatting 2TB HDD under Windows 10 so I did't bother trying different block sizes or other format parameters. I have read similar article about MacOS X From Apple forum: https://discussions.apple.com/thread/4745362?tstart=0

I heard somewhere that if a External Hard Drive is formated exFat on a Mac, it wont work on Windows, unless it is Mac OS X 10.7 (Lion) or 10.8 (Mountain Lion). I have Snow Leopard (10.6.8) and I wanted to know if I format my External HD for exFat will it work on Windows? I currently have is formatted as Fat32 but there is a 4GB limit so I wanted to try exFat.

It's a known issue that, depending on how big the drive is, formatting exFAT in OS X uses too large of block (cluster) size that Windows doesn't like. Format the drive from within Windows with a block size no larger than 1024 and you should be able to use the drive on both platforms.

So it seams that IT IS UBUNTU PROBLEM and FITS AskUbuntu because of using by default nonstandard or incompatible block size while formatting exFATpartition.