```usm_request = SourceAsset(key=AssetKey("usm_req...
# ask-community
r
Copy code
usm_request = SourceAsset(key=AssetKey("usm_request"))
@asset
def test_asset(
        usm_request
    ):
    return usm_request

test_materializer = build_assets_job(
    name="test_materializer",
    description="Do cool things",
    assets = [test_asset],
    source_assets=[usm_request]
)
Trying to do the above, but getting error:
dagster.core.errors.DagsterInvariantViolationError: Attempting to access asset_key, but it was not provided when constructing the OutputContext
🤖 1
source assets not supposed to be used in jobs like this?
After 0.14.16, when doing materialization (or launch request) in dagit im getting :
Copy code
Operation name: LaunchPipelineExecution

Message: Runtime Object type "InvalidSubsetError" is not a possible type for "LaunchRunResult".

Path: 

Locations: [{"line":2,"column":3}]
s
that first error should have been fixed in our latest release. sorry for the bug!