Skip to content

Unable to use custom template in Project outside Data Fusion #28

@FridayPush

Description

@FridayPush

Data Fusion is hosted in Project_A, the Inspection template in Project_B. I want to use the default service-account path, but tried setting the Credentials 'Project' field to Project_B doesn't work, and it says the template doesn't exist. I believe there's something happening with the GCP Util fetching the project id returning the host project 'Project_A', and not using the one I provided.

I also can't outright provide the full path to the template as the code templates the path for you:

String templateName = String.format("projects/%s/inspectTemplates/%s", config.getProject(), config.templateId);

This produces a situation where I'm able to use default templates only, or would need to redefine my inspection templates in Project_A.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions