# \#rpc

**URL:** https://discourse.geta12.com/tag/rpc/106.md

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

---

## [How to prevent certain document models to be used with default json-rpc operations?](https://discourse.geta12.com/t/how-to-prevent-certain-document-models-to-be-used-with-default-json-rpc-operations/3333)

<div class="topic-metadata">

**Author:** [@andreas-fresh-mesa](https://discourse.geta12.com/u/andreas-fresh-mesa)\
**Replies:** 3\
**Last updated:** [May 26, 2026, 6:31am UTC](https://discourse.geta12.com/t/how-to-prevent-certain-document-models-to-be-used-with-default-json-rpc-operations/3333 "2026-05-26T06:31:34Z")

</div>

A set of document models in our application has to fullfill certain invariants. Therefore I would like to forbid the use of those document models with the default A12 json rpc opertion like add document, modify document …

---

## [How to not block resources while waiting for solr commits?](https://discourse.geta12.com/t/how-to-not-block-resources-while-waiting-for-solr-commits/2493)

<div class="topic-metadata">

**Author:** [@andreas-fresh-mesa](https://discourse.geta12.com/u/andreas-fresh-mesa)\
**Replies:** 5\
**Last updated:** [September 3, 2025, 9:24am UTC](https://discourse.geta12.com/t/how-to-not-block-resources-while-waiting-for-solr-commits/2493 "2025-09-03T09:24:20Z")

</div>

In my application I have an rpc request that adds about 30 documents and 30 relations between those. I have noticed that on my local setup the request takes about 6s to complete and more than 70% of the time is spent wa…

---

## [How to add a document and a link to that document within 1 rpc request?](https://discourse.geta12.com/t/how-to-add-a-document-and-a-link-to-that-document-within-1-rpc-request/2607)

<div class="topic-metadata">

**Author:** [@andreas-fresh-mesa](https://discourse.geta12.com/u/andreas-fresh-mesa)\
**Replies:** 3\
**Last updated:** [January 30, 2025, 10:14am UTC](https://discourse.geta12.com/t/how-to-add-a-document-and-a-link-to-that-document-within-1-rpc-request/2607 "2025-01-30T10:14:51Z")

</div>

In an import script I would like to add a document and a link from an existing document to that newly added document. The rpc request body is (as intended by me): \[ { "jsonrpc": "2.0", "id": "ListPro…

---

## [How to create idempotent json rpc init scripts?](https://discourse.geta12.com/t/how-to-create-idempotent-json-rpc-init-scripts/2609)

<div class="topic-metadata">

**Author:** [@andreas-fresh-mesa](https://discourse.geta12.com/u/andreas-fresh-mesa)\
**Replies:** 1\
**Last updated:** [January 30, 2025, 8:14am UTC](https://discourse.geta12.com/t/how-to-create-idempotent-json-rpc-init-scripts/2609 "2025-01-30T08:14:14Z")

</div>

I would like to import documents during data services initialization. How can I make sure on repeated init execution the documents in dataservices reflect the state that would have been created by running init the first …

---

## [Create a DocumentV2 instance from a JsonNode obtained from a DataServices RPC call](https://discourse.geta12.com/t/create-a-documentv2-instance-from-a-jsonnode-obtained-from-a-dataservices-rpc-call/2530)

<div class="topic-metadata">

**Author:** [@thomas-soft-grove](https://discourse.geta12.com/u/thomas-soft-grove)\
**Replies:** 4\
**Last updated:** [December 19, 2024, 6:46pm UTC](https://discourse.geta12.com/t/create-a-documentv2-instance-from-a-jsonnode-obtained-from-a-dataservices-rpc-call/2530 "2024-12-19T18:46:00Z")

</div>

The new DocumentV2 API makes dealing with documents a lot easier. I need to copy one document and make some modifications on the fly. Using DocumentV2.traverse() combined with getFieldValue() and the BatchUpdate makes th…

---

## [Client side JsonRPC calls](https://discourse.geta12.com/t/client-side-jsonrpc-calls/1222)

<div class="topic-metadata">

**Author:** [@stefan-sparse-array](https://discourse.geta12.com/u/stefan-sparse-array)\
**Replies:** 3\
**Last updated:** [January 18, 2023, 4:41pm UTC](https://discourse.geta12.com/t/client-side-jsonrpc-calls/1222 "2023-01-18T16:41:31Z")

</div>

I’m currently upgrading from A12 2021.06 to 2022.06. Within this upgrade we are forced to use the new JsonRPC operations. As we are using a custom data loader we need to execute e.g. the LIST\_DOCUMENTS RPC calls on our …
