ancient-library-85500
10/12/2022, 8:23 PMdatahub put --urn "urn:li:process:(PRC-1,Test_Process_1_Description)" --aspect testProcessProperties --aspect-data prc1.json
datahub get --urn "urn:li:process:(PRC-1,Test_Process_1_Description)"
The put command completes without any errors, but running the get command will produce the following error
19:23:22.102 [qtp522764626-22] INFO c.l.m.filter.RestliLoggingFilter:55 - GET /entitiesV2/urn%3Ali%3Aprocess%3A%28PRC-1%2CTest_Process_1_Description%29 - get - 500 - 1ms
19:23:22.105 [qtp522764626-22] ERROR c.l.m.filter.RestliLoggingFilter:38 - <http://Rest.li|Rest.li> error:
com.linkedin.restli.server.RestLiServiceException: java.lang.RuntimeException: Failed to get entity with urn: urn:li:process:(PRC-1,Test_Process_1_Description), aspects: null
Caused by: java.lang.RuntimeException: Failed to get entity with urn: urn:li:process:(PRC-1,Test_Process_1_Description), aspects: null
... 88 common frames omitted
Caused by: java.lang.NullPointerException: null
... 89 common frames omitted
Any help or insight would be greatly appreciated!
@kind-dawn-17532 @bland-balloon-48379 @nice-oil-28310bulky-soccer-26729
10/12/2022, 10:04 PMtestProcessProperties ? I think this datahub put ... --aspect ... command was meant to be used to update existing entities, as I'm unsure if this will create an entity key aspect.
additionally, have you updated entity_registry.yml to include your new custom aspect? otherwise that get command won't know to look for your new aspect when it's querying by the urn you give it. Here's some docs around extending the metadata model and creating custom aspects (which you may have already seen) https://datahubproject.io/docs/metadata-modeling/extending-the-metadata-model/#optional-step-7-extend-the-datahu[…]iew-your-entity-in-graphql--reactmammoth-bear-12532
ancient-library-85500
10/13/2022, 7:21 PMbulky-soccer-26729
10/13/2022, 7:31 PMautoRender (check out these docs: https://datahubproject.io/docs/metadata-modeling/extending-the-metadata-model/#aspect). If you set "autoRender": true then we will know to display this aspect as a tab on the entity in the entity profile. we know how to display it based on the renderSpec (also talked about in the docs I pasted above, and here's an example pdl). I would check out this README as well which describes this process, what you need to do, giving you one specific example to follow.ancient-library-85500
10/13/2022, 7:38 PMbulky-soccer-26729
10/13/2022, 7:40 PMbulky-soccer-26729
10/13/2022, 7:41 PM