Non Random PK generation when Multiple users create objects at the same time

Hey team, I have a use case/ question: we are migrating a ticketing app into Palantir Foundry, where the requirement is a PK that is serial in nature for an Object type. The platform currently do not support such transactions. Is there any other way that we can resolve this issue ? Pasting below a sample screenshot of Create scenario. I’m already pulling the max(number PK) + math.random(0,400) to use as a PK for the new created object but when multiple users are creating at the same time, the following error occurs. We have a user base of almost 4000, and they are pretty used to see the PKs as serially increasing integers, and there are dozens of downstream systems that depend on the old PK values so there is no point of using UUID that can break the downstream capabilities.

Unknown Conjure Error

Error: [Actions] ObjectsAlreadyExist
Error ID: 03245139-4800-47e0-a007-26dd3038a149
Related values:

· objectLocators: [ObjectLocator{objectTypeld: e-o-vtam-work-
request-tickets, primaryKey: {requestid=PrimaryKeyValue{value:
StringWrapper{value: 2650936}}}}]

Test with 40 users? or rebuild the app on Palantir.