:wave: im running into `ValueError: source produce...
# ingestion
g
👋 im running into
ValueError: source produced an invalid metadata work unit:
when i am trying to a write a custom ingestion script using the python library. is it possible to get a more specific exception msg that provides info on which part of the mcp is invalid?
m
I hear you... I also find this annoying and the best way I could find without entering a debugger is to manually call
validate()
on aspects that I creating. This way you'll know which aspect is wrong, but you won't know which attribute. But this will narrow your search. Would be happy to hear if there is a better way!
g
@modern-monitor-81461 Should the
validate()
be printing out a value…? I added it but am not seeing anything different
m
No, it will return a boolean indicating if your aspect is valid or not.
👍 1
o
Right, to get the exact issue validate hit currently you would have to step through and see where it hits a false point. There aren't currently printouts or error messages passed up that indicate what the exact error was in the Python emitter.