dosubot[bot] commented on issue #2535:
URL:
https://github.com/apache/incubator-hugegraph/issues/2535#issuecomment-2084767331
<!-- Answer -->
The error you're encountering, `"Must customize vertex string id when id
strategy is 'CUSTOMIZE_UUID' for vertex label 'person'"`, indicates that the
format or placement of the `id` in your JSON request does not meet the
expectations for a `CUSTOMIZE_UUID` ID strategy in Apache HugeGraph. When using
`CUSTOMIZE_UUID`, the `id` must be provided at the top level of your JSON
structure, not nested within the `properties` object. Your JSON should look
like this:
```json
{
"label": "person",
"id": "123e4567-e89b-12d3-a456-426614174000",
"properties": {
"name": "marko",
"age": 29
}
}
```
In this corrected format, the `id` is directly under the top level of the
JSON object, alongside `label` and `properties`. This placement ensures that
the `id` is recognized by HugeGraph as the vertex ID, conforming to the
`CUSTOMIZE_UUID` strategy's requirement for a custom, user-provided UUID string.
<!-- Dosu Comment Footer -->
<details>
<summary>
#### Details
</summary>
**Sources**
-
[hugegraph-loader/src/test/resources/vertex_customized_id_unfold/struct.json](https://github.com/apache/incubator-hugegraph-toolchain/blob/master/hugegraph-loader/src/test/resources/vertex_customized_id_unfold/struct.json)
-
[hugegraph-client/src/main/java/org/apache/hugegraph/structure/schema/VertexLabel.java](https://github.com/apache/incubator-hugegraph-toolchain/blob/master/hugegraph-client/src/main/java/org/apache/hugegraph/structure/schema/VertexLabel.java)
-
[hugegraph-server/hugegraph-api/src/main/java/org/apache/hugegraph/api/graph/VertexAPI.java](https://github.com/apache/incubator-hugegraph/blob/master/hugegraph-server/hugegraph-api/src/main/java/org/apache/hugegraph/api/graph/VertexAPI.java)
<br/>
**About Dosu**
This response is meant to be useful and save you time. It is **not meant to
be a precise solution**, but rather a starting point for your own research.
Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is
irrelevant.
</details>
*To continue the conversation, mention @dosu.*
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]