Hello,
Welcome to Microsoft Q&A!
According to the thread: https://github.com/nextcloud/desktop/pull/3290
CfAPI doesn't work for root partitions on Windows (drive letters like c:/, d:/, e:/, etc.).
If you want to use a root partition as a sync folder, I suggest you could try to create a subfolder under D:/ in your case.
Thank you.
Jeanine
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.