Hi team! I´ve been trying to remove terms associat...
# ingestion
p
Hi team! I´ve been trying to remove terms associated with a field from my dataset via api for several days and an unknown error appears that does not allow me to do so. Is it a bug, does anyone know something? Thank you!
s
You will need to look into frontend container logs to see what happened here. When you try to do this there would be a stacktrace in there
p
thanks 🙂 @square-activity-64562
Copy code
08:30:05 [application-akka.actor.default-dispatcher-12] WARN  application - The submitted callback is unsupported! 
08:59:17 [application-akka.actor.default-dispatcher-8] WARN  application - The submitted callback is unsupported!
this is what appears... it doesn’t tell me much
s
Can you check GMS logs too? There might be something there too
What version of DataHub are you running?
p
version -> DataHub CLI version: 0.8.17.3
s
The UI is the same version?
Can you please try to upgrade to later versions? The latest version is
0.8.26
I am unable to reproduce this issue on the latest version. Since that version we have had many fixes done. I was able to remove glossary term from this dataset https://demo.datahubproject.io/dataset/urn:li:dataset:(urn:li:dataPlatform:snowflake,dem[…]ne.public.all_entities,PROD)/Schema?is_lineage_mode=false.
p
GMS log
Copy code
08:59:30 [Thread-187313] INFO  c.l.d.g.r.mutate.RemoveTermResolver - Removing Term. input: {}
08:59:30 [Thread-187313] ERROR c.l.d.g.r.mutate.RemoveTermResolver - Failed to perform update against input com.linkedin.datahub.graphql.generated.TermAssociationInput@5f7e6529, Failed to validate record with class com.linkedin.common.GlossaryTerms: ERROR :: /editableSchemaFieldInfo :: unrecognized field found but not allowed
ERROR :: /terms :: field is required but not found and has no default value
ERROR :: /auditStamp :: field is required but not found and has no default value

08:59:30 [Thread-187313] ERROR c.l.d.g.e.DataHubDataFetcherExceptionHandler - Failed to execute DataFetcher
java.util.concurrent.CompletionException: java.lang.RuntimeException: Failed to perform update against input com.linkedin.datahub.graphql.generated.TermAssociationInput@5f7e6529
	at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:273)
	at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:280)
	at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1606)
	at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.RuntimeException: Failed to perform update against input com.linkedin.datahub.graphql.generated.TermAssociationInput@5f7e6529
	at com.linkedin.datahub.graphql.resolvers.mutate.RemoveTermResolver.lambda$get$0(RemoveTermResolver.java:64)
	at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1604)
	... 1 common frames omitted
Caused by: com.linkedin.metadata.entity.ValidationException: Failed to validate record with class com.linkedin.common.GlossaryTerms: ERROR :: /editableSchemaFieldInfo :: unrecognized field found but not allowed
ERROR :: /terms :: field is required but not found and has no default value
ERROR :: /auditStamp :: field is required but not found and has no default value

	at com.linkedin.metadata.entity.ValidationUtils.lambda$validateOrThrow$0(ValidationUtils.java:19)
	at com.linkedin.metadata.entity.RecordTemplateValidator.validate(RecordTemplateValidator.java:37)
	at com.linkedin.metadata.entity.ValidationUtils.validateOrThrow(ValidationUtils.java:17)
	at com.linkedin.metadata.entity.EntityService.ingestProposal(EntityService.java:380)
	at com.linkedin.datahub.graphql.resolvers.mutate.MutationUtils.persistAspect(MutationUtils.java:33)
	at com.linkedin.datahub.graphql.resolvers.mutate.util.LabelUtils.removeTermFromTarget(LabelUtils.java:69)
	at com.linkedin.datahub.graphql.resolvers.mutate.RemoveTermResolver.lambda$get$0(RemoveTermResolver.java:54)
	... 2 common frames omitted
08:59:30 [Thread-187312] ERROR c.datahub.graphql.GraphQLController - Errors while executing graphQL query: "mutation removeTerm($input: TermAssociationInput!) {\n  removeTerm(input: $input)\n}\n", result: {errors=[{message=An unknown error occurred., locations=[{line=2, column=3}], path=[removeTerm], extensions={code=500, type=SERVER_ERROR, classification=DataFetchingException}}], data={removeTerm=null}}, errors: [DataHubGraphQLError{path=[removeTerm], code=SERVER_ERROR, locations=[SourceLocation{line=2, column=3}]}]
08:59:54 [Thread-187315] INFO  c.l.d.g.r.mutate.RemoveTermResolver - Removing Term. input: {}
08:59:54 [Thread-187315] ERROR c.l.d.g.r.mutate.RemoveTermResolver - Failed to perform update against input com.linkedin.datahub.graphql.generated.TermAssociationInput@6c8f018d, Failed to validate record with class com.linkedin.common.GlossaryTerms: ERROR :: /editableSchemaFieldInfo :: unrecognized field found but not allowed
ERROR :: /terms :: field is required but not found and has no default value
ERROR :: /auditStamp :: field is required but not found and has no default value

08:59:54 [Thread-187315] ERROR c.l.d.g.e.DataHubDataFetcherExceptionHandler - Failed to execute DataFetcher
java.util.concurrent.CompletionException: java.lang.RuntimeException: Failed to perform update against input com.linkedin.datahub.graphql.generated.TermAssociationInput@6c8f018d
	at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:273)
	at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:280)
	at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1606)
	at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.RuntimeException: Failed to perform update against input com.linkedin.datahub.graphql.generated.TermAssociationInput@6c8f018d
	at com.linkedin.datahub.graphql.resolvers.mutate.RemoveTermResolver.lambda$get$0(RemoveTermResolver.java:64)
	at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1604)
	... 1 common frames omitted
Caused by: com.linkedin.metadata.entity.ValidationException: Failed to validate record with class com.linkedin.common.GlossaryTerms: ERROR :: /editableSchemaFieldInfo :: unrecognized field found but not allowed
ERROR :: /terms :: field is required but not found and has no default value
ERROR :: /auditStamp :: field is required but not found and has no default value

	at com.linkedin.metadata.entity.ValidationUtils.lambda$validateOrThrow$0(ValidationUtils.java:19)
	at com.linkedin.metadata.entity.RecordTemplateValidator.validate(RecordTemplateValidator.java:37)
	at com.linkedin.metadata.entity.ValidationUtils.validateOrThrow(ValidationUtils.java:17)
	at com.linkedin.metadata.entity.EntityService.ingestProposal(EntityService.java:380)
	at com.linkedin.datahub.graphql.resolvers.mutate.MutationUtils.persistAspect(MutationUtils.java:33)
	at com.linkedin.datahub.graphql.resolvers.mutate.util.LabelUtils.removeTermFromTarget(LabelUtils.java:69)
	at com.linkedin.datahub.graphql.resolvers.mutate.RemoveTermResolver.lambda$get$0(RemoveTermResolver.java:54)
	... 2 common frames omitted
08:59:54 [Thread-187314] ERROR c.datahub.graphql.GraphQLController - Errors while executing graphQL query: "mutation removeTerm($input: TermAssociationInput!) {\n  removeTerm(input: $input)\n}\n", result: {errors=[{message=An unknown error occurred., locations=[{line=2, column=3}], path=[removeTerm], extensions={code=500, type=SERVER_ERROR, classification=DataFetchingException}}], data={removeTerm=null}}, errors: [DataHubGraphQLError{path=[removeTerm], code=SERVER_ERROR, locations=[SourceLocation{line=2, column=3}]}]
thanks for your advice about updating datahub, I will do it, but the truth is that days ago with the same version I was able to remove glossary term from this dataset so I sent you the GMS logs in case you could help me 🙂
Tha GMS shows a missing field, but when i check my query, and I think that is correct
thanks for your help!!
g
Hey @proud-accountant-49377 - sorry about this issue@ this was fixed in the latest release. What version are you on?
s
CLI version is
0.8.17.3
so probably the UI is the same version. Can you please confirm? https://datahubspace.slack.com/archives/CUMUWQU66/p1644836516571429?thread_ts=1644832704.880259&cid=CUMUWQU66
p
Hi guys thanks so much for your help. We did un upgrade of our cli, and now is version 0.8.26.3, but our UI is still 0.8.24. I check the releases and you are right, the problem is that! But could you tell us how to upgrade the UI? We are looking for info but we don´t know how to do it. Thanks.
s
Did someone else in the team deploy this? Is this deployed via helm charts on Kubernetes?
p
Yes, via Helm
s
Do you know how to upgrade helm chart which is deployed? Do you have your own values.yaml file? Update tags in there if they are specified in there
👍🏾 1
p
Hi @square-activity-64562, updated and working 😊
Thanks a lot for your help!! 🙂
g
Woohoo!
🤣 1