Rest API does not validate documents created

as you have renamed the field in the past, please run bench clear-cache, then check via bench console whether type of the field in question is Link or Data?

Hi @szufisher, thanks for your response. Could you please give a bit more guidance on how to do this ?

Thanks

e.g check the customer field in Sales Order doctype

1 Like

I’ve just experiencing exactly same issue here…

The different is, I used server script that call frappe.get_doc and insert() just like this

project_cost = frappe.get_doc({
            "doctype": "Project Cost",
            "project": i,
    })
    
    project_cost.insert()

and field project is called in fetch from at another field

then it’s become unvalidated and document still created…