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

rawan_mohammed
rawan_mohammed Registered Posts: 8
edited July 16 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

Best Answers

Answers

Setup Info
    Tags
      Help me…