Hi, Please help I try to build custom BI sources ...
# troubleshoot
m
Hi, Please help I try to build custom BI sources ingestion and run ingest script no problem but after use in web-frontend show “unknown error 500” and gms log show “Failed to load Entities of type: Chart, keys” how to fix this problem ChartInfoClass (fixed type = ChartTypeClass.TABLE)
Copy code
chart_info = ChartInfoClass(
            type=ChartTypeClass.TABLE,
            description="",
            title=chart_title,
            lastModified=last_modified,
            chartUrl="",
        )
gsm error msg
Copy code
08:18:59.210 [qtp544724190-56058] INFO  c.l.m.r.entity.EntityResource - BATCH GET [urn:li:chart:(grafana,2sX8mD7Mk_12)]
08:18:59.211 [pool-9-thread-1] INFO  c.l.m.filter.RestliLoggingFilter - GET /entities?ids=List(urn%3Ali%3Achart%3A%28grafana%2C2sX8mD7Mk_12%29) - batchGet - 200 - 1ms
08:18:59.212 [Thread-42099] ERROR c.l.datahub.graphql.GmsGraphQLEngine - Failed to load Entities of type: Chart, keys: [urn:li:chart:(grafana,2sX8mD7Mk_12)] Failed to batch load Charts
08:18:59.212 [Thread-42099] ERROR c.l.d.g.e.DataHubDataFetcherExceptionHandler - Failed to execute DataFetcher
java.util.concurrent.CompletionException: java.lang.RuntimeException: Failed to retrieve entities of type Chart
	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 retrieve entities of type Chart
	at com.linkedin.datahub.graphql.GmsGraphQLEngine.lambda$null$112(GmsGraphQLEngine.java:788)
	at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1604)
	... 1 common frames omitted
Caused by: java.lang.RuntimeException: Failed to batch load Charts
	at com.linkedin.datahub.graphql.types.chart.ChartType.batchLoad(ChartType.java:105)
	at com.linkedin.datahub.graphql.GmsGraphQLEngine.lambda$null$112(GmsGraphQLEngine.java:785)
	... 2 common frames omitted
Caused by: java.lang.NullPointerException: null
	at com.linkedin.datahub.graphql.types.chart.mappers.ChartSnapshotMapper.mapChartInfo(ChartSnapshotMapper.java:70)
	at com.linkedin.datahub.graphql.types.chart.mappers.ChartSnapshotMapper.apply(ChartSnapshotMapper.java:44)
	at com.linkedin.datahub.graphql.types.chart.mappers.ChartSnapshotMapper.map(ChartSnapshotMapper.java:29)
	at com.linkedin.datahub.graphql.types.chart.ChartType.lambda$batchLoad$0(ChartType.java:100)
	at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
	at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1384)
	at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482)
	at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472)
	at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
	at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
	at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:566)
	at com.linkedin.datahub.graphql.types.chart.ChartType.batchLoad(ChartType.java:103)
	... 3 common frames omitted
08:18:59.212 [Thread-42098] ERROR c.d.m.graphql.GraphQLController - Errors while executing graphQL query: "query getChart($urn: String!) ....
m
@millions-soccer-98440 are you running the latest Datahub. I think we have fixed this bug recently.
😍 1
m
Thanks, I will update and try again.
Currently, Update image to v0.8.15 That work !! Thanks
m
awesome
m
Hi @mammoth-bear-12532 I found some problem when ingest dashboard and charts .. charts work , can refer to dashboard (pic1) but dashboard error .. cannot load charts (pic2) I try ingest only dashboard .. dashboard work (pic3)
m
Hi @millions-soccer-98440: can you share your gms logs? that might show you the error cause.
m
@mammoth-bear-12532 gsm log after open dashboard
m
@millions-soccer-98440 it seems like the graphql engine expects the charts inputs to not be null (which seems incorrect). Let me get back to you on this.
👍 1
m
Thanks 🙏
Hi @mammoth-bear-12532 Did you fix this yet? 😃