Publishing a Model Function in Modeling Objective

I trained a model in Code Repositories that seems to be working well. I then Created a Modeling Objective with the model, created a Live Deployment, and tried to publish a function for the deployment. But I immediately get a “Failed to publish function” and the browser inspector shows the following internal error:

{
“errorCode”: “INTERNAL”,
“errorName”: “Default:Internal”,
“errorInstanceId”: “f2225dc0-cc3a-4f22-bd2f-116d0f7e0f76”,
“parameters”: {}
}

Any ideas why this may be? The model seems to work well when testing, so not really sure why!

Hey! Looks like the api name you provided was invalid, and the function registration got into a weird state. Thanks for raising this.

While we work on a fix for the issue you are seeing as well as better propagation of the actual error, you could try creating a new live deployment in the objective and follow the api name specification here https://www.palantir.com/docs/foundry/functions/query-functions#api-name-validations, which validates that the api name is lowerCamelCase, less than 100 characters, and does not start with a number. Note that we also check against some reserved keywords that the api name cannot be equal to, such as “ontology”, “object”, “property”, “link”, “relation”, “rid”, “primarykey”, “typeid”, “ontologyobject”.

1 Like

That worked! Thank you so much Tucker

1 Like