How can I process an old version of my dataset?

In code repositories, I would like to access an “old version” of my input dataset.
The goal would be to recover from a mistake in the data being loaded, and hence being able to “revert back” to an older version of the data that was produced.

In an ideal world, I would like to create a branch, specify a transaction range, and read from it, and save it to an output dataset.

I see there are as well APIs to fetch files in the documentation: https://www.palantir.com/docs/foundry/api/datasets-v2-resources/files/get-file/

How can I process an old version of my dataset ? Create a new output that matches this old version of my input (potentially an identity transform) ?

1 Like

In Code Repositories, there is no way to select a specific input transaction (see the existing Input Class parameters). However, you can call the createBranch endpoint which takes a transactionRid parameter that can be set to a previous transaction. Then you would be able to use this branch in your transform (branch being a parameter of the Input class).