Hi Phil R ,
Greetings & Welcome to Microsoft Q&A forum! Thanks for posting your query!
Based on the information you are provided, it appears that creating a directory with a single space character in ADLS Gen2 using the REST API or Hadoop ABFS File System provider is not supported, even though it works with Blob Storage.
The error message "The request URI is invalid" suggests that the space character in the directory name is causing issues with the URI encoding. While Blob Storage can handle this by encoding the space, ADLS Gen2 seems to have stricter URI validation rules.
Please consider below steps:
URI Encoding: Ensure that the space character is properly encoded as %20
in the URI. However, it seems you are already tried this and encountered the same issue.
Naming Conventions: ADLS Gen2 might have different naming conventions or restrictions compared to Blob Storage. The documentation does not explicitly state this, but the error message indicates a potential limitation.
Alternative Naming: Consider using an alternative naming convention that avoids special characters like spaces. For example, you could use underscores (_
) or hyphens (-
) instead.
Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.
If you have any other questions or are still running into more issues, let me know in the "comments" and I would be happy to help you