dosubot[bot] commented on issue #658:
URL: 
https://github.com/apache/incubator-hugegraph-toolchain/issues/658#issuecomment-2727364050

   <!-- Answer -->
   The error message `com.papayadb.loader.exception.LoadException: The property 
key 'target_name' doesn't exist` indicates that the property key `target_name` 
is not defined in your schema. To resolve this, you need to ensure that all 
property keys used in your `field_mapping` are defined in the `schema.groovy` 
file.
   
   Here's how you can define the missing property keys in your `schema.groovy`:
   
   ```groovy
   schema.propertyKey("name").asText().ifNotExist().create();
   schema.propertyKey("age").asInt().ifNotExist().create();
   schema.propertyKey("city").asText().ifNotExist().create();
   schema.propertyKey("source_name").asText().ifNotExist().create();
   schema.propertyKey("target_name").asText().ifNotExist().create();
   schema.propertyKey("date").asText().ifNotExist().create();
   schema.propertyKey("weight").asDouble().ifNotExist().create();
   ```
   
   Make sure to include all the property keys that are referenced in your 
`field_mapping` and any other parts of your struct configuration. This should 
resolve the `LoadException` by ensuring that all necessary property keys are 
available in the schema 
<sup>[[1]](https://github.com/apache/incubator-hugegraph-toolchain/blob/master/hugegraph-loader/src/test/resources/file_has_empty_line/schema.groovy)</sup><sup>[[2]](https://github.com/apache/incubator-hugegraph-toolchain/blob/master/hugegraph-loader/assembly/static/example/mysql/schema.groovy)</sup>.
   
   
   <!-- Dosu Comment Footer -->
   *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
   
   ---
   <sup>Help Dosu learn! Give it feedback: [Great 
Response](https://app.dosu.dev/response-feedback/297d115f-96ae-4a85-8871-f40d9625077c?feedback_type=great_response)
 | [Irrelevant 
Answer](https://app.dosu.dev/response-feedback/297d115f-96ae-4a85-8871-f40d9625077c?feedback_type=irrelevant_answer)
 | [Incorrect 
Sources](https://app.dosu.dev/response-feedback/297d115f-96ae-4a85-8871-f40d9625077c?feedback_type=incorrect_sources)
 | [Too 
Verbose](https://app.dosu.dev/response-feedback/297d115f-96ae-4a85-8871-f40d9625077c?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/297d115f-96ae-4a85-8871-f40d9625077c?feedback_type=hallucination)
 | [Bug 
Report](https://app.dosu.dev/response-feedback/297d115f-96ae-4a85-8871-f40d9625077c?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/297d115f-96ae-4a85-8871-f40d9625077c?feedback_type=other)</sup>
   


-- 
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]

Reply via email to