× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



On Jun 26, 2023, at 2:21 PM, Augusto Sepulveda Bilbao <augustosepulvedabilbao@xxxxxxxxxxx> wrote:

Here are a few potential causes fo this issue:
1. Incorrect SQL statement: Verify that your SQL statement is correct and compatible with the database you are using. Ensure that the table and column names are accurate and that the statement performs the intended update or insert operations.

Well, no … since this is an IBM i oriented forum, the target DB can generally be assumed to be DB2 for i (occasionally it isn’t, but in this case it is).

2. Invalid parameter values: Check that the parameter values you are passing in the SqlParameterSource objects are valid and appropriate for the corresponding columns in the table. Make sure the data types match and there are no null or unexpected values.

The merge statement runs fine, it’s just the array of row counts updated is incorrect.

3. Constraint violations: If your SQL statement includes constraints (such as unique key constraints), it's possible that some of the rows in your batch violate these constraints. Review your data and ensure that you are not attempting to insert duplicate or conflicting values.

Same as #2.

4. Database connectivity issues: It's worth verifying that you have a stable connection to the database and that there are no network or access-related problems that could prevent the batch update from executing correctly.

Same as #2.

david

IBM i on Power Systems: For when you can't afford to be out of business!

I'm riding a in the American Diabetes Association's Tour de Cure to raise money for diabetes research, education, advocacy, and awareness. You can make a tax deductible donation to my ride by visiting https://mideml.diabetessucks.net. My goal is $7000 but any amount is appreciated.

You can see where my donations come from by visiting my interactive donation map ... https://mideml.diabetessucks.net/map (it's a geeky thing).

I may have diabetes, but diabetes doesn't have me!


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.