Cannot execute Action taking Object Reference parameter on AIP Logic

I’m trying to have a AIP Logic Function execute an Action taking Object Reference parameter, but not going well.
The error message is as follows.

Cannot cast com.palantir.aip.tools.lib.value.Value$ListValue to com.palantir.aip.tools.lib.value.Value$OntologyObjectValue

How should I do?

Thanks in advance.

Hi, could you please provide more details on how to reproduce this issue?

For example, were you using a “Use LLM” block with an action as a tool? This action should take an Object Reference as input. Here is an example setup:


I was using Action block (as a side note, parameter name isn’t shown. The parameter name was “Lot”). The object list inputted in the image was created in the AIP Logic.

I forgot to mention that the Action takes Object Reference parameter but the Object Property is string array so transformation of Object List to property value list is done.

Thank you for your clarification.

It appears that passing an Object List from AIP Logic to an Action that accepts “Object Reference” (with “Allow multiple values” enabled) may not yet be supported. I am currently confirming this and will get back to you with more info

In the meantime, if you change the action argument type to ObjectSet, it should work with an ObjectSet passed from AIP Logic. So if you convert your object list to an ObjectSet, it should work. Could you give it a try if you haven’t already?

Hi @8d1bf55207d97afe5c5f

Did some digging and confirmed that Object List is for AIP Logic specific operations, and is currently not compatible with Object Reference in Action arguments.

Thank you for flagging. Palantir is working on making this part more intuitive and smooth.

And for now could you try converting the object list to ObjectSet and change the Action argument to accept ObjectSet as mentioned above? Thanks

2 Likes