Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ISSUE] Impossible to update an External Location name #293

Open
fvitolo opened this issue May 22, 2024 · 0 comments
Open

[ISSUE] Impossible to update an External Location name #293

fvitolo opened this issue May 22, 2024 · 0 comments

Comments

@fvitolo
Copy link

fvitolo commented May 22, 2024

Description
Trying to update the name of an external location results in the following error:

Exception in thread "main" com.databricks.sdk.core.error.platform.BadRequest: Response from server (Bad Request) {"error_code":"INVALID_PARAMETER_VALUE","message":"UpdateExternalLocation Both new_name and name cannot be specified.","details":[{"@type":"type.googleapis.com/google.rpc.ErrorInfo","reason":"INVALID_FIELD","domain":"unity-catalog.databricks.com","metadata":{"field_name":"name"}},{"@type":"type.googleapis.com/google.rpc.RequestInfo","request_id":"fabd8702-15e4-4dbb-a924-d968e9ae2246","serving_data":""}]}: Cannot construct instance of `com.databricks.sdk.core.error.ErrorDetail`, problem: Cannot invoke "Object.getClass()" because "m" is null
 at [Source: (String)"{"error_code":"INVALID_PARAMETER_VALUE","message":"UpdateExternalLocation Both new_name and name cannot be specified.","details":[{"@type":"type.googleapis.com/google.rpc.ErrorInfo","reason":"INVALID_FIELD","domain":"unity-catalog.databricks.com","metadata":{"field_name":"name"}},{"@type":"type.googleapis.com/google.rpc.RequestInfo","request_id":"fabd8702-15e4-4dbb-a924-d968e9ae2246","serving_data":""}]}"; line: 1, column: 405] (through reference chain: com.databricks.sdk.core.error.ApiErrorBody["details"]->java.util.ArrayList[1])

Reproduction

UpdateExternalLocation updateExternalLocation = new UpdateExternalLocation();
updateExternalLocation.setName(oldName);
updateExternalLocation.setNewName(newName);
return workspaceClient.externalLocations().update(updateExternalLocation);

Expected behavior
It should be possible to update the name of the external location.

Is it a regression?
No

Debug Logs

Exception in thread "main" com.databricks.sdk.core.error.platform.BadRequest: Response from server (Bad Request) {"error_code":"INVALID_PARAMETER_VALUE","message":"UpdateExternalLocation Both new_name and name cannot be specified.","details":[{"@type":"type.googleapis.com/google.rpc.ErrorInfo","reason":"INVALID_FIELD","domain":"unity-catalog.databricks.com","metadata":{"field_name":"name"}},{"@type":"type.googleapis.com/google.rpc.RequestInfo","request_id":"fabd8702-15e4-4dbb-a924-d968e9ae2246","serving_data":""}]}: Cannot construct instance of `com.databricks.sdk.core.error.ErrorDetail`, problem: Cannot invoke "Object.getClass()" because "m" is null
 at [Source: (String)"{"error_code":"INVALID_PARAMETER_VALUE","message":"UpdateExternalLocation Both new_name and name cannot be specified.","details":[{"@type":"type.googleapis.com/google.rpc.ErrorInfo","reason":"INVALID_FIELD","domain":"unity-catalog.databricks.com","metadata":{"field_name":"name"}},{"@type":"type.googleapis.com/google.rpc.RequestInfo","request_id":"fabd8702-15e4-4dbb-a924-d968e9ae2246","serving_data":""}]}"; line: 1, column: 405] (through reference chain: com.databricks.sdk.core.error.ApiErrorBody["details"]->java.util.ArrayList[1])

Other Information

  • Sdk Version: 0.25.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant