# AIP project-scope not working

**URL:** <https://community.palantir.com/t/aip-project-scope-not-working/2869>\
**Category:** Ask the Community\
**Tags:** aip-logic\
**Created:** [February 12, 2025, 10:37pm UTC](https://community.palantir.com/t/aip-project-scope-not-working/2869 "2025-02-12T22:37:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![4ef6e3ffa1890cd90fb8](https://yyz1.discourse-cdn.com/palantir/user_avatar/community.palantir.com/4ef6e3ffa1890cd90fb8/32/465_2.png) [@4ef6e3ffa1890cd90fb8](https://community.palantir.com/u/4ef6e3ffa1890cd90fb8)\
**Post date:** [February 12, 2025, 10:37pm UTC](https://community.palantir.com/t/aip-project-scope-not-working/2869/1 "2025-02-12T22:37:58Z")

</div>

I created an AIP file with following variables data types - string, integer, timestamp and Object Set. I have also used Semantic Search, Conditional blocks and LLM. It was built as a user-scoped file and was successfully published. Now when I try to switch the publish configuration to “project scoped”, it’s throwing an error. The error is as follows:

 ![image](https://canada1.discourse-cdn.com/palantir/original/2X/c/cd399d6c41964c83010dd31dfb772b62b82c80cd.png)

NOTE: It does say “All Resources imported”

What am I missing?

---

<div class="post-metadata">

**Author:** ![aash](https://avatars.discourse-cdn.com/v4/letter/a/bcef8e/32.png) [@aash](https://community.palantir.com/u/aash)\
**Post date:** [February 14, 2025, 9:59pm UTC](https://community.palantir.com/t/aip-project-scope-not-working/2869/3 "2025-02-14T21:59:14Z")

</div>

Hi, thanks for flagging! We are currently working to make stateful functions supported when called from Logic in scoped mode. (Functions that can be stateful currently include compute modules, Java functions, deployed functions, live deployments, and python 2/3 functions). But for now they cannot be used in scoped mode.

Here are some temporary workarounds:

1. switch back to user scoped mode (but you lose cross-user debug logs this way)
2. change the language of the called function to something that is stateless (may be difficult / impossible depending on what the called function is doing)

And I think it’d probably also be helpful for you to see what the offending function was, right? That’s something we should improve on our side.

---

<div class="post-metadata">

**Author:** ![aash](https://avatars.discourse-cdn.com/v4/letter/a/bcef8e/32.png) [@aash](https://community.palantir.com/u/aash)\
**Post date:** [February 14, 2025, 10:55pm UTC](https://community.palantir.com/t/aip-project-scope-not-working/2869/4 "2025-02-14T22:55:12Z")

</div>

> And I think it’d probably also be helpful for you to see what the offending function was, right? That’s something we should improve on our side.

Just shipped an improved message that should show which function is stateful – should be on your stack in the next couple days.

---

<div class="post-metadata">

**Author:** ![system](https://yyz1.discourse-cdn.com/palantir/user_avatar/community.palantir.com/system/32/3_2.png) [@system](https://community.palantir.com/u/system)\
**Post date:** [April 15, 2025, 10:55pm UTC](https://community.palantir.com/t/aip-project-scope-not-working/2869/5 "2025-04-15T22:55:41Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
