Failed to run function : : Dataset (name) is specified with a relative name

Registered Posts: 8
edited July 2024 in Using Dataiku

Hello,

I'm working on a python function endpoint, and I need to call one of the datasets from the flow in the function.

however, when I try to run the test queries I get the following error:

 Failed to run function : <class 'Exception'> : Dataset names is specified with a relative name, but no default project was found. Please use complete name

the code:

def api_py_function(features):
    code = get_city_code(features["name"])
    return code

def get_city_code(name: str):
    dataset = dataiku.Dataset("names")
    df = dataset.get_dataframe()

Operating system used: Windows 11

Welcome!

It looks like you're new here. Sign in or register to get started.

Best Answers

Answers

Welcome!

It looks like you're new here. Sign in or register to get started.

Welcome!

It looks like you're new here. Sign in or register to get started.