# \#functions

**URL:** https://community.palantir.com/tag/functions/57.md

[Latest](https://community.palantir.com/latest.md) · [Categories](https://community.palantir.com/categories.md) · [Tags](https://community.palantir.com/tags.md)

---

## [Function backed pivot tables show no grouping or value fields for a new function version on a global branch](https://community.palantir.com/t/function-backed-pivot-tables-show-no-grouping-or-value-fields-for-a-new-function-version-on-a-global-branch/7450)

<div class="topic-metadata">

**Author:** [@RTAN](https://community.palantir.com/u/RTAN)\
**Replies:** 0\
**Last updated:** [November 5, 2026, 8:45am UTC](https://community.palantir.com/t/function-backed-pivot-tables-show-no-grouping-or-value-fields-for-a-new-function-version-on-a-global-branch/7450 "2026-11-05T08:45:30Z")

</div>

Question I am testing changes across a global branch that contains an Ontology object type update, a typescript v2 functions repo, and a workshop module. When configuring a function backed pivot Table in Workshop, I ca…

---

## [Error occurs when attempting to upgrade code repository](https://community.palantir.com/t/error-occurs-when-attempting-to-upgrade-code-repository/7443)

<div class="topic-metadata">

**Author:** [@davidszy](https://community.palantir.com/u/davidszy)\
**Replies:** 3\
**Last updated:** [November 4, 2026, 2:17pm UTC](https://community.palantir.com/t/error-occurs-when-attempting-to-upgrade-code-repository/7443 "2026-11-04T14:17:59Z")

</div>

Hi everyone! I opened up my code repository today and encountered the following error: I’m met with another error when clicking ‘Upgrade’ at the top right of my code repo: The error message is kind of unhelpful.…

---

## [Creating a Typescript Library](https://community.palantir.com/t/creating-a-typescript-library/1689)

<div class="topic-metadata">

**Author:** [@ilan.hazan](https://community.palantir.com/u/ilan.hazan)\
**Replies:** 3\
**Last updated:** [July 24, 2025, 8:02pm UTC](https://community.palantir.com/t/creating-a-typescript-library/1689 "2025-07-24T20:02:43Z")

</div>

Hello, Foundry Community! I successfully created a TypeScript library within Foundry to use across multiple projects and would like to share the process with you. Although this isn’t officially supported yet, it works w…

---

## [Custom pivot table functionality in Workshop](https://community.palantir.com/t/custom-pivot-table-functionality-in-workshop/7379)

<div class="topic-metadata">

**Author:** [@Alpi](https://community.palantir.com/u/Alpi)\
**Replies:** 3\
**Last updated:** [October 28, 2026, 11:12pm UTC](https://community.palantir.com/t/custom-pivot-table-functionality-in-workshop/7379 "2026-10-28T23:12:51Z")

</div>

Hi everyone, A bit of a background. I have developed a custom function backed pivot table using typescript on my ontology object set. The need for that was due to the need to create aggregations for metrics that are tim…

---

## [Enforce idempotency and prevent concurrent Ontology Actions from overwriting each other](https://community.palantir.com/t/enforce-idempotency-and-prevent-concurrent-ontology-actions-from-overwriting-each-other/7249)

<div class="topic-metadata">

**Author:** [@anawaz](https://community.palantir.com/u/anawaz)\
**Replies:** 1\
**Last updated:** [October 27, 2026, 7:00pm UTC](https://community.palantir.com/t/enforce-idempotency-and-prevent-concurrent-ontology-actions-from-overwriting-each-other/7249 "2026-10-27T19:00:54Z")

</div>

Is there a recommended way to enforce idempotency and prevent concurrent Ontology Actions from overwriting each other when both read the same initial object state? I need a non-primary-key property on Object B to be uni…

---

## [Feature Request: Column Description for Function based columns](https://community.palantir.com/t/feature-request-column-description-for-function-based-columns/4943)

<div class="topic-metadata">

**Author:** [@devonyates](https://community.palantir.com/u/devonyates)\
**Replies:** 1\
**Last updated:** [September 2, 2025, 7:27pm UTC](https://community.palantir.com/t/feature-request-column-description-for-function-based-columns/4943 "2025-09-02T19:27:51Z")

</div>

When using a function based column in workshop, there is no way to set the description field on the column. It would be helpful if this could either default to the docstring of the function, and/or provide a form entry …

---

## [SuperRepo: deployed TypeScript functions fail with "Cannot read properties of undefined (reading 'length')" in getRuntimeMetadataOntologyRid](https://community.palantir.com/t/superrepo-deployed-typescript-functions-fail-with-cannot-read-properties-of-undefined-reading-length-in-getruntimemetadataontologyrid/7399)

<div class="topic-metadata">

**Author:** [@rahulgarg](https://community.palantir.com/u/rahulgarg)\
**Replies:** 1\
**Last updated:** [October 21, 2026, 9:29am UTC](https://community.palantir.com/t/superrepo-deployed-typescript-functions-fail-with-cannot-read-properties-of-undefined-reading-length-in-getruntimemetadataontologyrid/7399 "2026-10-21T09:29:30Z")

</div>

What happens In a SuperRepo project, every function-backed action fails on its first call after deploy, before any function code runs: FunctionExecutionFailed TypeError: Cannot read properties of undefined (reading 'le…

---

## [TypeScript v2 Functions CI: local SDK generation resolves Global Branch and object import, then OntologiesV2.get returns OntologyNotFound](https://community.palantir.com/t/typescript-v2-functions-ci-local-sdk-generation-resolves-global-branch-and-object-import-then-ontologiesv2-get-returns-ontologynotfound/7367)

<div class="topic-metadata">

**Author:** [@Ashah1306](https://community.palantir.com/u/Ashah1306)\
**Replies:** 0\
**Last updated:** [October 12, 2026, 2:56pm UTC](https://community.palantir.com/t/typescript-v2-functions-ci-local-sdk-generation-resolves-global-branch-and-object-import-then-ontologiesv2-get-returns-ontologynotfound/7367 "2026-10-12T14:56:48Z")

</div>

Hello, We are seeing a reproducible failure while building TypeScript v2 Functions repositories that use a local Ontology SDK and Global Branching. We’re hoping someone else has run into the same issue and have successf…

---

## [API call to get number of row of a dataset](https://community.palantir.com/t/api-call-to-get-number-of-row-of-a-dataset/984)

<div class="topic-metadata">

**Author:** [@55b969276dcf43cd2235](https://community.palantir.com/u/55b969276dcf43cd2235)\
**Replies:** 4\
**Last updated:** [October 5, 2026, 4:06pm UTC](https://community.palantir.com/t/api-call-to-get-number-of-row-of-a-dataset/984 "2026-10-05T16:06:53Z")

</div>

Hello Community team, I’m currently looking for an API call to retrieve the number of rows in a dataset . I need this to avoid doing using count() in the code, which takes a lot of time for large datasets and very often…

---

## [Cannot destructure property 'functionRid' of 'e' as it is undefined](https://community.palantir.com/t/cannot-destructure-property-functionrid-of-e-as-it-is-undefined/7163)

<div class="topic-metadata">

**Author:** [@anaritarc](https://community.palantir.com/u/anaritarc)\
**Replies:** 4\
**Last updated:** [September 30, 2026, 6:27am UTC](https://community.palantir.com/t/cannot-destructure-property-functionrid-of-e-as-it-is-undefined/7163 "2026-09-30T06:27:13Z")

</div>

Hi, We developed a function on a branch to download pdfs, since we are still on testing it isn’t merged to master yet. It’s working 99% of the times, but some users report the following: Cannot destructure property '…

---

## [How to bulk apply an action/function to all existing objects](https://community.palantir.com/t/how-to-bulk-apply-an-action-function-to-all-existing-objects/963)

<div class="topic-metadata">

**Author:** [@ishan](https://community.palantir.com/u/ishan)\
**Replies:** 4\
**Last updated:** [January 17, 2025, 10:42am UTC](https://community.palantir.com/t/how-to-bulk-apply-an-action-function-to-all-existing-objects/963 "2025-01-17T10:42:50Z")

</div>

Just wanted to check whether there’s any good way to apply a function/action to a large (~500k) amount of objects? We have quite a few cases where we want to add a new property to an ontology object, and be able to back…

---

## [\[Guide\] Parsing PDF Files Using Python with Tesseract OCR](https://community.palantir.com/t/guide-parsing-pdf-files-using-python-with-tesseract-ocr/1347)

<div class="topic-metadata">

**Author:** [@arukavina](https://community.palantir.com/u/arukavina)\
**Replies:** 2\
**Last updated:** [July 8, 2025, 4:13pm UTC](https://community.palantir.com/t/guide-parsing-pdf-files-using-python-with-tesseract-ocr/1347 "2025-07-08T16:13:57Z")

</div>

Parsing PDF Files Using Python: A Guide with Tesseract OCR In this post, I’ll guide you through a practical use case of parsing text from PDF files using Python Functions. The code uses several libraries, including cv2, p…

---

## [Exposing an API call that streams an LLM response in Foundry](https://community.palantir.com/t/exposing-an-api-call-that-streams-an-llm-response-in-foundry/3812)

<div class="topic-metadata">

**Author:** [@agirvin](https://community.palantir.com/u/agirvin)\
**Replies:** 1\
**Last updated:** [September 25, 2026, 10:34am UTC](https://community.palantir.com/t/exposing-an-api-call-that-streams-an-llm-response-in-foundry/3812 "2026-09-25T10:34:47Z")

</div>

Hi There, I am building a chat bot that has to do some logic and use data in Foundry before responding. I have it working with a Foundry function that hits an LLM and returns the response, but I would strongly prefer…

---

## [Model deployment traversing across multiple objects](https://community.palantir.com/t/model-deployment-traversing-across-multiple-objects/959)

<div class="topic-metadata">

**Author:** [@domsasston](https://community.palantir.com/u/domsasston)\
**Replies:** 1\
**Last updated:** [August 8, 2024, 4:22pm UTC](https://community.palantir.com/t/model-deployment-traversing-across-multiple-objects/959 "2024-08-08T16:22:56Z")

</div>

Hi, I am trying to conduct some complex analysis on multiple objects and then deploy this so that the user can view the results in real time. The input of the function/model is one object to which there can be up to 12…

---

## [Unable to use models-api (language model) in Function](https://community.palantir.com/t/unable-to-use-models-api-language-model-in-function/958)

<div class="topic-metadata">

**Author:** [@meehirbhalla](https://community.palantir.com/u/meehirbhalla)\
**Replies:** 2\
**Last updated:** [August 8, 2024, 2:43pm UTC](https://community.palantir.com/t/unable-to-use-models-api-language-model-in-function/958 "2024-08-08T14:43:29Z")

</div>

When I import the models-api in a function, I get the error Cannot find module '@foundry/models-api/language-models' or its corresponding type declarations.typescript(2307). I have set enableModelFunctions to true in my …

---

## [automation, editBatch.update typescript v2 function, errors when updating small number of objects](https://community.palantir.com/t/automation-editbatch-update-typescript-v2-function-errors-when-updating-small-number-of-objects/7236)

<div class="topic-metadata">

**Author:** [@whoopysnorp](https://community.palantir.com/u/whoopysnorp)\
**Replies:** 0\
**Last updated:** [September 17, 2026, 1:34pm UTC](https://community.palantir.com/t/automation-editbatch-update-typescript-v2-function-errors-when-updating-small-number-of-objects/7236 "2026-09-17T13:34:35Z")

</div>

I have a function that retrieves about 30000 objects, cycles through them, calculates an age property then updates that property if it is not undefined and is different than the current value. I have the function config…

---

## [Generate TS function backed chart that bucket values and handle 2 separate stages of aggregations](https://community.palantir.com/t/generate-ts-function-backed-chart-that-bucket-values-and-handle-2-separate-stages-of-aggregations/933)

<div class="topic-metadata">

**Author:** [@DSK](https://community.palantir.com/u/DSK)\
**Replies:** 2\
**Last updated:** [August 6, 2024, 1:42pm UTC](https://community.palantir.com/t/generate-ts-function-backed-chart-that-bucket-values-and-handle-2-separate-stages-of-aggregations/933 "2024-08-06T13:42:38Z")

</div>

As mentioned above, trying to bucket and order column a in asc and then segment by column b value and also order aolumn b in asc order. Is this possible to do on foundry currently to generate a chart?

---

## [Recommendations on best QA practices ](https://community.palantir.com/t/recommendations-on-best-qa-practices/7202)

<div class="topic-metadata">

**Author:** [@deepikasappal](https://community.palantir.com/u/deepikasappal)\
**Replies:** 0\
**Last updated:** [September 10, 2026, 5:29am UTC](https://community.palantir.com/t/recommendations-on-best-qa-practices/7202 "2026-09-10T05:29:01Z")

</div>

I am a Sr. QA Engineer and responsible to QA the whole workflow which consist of datasets, functions, objects and finally the front end application. Application is been built based of the LLM model which captures the inp…

---

## [Dark mode across the whole platform](https://community.palantir.com/t/dark-mode-across-the-whole-platform/5421)

<div class="topic-metadata">

**Author:** [@JH367](https://community.palantir.com/u/JH367)\
**Replies:** 3\
**Last updated:** [September 2, 2026, 12:20pm UTC](https://community.palantir.com/t/dark-mode-across-the-whole-platform/5421 "2026-09-02T12:20:25Z")

</div>

I would like to propose Dark Mode across the whole platform, not just in Code repositories. As someone who spends a lot of time in foundry, it would be nice to view datasets, contour, pipelines etc in dark mode.

---

## [how to integrate AIP Analyst in local VS code](https://community.palantir.com/t/how-to-integrate-aip-analyst-in-local-vs-code/7162)

<div class="topic-metadata">

**Author:** [@Mevin](https://community.palantir.com/u/Mevin)\
**Replies:** 0\
**Last updated:** [August 31, 2026, 4:07pm UTC](https://community.palantir.com/t/how-to-integrate-aip-analyst-in-local-vs-code/7162 "2026-08-31T16:07:29Z")

</div>

Hello team, i have local VS code workspace (which has multiple projects), i don’t want to create the workspace/repository on the Palantir foundry (code workbook or vs code). i just want to use the AIP Analyst in the loc…

---

## [Function-generated Email Body for Notification from Automation or Action](https://community.palantir.com/t/function-generated-email-body-for-notification-from-automation-or-action/1055)

<div class="topic-metadata">

**Author:** [@kelseylt](https://community.palantir.com/u/kelseylt)\
**Replies:** 2\
**Last updated:** [January 8, 2025, 7:00pm UTC](https://community.palantir.com/t/function-generated-email-body-for-notification-from-automation-or-action/1055 "2025-01-08T19:00:20Z")

</div>

Hi there! I am working on a function that generates the content for an email body, to be used in either a notification effect from an automation or in a notification effect for an action. Platform documentation outline…

---

## [Serialization error passing an Ontology object into an AIP Logic Function exposed via OSDK](https://community.palantir.com/t/serialization-error-passing-an-ontology-object-into-an-aip-logic-function-exposed-via-osdk/836)

<div class="topic-metadata">

**Author:** [@Natrix](https://community.palantir.com/u/Natrix)\
**Replies:** 5\
**Last updated:** [July 30, 2024, 10:18pm UTC](https://community.palantir.com/t/serialization-error-passing-an-ontology-object-into-an-aip-logic-function-exposed-via-osdk/836 "2024-07-30T22:18:57Z")

</div>

I have an AIP Logic function that accepts an Ontology object as input. I have an Application SDK that exposes both the Ontology object set and the AIP Logic function. When I query the Object set to select a single objec…

---

## [Is there a shortcut to "run" functions in code repo?](https://community.palantir.com/t/is-there-a-shortcut-to-run-functions-in-code-repo/7113)

<div class="topic-metadata">

**Author:** [@JH367](https://community.palantir.com/u/JH367)\
**Replies:** 0\
**Last updated:** [August 17, 2026, 11:01am UTC](https://community.palantir.com/t/is-there-a-shortcut-to-run-functions-in-code-repo/7113 "2026-08-17T11:01:48Z")

</div>

I can’t seem to trigger the “run” with the normal shortcut “ctrl+enter” If there is already a shortcut, what is it please? and if not can this feature be implemented? Thanks!

---

## [Object Set Filtering using Array in AIP](https://community.palantir.com/t/object-set-filtering-using-array-in-aip/472)

<div class="topic-metadata">

**Author:** [@4ef6e3ffa1890cd90fb8](https://community.palantir.com/u/4ef6e3ffa1890cd90fb8)\
**Replies:** 4\
**Last updated:** [July 27, 2024, 3:22am UTC](https://community.palantir.com/t/object-set-filtering-using-array-in-aip/472 "2024-07-27T03:22:57Z")

</div>

I am unable to filter object set variable in AIP using an array. I want to filter on a particular column that matches all the elements of the array and store it as a subset ObjectSet. I did create a function to do so, Bu…

---

## [From an Action Type, how do I call a function that uses a custom type?](https://community.palantir.com/t/from-an-action-type-how-do-i-call-a-function-that-uses-a-custom-type/818)

<div class="topic-metadata">

**Author:** [@rucker](https://community.palantir.com/u/rucker)\
**Replies:** 1\
**Last updated:** [July 26, 2024, 7:43pm UTC](https://community.palantir.com/t/from-an-action-type-how-do-i-call-a-function-that-uses-a-custom-type/818 "2024-07-26T19:43:12Z")

</div>

An action type rule can call a function. However, my function has a custom input type and I am getting this error when I try to reference it in my action type rule: or, if I remove the inline destructure: How do I…

---

## [Improve API, performance, and timeouts for FoOs](https://community.palantir.com/t/improve-api-performance-and-timeouts-for-foos/1120)

<div class="topic-metadata">

**Author:** [@CodeStrap](https://community.palantir.com/u/CodeStrap)\
**Replies:** 2\
**Last updated:** [September 9, 2024, 8:06pm UTC](https://community.palantir.com/t/improve-api-performance-and-timeouts-for-foos/1120 "2024-09-09T20:06:08Z")

</div>

Give context on the use case / what you’re trying to achieve - Being able to use LLMs effectively in FoOs. Required for many use cases linked to workshop and AIP Logic, Why you can’t do it today / work-arounds - There a…

---

## [Typescript Unit Testing: Advice & Guidance](https://community.palantir.com/t/typescript-unit-testing-advice-guidance/827)

<div class="topic-metadata">

**Author:** [@callum\_mccann](https://community.palantir.com/u/callum_mccann)\
**Replies:** 3\
**Last updated:** [July 26, 2024, 7:22pm UTC](https://community.palantir.com/t/typescript-unit-testing-advice-guidance/827 "2024-07-26T19:22:05Z")

</div>

Is there any good example documentation on how to debug setting up unit tests in Typescript repos? I see the implementation documentation here but that falls a bit short when trying to debug . For example, I get : …

---

## [Notification Objects in Python Functions](https://community.palantir.com/t/notification-objects-in-python-functions/4532)

<div class="topic-metadata">

**Author:** [@sharbel](https://community.palantir.com/u/sharbel)\
**Replies:** 2\
**Last updated:** [July 24, 2025, 7:03am UTC](https://community.palantir.com/t/notification-objects-in-python-functions/4532 "2025-07-24T07:03:36Z")

</div>

Hey, I was trying to create a function that returns a notification object that I can use for an action that sends email notifications. I was trying the beta Python functions in Code repository, and it says that the Noti…

---

## [Lease agreement search](https://community.palantir.com/t/lease-agreement-search/775)

<div class="topic-metadata">

**Author:** [@780d30f554e4090ec650](https://community.palantir.com/u/780d30f554e4090ec650)\
**Replies:** 5\
**Last updated:** [July 25, 2024, 5:16pm UTC](https://community.palantir.com/t/lease-agreement-search/775 "2024-07-25T17:16:51Z")

</div>

I have a requirement to build solution to search among lease agreements, the challenge is there could be one or more lease agreement amendments to the master lease agreement, when the question is asked, customer expect t…

---

## [Question about the layer between Ontology and action](https://community.palantir.com/t/question-about-the-layer-between-ontology-and-action/7071)

<div class="topic-metadata">

**Author:** [@Maxx](https://community.palantir.com/u/Maxx)\
**Replies:** 0\
**Last updated:** [August 7, 2026, 8:14am UTC](https://community.palantir.com/t/question-about-the-layer-between-ontology-and-action/7071 "2026-08-07T08:14:30Z")

</div>

Question about the layer between Ontology and action Palantir gives AI a governed representation of operational reality through the Ontology, then provides logic, models, agents, tools, actions, and Evals around that re…

[Next page](https://community.palantir.com/tag/functions/57.md?match_all_tags=true&page=1&tags%5B%5D=functions)
