broad-tomato-45373
04/27/2022, 10:08 AMFailed to extract some records due to: source produced an invalid metadata work unit:
Masked Recipe Details and Error Details can be find in reply.
Any help would be much appreciated.broad-tomato-45373
04/27/2022, 10:12 AM2021.2.4
Datahub cli version : acryl-datahub==0.8.33.1
Recipe :
source:
type: tableau
config:
# Coordinates
connect_uri: ******
site: ''
projects: ["******", "******"]
# Credentials
username: ******
password: ******
# Options
ingest_tags: True
ingest_owner: True
sink:
type: file
config:
filename: ./tableau_file.json
Error details :
Failed to extract some records due to: source produced an invalid metadata work unit:
MetadataChangeEventClass({'auditHeader': None, 'proposedSnapshot': ChartSnapshotClass({'urn': 'urn:li:chart:(tableau,********)', 'aspects': [ChartInfoClass({'customProperties': {None: ''}, 'externalUrl': '********', 'title': 'Registrations', 'description': '', 'lastModified': ChangeAuditStampsClass({'created': AuditStampClass({'time': 1598422143000, 'actor': 'urn:li:corpuser:********', 'impersonator': None}), 'lastModified': AuditStampClass({'time': 1611067789000, 'actor': 'urn:li:corpuser::********',', 'impersonator': None}), 'deleted': None}), 'chartUrl': None, 'inputs': ['urn:li:dataset:(urn:li:dataPlatform:tableau,********,PROD)', 'urn:li:dataset:(urn:li:dataPlatform:tableau,********,PROD)'], 'type': None, 'access': None, 'lastRefreshed': None}), BrowsePathsClass({'paths': ['********']}), OwnershipClass({'owners': [OwnerClass({'owner': 'urn:li:corpuser:********', 'type': 'DATAOWNER', 'source': None})], 'lastModified': AuditStampClass({'time': 0, 'actor': 'urn:li:corpuser:unknown', 'impersonator': None})})]}), 'proposedDelta': None, 'systemMetadata': SystemMetadataClass({'lastObserved': 1651049557282, 'runId': 'tableau-2022_04_27-14_22_01', 'registryName': None, 'registryVersion': None, 'properties': None})})
hundreds-photographer-13496
04/27/2022, 12:38 PM'customProperties': {None: ''},
arising due to sheet's datasourceFields having single entry having null
name (odd but possible in tableau metadata api). We should be able to fix it by adding a check somewhere here to omit such fields. Is there any chance, you'll be able to confirm this by calling tableau metadata api ?
Query Body:
{
sheets(filter: {id: "guid from chart urn"}) {
id
name
datasourceFields {
id
name
description
}
}
}
broad-tomato-45373
04/27/2022, 12:54 PM{
"data": {
"sheets": [
{
"id": "****",
"name": "Registrations",
"datasourceFields": [
{
"id": ""****",",
"name": "Report Date",
"description": null
},
{
"id": ""****",",
"name": "Reg Complete",
"description": null
},
{
"id": ""****",",
"name": "% Reg Completions",
"description": null
},
{
"id": ""****",",
"name": "Submit Mob",
"description": null
}
]
}
]
}
}
Also, an extra observation there are other failed cases as well, where this property is not present 'customProperties': {None: ''
but have None in path 'aspects': [BrowsePathsClass({'paths': ['/prod/tableau/None/None/None.eb1fa513-25c1-3164-6152-a84523442dfe']})
hundreds-photographer-13496
04/27/2022, 12:59 PMhundreds-photographer-13496
04/27/2022, 1:01 PMbroad-tomato-45373
04/27/2022, 1:57 PMbroad-tomato-45373
04/27/2022, 2:04 PMbroad-tomato-45373
04/27/2022, 2:04 PMhundreds-photographer-13496
04/27/2022, 2:18 PMmodern-artist-55754
04/27/2022, 11:55 PMbroad-tomato-45373
04/28/2022, 6:51 AM