Duplicate entry for primary key error for kettke transformation(job)Date format and data extract from Pentaho Kettle SpoonPentaho Data Integration: Error HandlingDuplicating a job in Pentaho Data Integration for different connectionsError initializing UserDefinedJavaClassNot able to get system data at the end of transformation stepPentaho Error: Duplicate entry for non primary keyUnexpected error occurred while launching entryPDI: Output only if no errorsPentaho Error: Duplicate entry for key 'PRIMARY'Recursive lookup to find ultimate parent of any parent-child relationship using pentaho

How long would it take to cross the Channel in 1890's?

Inverse-quotes-quine

Why is C++ initial allocation so much larger than C's?

Can White Castle?

Find the probability that the 8th woman to appear is in 17th position.

How can I politely work my way around not liking coffee or beer when it comes to professional networking?

Links to webpages in books

How do I respond to requests for a "guarantee" not to leave after a few months?

Require advice on power conservation for backpacking trip

Why did pressing the joystick button spit out keypresses?

Does Marvel have an equivalent of the Green Lantern?

What is the origin of Scooby-Doo's name?

How dangerous are set-size assumptions?

Vanishing of certain coefficients coming from Coxeter groups

Can humans ever directly see a few photons at a time? Can a human see a single photon?

Why do some games show lights shine thorugh walls?

Is it damaging to turn off a small fridge for two days every week?

Why do all the teams that I have worked with always finish a sprint without completion of all the stories?

Hand soldering SMD 1206 components

Are all instances of trolls turning to stone ultimately references back to Tolkien?

Folding basket - is there such a thing?

What's currently blocking the construction of the wall between Mexico and the US?

What are the penalties for overstaying in USA?

Does squid ink pasta bleed?



Duplicate entry for primary key error for kettke transformation(job)


Date format and data extract from Pentaho Kettle SpoonPentaho Data Integration: Error HandlingDuplicating a job in Pentaho Data Integration for different connectionsError initializing UserDefinedJavaClassNot able to get system data at the end of transformation stepPentaho Error: Duplicate entry for non primary keyUnexpected error occurred while launching entryPDI: Output only if no errorsPentaho Error: Duplicate entry for key 'PRIMARY'Recursive lookup to find ultimate parent of any parent-child relationship using pentaho






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















I have 1-table input 1-row filter 1-table output in my spoon transformation. I put this transformation in a Job.



I am getting error:




" Caused by: java.sql.BatchUpdateException: Duplicate entry '1000' for
key 'PRIMARY'




I have checked the input table but there it has only one entry for primary key = 1000. can someone tell me what is going wrong here?



Thank you










share|improve this question



















  • 1





    The error indicates that it occurs on the table output step. Are you sure the entry doesn't exist already in the output table?

    – Etienne Ott
    Mar 25 at 10:37











  • based on my transformation design, if the table input has only one entry for primary key then table output should have only one entry. I have checked there is only one entry in table input. but still table output is inserting it again, pls find my transformation here lh3.googleusercontent.com/-hC76HYdt-mE/XJnhBi3L8DI/AAAAAAAAnKU/… "transformation"

    – Naresh Vadla
    Mar 26 at 8:18












  • Is the output table cleared/truncated before each run of the transformation? The table output step, in contrast to the insert/update step, does not check if the output table already contains the row to write and will fail when the database server complains about the violated constraint on the primary key (as it is not unique). If the transformation should run multiple times, then an insert/update step would be better.

    – Etienne Ott
    Mar 26 at 8:24











  • Thank you. This is the first time i am running the transformation. table is truncated and then running the transformation.

    – Naresh Vadla
    Mar 26 at 10:47











  • Okay, those were my first two guesses as to what's wrong. Could you update the question with the code of the transformation? An image isn't helping much. You can find out the code by opening the kettle file (.ktr) with a text editor and copying the entire XML content. PLEASE make sure to edit out the database connection credentials.

    – Etienne Ott
    Mar 26 at 10:56


















0















I have 1-table input 1-row filter 1-table output in my spoon transformation. I put this transformation in a Job.



I am getting error:




" Caused by: java.sql.BatchUpdateException: Duplicate entry '1000' for
key 'PRIMARY'




I have checked the input table but there it has only one entry for primary key = 1000. can someone tell me what is going wrong here?



Thank you










share|improve this question



















  • 1





    The error indicates that it occurs on the table output step. Are you sure the entry doesn't exist already in the output table?

    – Etienne Ott
    Mar 25 at 10:37











  • based on my transformation design, if the table input has only one entry for primary key then table output should have only one entry. I have checked there is only one entry in table input. but still table output is inserting it again, pls find my transformation here lh3.googleusercontent.com/-hC76HYdt-mE/XJnhBi3L8DI/AAAAAAAAnKU/… "transformation"

    – Naresh Vadla
    Mar 26 at 8:18












  • Is the output table cleared/truncated before each run of the transformation? The table output step, in contrast to the insert/update step, does not check if the output table already contains the row to write and will fail when the database server complains about the violated constraint on the primary key (as it is not unique). If the transformation should run multiple times, then an insert/update step would be better.

    – Etienne Ott
    Mar 26 at 8:24











  • Thank you. This is the first time i am running the transformation. table is truncated and then running the transformation.

    – Naresh Vadla
    Mar 26 at 10:47











  • Okay, those were my first two guesses as to what's wrong. Could you update the question with the code of the transformation? An image isn't helping much. You can find out the code by opening the kettle file (.ktr) with a text editor and copying the entire XML content. PLEASE make sure to edit out the database connection credentials.

    – Etienne Ott
    Mar 26 at 10:56














0












0








0








I have 1-table input 1-row filter 1-table output in my spoon transformation. I put this transformation in a Job.



I am getting error:




" Caused by: java.sql.BatchUpdateException: Duplicate entry '1000' for
key 'PRIMARY'




I have checked the input table but there it has only one entry for primary key = 1000. can someone tell me what is going wrong here?



Thank you










share|improve this question
















I have 1-table input 1-row filter 1-table output in my spoon transformation. I put this transformation in a Job.



I am getting error:




" Caused by: java.sql.BatchUpdateException: Duplicate entry '1000' for
key 'PRIMARY'




I have checked the input table but there it has only one entry for primary key = 1000. can someone tell me what is going wrong here?



Thank you







pentaho kettle pentaho-spoon pentaho-data-integration






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 25 at 12:18









Tomka Koliada

1,2622 gold badges8 silver badges28 bronze badges




1,2622 gold badges8 silver badges28 bronze badges










asked Mar 25 at 9:38









Naresh VadlaNaresh Vadla

103 bronze badges




103 bronze badges







  • 1





    The error indicates that it occurs on the table output step. Are you sure the entry doesn't exist already in the output table?

    – Etienne Ott
    Mar 25 at 10:37











  • based on my transformation design, if the table input has only one entry for primary key then table output should have only one entry. I have checked there is only one entry in table input. but still table output is inserting it again, pls find my transformation here lh3.googleusercontent.com/-hC76HYdt-mE/XJnhBi3L8DI/AAAAAAAAnKU/… "transformation"

    – Naresh Vadla
    Mar 26 at 8:18












  • Is the output table cleared/truncated before each run of the transformation? The table output step, in contrast to the insert/update step, does not check if the output table already contains the row to write and will fail when the database server complains about the violated constraint on the primary key (as it is not unique). If the transformation should run multiple times, then an insert/update step would be better.

    – Etienne Ott
    Mar 26 at 8:24











  • Thank you. This is the first time i am running the transformation. table is truncated and then running the transformation.

    – Naresh Vadla
    Mar 26 at 10:47











  • Okay, those were my first two guesses as to what's wrong. Could you update the question with the code of the transformation? An image isn't helping much. You can find out the code by opening the kettle file (.ktr) with a text editor and copying the entire XML content. PLEASE make sure to edit out the database connection credentials.

    – Etienne Ott
    Mar 26 at 10:56













  • 1





    The error indicates that it occurs on the table output step. Are you sure the entry doesn't exist already in the output table?

    – Etienne Ott
    Mar 25 at 10:37











  • based on my transformation design, if the table input has only one entry for primary key then table output should have only one entry. I have checked there is only one entry in table input. but still table output is inserting it again, pls find my transformation here lh3.googleusercontent.com/-hC76HYdt-mE/XJnhBi3L8DI/AAAAAAAAnKU/… "transformation"

    – Naresh Vadla
    Mar 26 at 8:18












  • Is the output table cleared/truncated before each run of the transformation? The table output step, in contrast to the insert/update step, does not check if the output table already contains the row to write and will fail when the database server complains about the violated constraint on the primary key (as it is not unique). If the transformation should run multiple times, then an insert/update step would be better.

    – Etienne Ott
    Mar 26 at 8:24











  • Thank you. This is the first time i am running the transformation. table is truncated and then running the transformation.

    – Naresh Vadla
    Mar 26 at 10:47











  • Okay, those were my first two guesses as to what's wrong. Could you update the question with the code of the transformation? An image isn't helping much. You can find out the code by opening the kettle file (.ktr) with a text editor and copying the entire XML content. PLEASE make sure to edit out the database connection credentials.

    – Etienne Ott
    Mar 26 at 10:56








1




1





The error indicates that it occurs on the table output step. Are you sure the entry doesn't exist already in the output table?

– Etienne Ott
Mar 25 at 10:37





The error indicates that it occurs on the table output step. Are you sure the entry doesn't exist already in the output table?

– Etienne Ott
Mar 25 at 10:37













based on my transformation design, if the table input has only one entry for primary key then table output should have only one entry. I have checked there is only one entry in table input. but still table output is inserting it again, pls find my transformation here lh3.googleusercontent.com/-hC76HYdt-mE/XJnhBi3L8DI/AAAAAAAAnKU/… "transformation"

– Naresh Vadla
Mar 26 at 8:18






based on my transformation design, if the table input has only one entry for primary key then table output should have only one entry. I have checked there is only one entry in table input. but still table output is inserting it again, pls find my transformation here lh3.googleusercontent.com/-hC76HYdt-mE/XJnhBi3L8DI/AAAAAAAAnKU/… "transformation"

– Naresh Vadla
Mar 26 at 8:18














Is the output table cleared/truncated before each run of the transformation? The table output step, in contrast to the insert/update step, does not check if the output table already contains the row to write and will fail when the database server complains about the violated constraint on the primary key (as it is not unique). If the transformation should run multiple times, then an insert/update step would be better.

– Etienne Ott
Mar 26 at 8:24





Is the output table cleared/truncated before each run of the transformation? The table output step, in contrast to the insert/update step, does not check if the output table already contains the row to write and will fail when the database server complains about the violated constraint on the primary key (as it is not unique). If the transformation should run multiple times, then an insert/update step would be better.

– Etienne Ott
Mar 26 at 8:24













Thank you. This is the first time i am running the transformation. table is truncated and then running the transformation.

– Naresh Vadla
Mar 26 at 10:47





Thank you. This is the first time i am running the transformation. table is truncated and then running the transformation.

– Naresh Vadla
Mar 26 at 10:47













Okay, those were my first two guesses as to what's wrong. Could you update the question with the code of the transformation? An image isn't helping much. You can find out the code by opening the kettle file (.ktr) with a text editor and copying the entire XML content. PLEASE make sure to edit out the database connection credentials.

– Etienne Ott
Mar 26 at 10:56






Okay, those were my first two guesses as to what's wrong. Could you update the question with the code of the transformation? An image isn't helping much. You can find out the code by opening the kettle file (.ktr) with a text editor and copying the entire XML content. PLEASE make sure to edit out the database connection credentials.

– Etienne Ott
Mar 26 at 10:56













0






active

oldest

votes














Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55334877%2fduplicate-entry-for-primary-key-error-for-kettke-transformationjob%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid …


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55334877%2fduplicate-entry-for-primary-key-error-for-kettke-transformationjob%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

How to preserve electronics (computers, tablets and phones) for hundreds of years Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) The network's official Twitter account is up and running again. What content…How might modern humans leave a message for 50,000 years?How would an aquatic race develop computers?How do we make computers care for human life?Keeping supplies for 1000 yearsWhat will cell phones become in 100 years?What body armor protects against a laser?Could a society attain 1800s technology if limited to using copper and bronze?Electricity power (magic) and electronicsScavenging metal resources in post-apocalypse after 100 yearsWhy would precursors create devices that can survive and still work after hundreds of years?

155 수학 과학 기타 둘러보기 메뉴eh추가해eh문서를 완성해

Convert JSON to MapSimplest way to convert a string representing JSON array into Java array List of key value pairsHow to take String JSON values into HashMapConvert a JSON String to a HashMapCreating BSON object from JSON stringJSONObject - How to get a value ?Better Map ConstructorReading JSON from Url javaUpdate columns if input values are not null otherwise ignore and keep the existing values of column in databaseHow to store object represented as Json string into Couchbase Lite?Go JSON into MapHow do I efficiently iterate over each entry in a Java Map?Sort a Map<Key, Value> by valuesHow to round a number to n decimal places in JavaCan comments be used in JSON?How do I read / convert an InputStream into a String in Java?How can I pretty-print JSON in a shell script?What is the correct JSON content type?How can I deserialize JSON to a simple Dictionary<string,string> in ASP.NET?Why does Google prepend while(1); to their JSON responses?Parse JSON in JavaScript?