INVALID_PARAMETER_VALUE.LOCATION_OVERLAP when trying to copy from s3 location

dplatform_user
New Contributor II

Hi,

Currently we are getting an issue when we try to copy a file from s3 location using dbutils.fs.cp, please see example below:

source = s3://test-bucket/external/zones/{database_name}/{table_name}/test.csv

destination = s3://test-bucket/external/destination/test.csv

dbutils.fs.cp(source, destination)

when we execute above statement we get below error: 

AnalysisException: [RequestId=b8701964-4ec0-4b20-a25d-ce4835e1398e ErrorClass=INVALID_PARAMETER_VALUE.LOCATION_OVERLAP] Input path url 's3://test-bucket/external/zones/' overlaps with other external tables or volumes within 'GenerateTemporaryPathCredential' call.

Note: the source location has "curly braces" part of the location name.