The job_id attribute in fme_job_history comes from the table fme_jobs, which is an identity column.
From <FMEServer>\Server\database\sqlserver\sqlserver_createDB.sql:
CREATE TABLE fme_jobs (
job_id INTEGER NOT NULL IDENTITY PRIMARY KEY,
...
The job id of fme_job_history probably comes from the fme_jobs table (and I guess the job row is moved from the fme_jobs to fme_job_history after completion).
If your database is postgres, maybe modifying the sequence fme_jobs_job_id_seq Current Value to what you want should do the trick.
On SQL Server, you should be able reseed the identity column as described here.
On Oracle, simplest way is to drop and recreate the fme_jobs_seq sequence with the correct value.
The job id of fme_job_history probably comes from the fme_jobs table (and I guess the job row is moved from the fme_jobs to fme_job_history after completion).
If your database is postgres, maybe modifying the sequence fme_jobs_job_id_seq Current Value to what you want should do the trick.
On SQL Server, you should be able reseed the identity column as described here.
On Oracle, simplest way is to drop and recreate the fme_jobs_seq sequence with the correct value.
Thanks a lot @larry I can prove the SQL Server way. Setting the identity seed of fme_jobs.job_id does the trick.
The job_id attribute in fme_job_history comes from the table fme_jobs, which is an identity column.
From <FMEServer>\Server\database\sqlserver\sqlserver_createDB.sql:
CREATE TABLE fme_jobs (
job_id INTEGER NOT NULL IDENTITY PRIMARY KEY,
...
Thanks @david_r After all continuing the job_id is simply a little hack in the createDB script:
CREATE TABLE fme_jobs (
job_id INTEGER NOT NULL IDENTITY (65487,1) PRIMARY KEY,
...
to go on with 65487.
Might be wort for a knowledge base article with the other databases, too...
Thanks @david_r After all continuing the job_id is simply a little hack in the createDB script:
CREATE TABLE fme_jobs (
job_id INTEGER NOT NULL IDENTITY (65487,1) PRIMARY KEY,
...
to go on with 65487.
Might be wort for a knowledge base article with the other databases, too...
I agree, hopefully someone from Safe will pick it up (@NatalieAtSafe). Thanks for sharing the solution.