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:
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”.