kettlepentaho-spoonpdi

Error while saving transformation in pentaho spoon


I am getting below error while I save the transformation in pentaho spoon:

Error saving transformation to repository!

Error updating batch
Cannot insert duplicate key row in object 'dbo.R_STEP_ATTRIBUTE' with unique index 'IDX_RSAT'. The duplicate key value is (2314, PARTITIONING_SCHEMA, 0).

Everything was working fine before I ran a job that creates multiple excel files. While this job was running suddenly a memory issue occurred and the job was aborted. After that I tried to save my file but it is deleted for saving but not been saved. So I lost the job I created.

Please help me to know the reason.


Solution

  • The last save of the directory did not end gracefully.

    There is a small chance that you can repair it by easing the db-caches file in the .kettle directory.

    If it does not work, create a new repository and copy the current in the new. Try the global repository export/import. Then erase the old rep and do the same from the just rebuild repository.

    The intermediary repository may be on files rather than on a database.

    If it is the first time you do this, plan for a one-two hours.