How to create sync recipe using create_recipe or new_recipe?

pnkj
pnkj Registered Posts: 7 ✭✭

I want to create a sync recipe using python script. I found I can use create_recipe or new_recipe functions. But I am facing this error. The output dataset should be in MS SQL Server. How do I do this?

Operating system used: Windows

Operating system used: Windows

Answers

  • LouisDHulst
    LouisDHulst Dataiku DSS Core Designer, Dataiku DSS ML Practitioner, Neuron, Registered, Neuron 2023 Posts: 53 Neuron

    Hi @pnkj ,

    The arguments in with_input() and with_new_output() should be the dataset name string, not the dataset objects.

    builder = project.new_recipe("sync")
    builder = builder.with_input("inputdatasetname_string")
    builder = builder.with_new_output("outputname_string", "MS SQL Server", format_option_id="csv")

Setup Info
    Tags
      Help me…