https://dagster.io/ logo
#dagster-support
Title
# dagster-support
r

Raphael Krupinski

04/05/2022, 10:19 AM
Could someone translate this to English for me please
UserWarning: Error loading repository location nemec.jobs:dagster.core.errors.DagsterInvariantViolationError: Attempted to index in to an InvokedSolidOutputHandle. This object represents the output "result" from the op 'load_spreadsheet'. Consider defining multiple Outs if you seek to pass different parts of this output to different ops.
b

Ben Gatewood

04/05/2022, 10:55 AM
You've (possibly) tried to return multiple values from an op without telling it that you are going to do that
I had to add this to my op:
Copy code
@op(required_resource_keys={"gcs"}, out={"hitters": Out(), "pitcher_opp": Out(), "pitchers": Out()})
So I could return like:
Copy code
return hitters, pitcher_opp, pitchers
r

Raphael Krupinski

04/05/2022, 10:57 AM
I was returning a google sheet, a single, indexable object
I can't even parse that sentence at "index in to at ..."
b

Ben Gatewood

04/05/2022, 11:27 AM
Hm, don't know then. I got that exact error today when I tried to return a tuple without the
out
param in the op decorator
r

Raphael Krupinski

04/05/2022, 4:03 PM
I was calling item dunder method outside of an @op and it failed during the compose phase, that was the problem.
b

Ben Gatewood

04/05/2022, 10:04 PM
Ah interesting - nice catch
9 Views