SQL Error -1 preforming exec

AKO

Gut bekanntes Mitglied
26. Juni 2010
303
6
Hallo,

wir haben einen der berühmten SQL Error auf SQL-Server mit Win7.
Tritt bei der Abfrage der erfolgreichen Ebay-Angebote oder der abgeschlossenen Angebote auf.
Scheint an der Version 099755 zu liegen, da der Fehler erst nach dem Update erstmals aufgetreten ist.

Hier mal ein Auszug aus der Log-Datei dazu.

JTL-wawi 1560-10c4 ENTER SQLExecDirect
HSTMT 0x00D11828
UCHAR * 0x00189FF0 [ -3] "WITH Result AS (SELECT t.kTransaction, t.kBuyer, t.AdjustmentAmount, t.AmountPaid, t.BestOfferSale, t.BuyerPaidStatus, t.ConvertedAdjustmentAmount, t.ConvertedAmountPaid, t.ConvertedTransactionPrice, CONVERT(varchar(32), t.CreateDate, 120) AS CreateDate , t.FL_CommentText, t.FL_CommentType, t.FL_TargetUser, t.FR_CommentText, t.FR_CommentType, t.FR_TargetUser, t.FinalValueFee, CONVERT(varchar(32), t.PaidTime, 120) AS PaidTime, t.QuantityPurchased, CONVERT(varchar(32), t.ShippedTime, 120) AS ShippedTime, t.SSS_ExpeditedService, t.SSS_ShippingInsuranceCost, t.SSS_ShippingService, t.SSS_ShippingServiceAdditionalCost, t.SSS_ShippingServiceCost, t.Status_BuyerSelectedShipping, t.Status_CheckoutStatus, t.Status_CompleteStatus, t.Stauts_eBayPaymentStatus, CONVERT(varchar(32), t.Status_LastTimeModified, 120) AS Status_LastTimeModified, t.Status_PaymentMethodUsed, t.TransactionID, t.TransactionPrice,\ a t.Status, t.ItemID, CONVERT(varchar(32), t.dZahlungsdatum, 104) AS dZahlungsdatum, t.kBestellung, t.kAlien, t.VAT, t.nCheckout, a.kAlienItem, a.Title AS TitleAlien, a.ItemID AS ItemIDAlien, CONVERT(varchar(32), a.StartTime, 120) AS StartTimeAlien, CONVERT(varchar(32), a.EndTime, 120) AS EndTimeAlien, a.ListingType AS ListingTypeAlien, a.Quantity AS QuantityAlien, a.QuantityAvailable AS QuantityAvailableAlien, a.SS_BidderCount AS SS_BidderCountAlien, a.SS_BidCount AS SS_BidCountAlien, a.SS_CurrentPrice AS SS_CurrentPriceAlien, a.SS_HighBidderUserId AS SS_HighBidderUserIdAlien, a.StartPrice AS StartPriceAlien, a.BuyItNowPrice AS BuyItNowPriceAlien,\ a a.CurrencyID AS CurrencyIDAlien, a.UserID, a.Status AS StatusAlien , a.kEbayuser AS kEbayuserAlien, i.kItem, i.BestOfferEnabled, i.BuyItNowPrice, i.Country, i.Currency, i.GalleryType, i.HitCounter, i.ItemID AS ItemIDItem, i.ListingDuration, i.ListingEnhancement, i.ListingType, i.Location, i.LotSize, i.NowAndNew, i.PayPalEmailAddress, i.PaymentMethods, (i.Quantity + ISNULL((select sum(eik.fAnzahl) ..."
SDWORD -3

JTL-wawi 1560-10c4 EXIT SQLExecDirect with return code 0 (SQL_SUCCESS)
HSTMT 0x00D11828
UCHAR * 0x00189FF0 [ -3] "WITH Result AS (SELECT t.kTransaction, t.kBuyer, t.AdjustmentAmount, t.AmountPaid, t.BestOfferSale, t.BuyerPaidStatus, t.ConvertedAdjustmentAmount, t.ConvertedAmountPaid, t.ConvertedTransactionPrice, CONVERT(varchar(32), t.CreateDate, 120) AS CreateDate , t.FL_CommentText, t.FL_CommentType, t.FL_TargetUser, t.FR_CommentText, t.FR_CommentType, t.FR_TargetUser, t.FinalValueFee, CONVERT(varchar(32), t.PaidTime, 120) AS PaidTime, t.QuantityPurchased, CONVERT(varchar(32), t.ShippedTime, 120) AS ShippedTime, t.SSS_ExpeditedService, t.SSS_ShippingInsuranceCost, t.SSS_ShippingService, t.SSS_ShippingServiceAdditionalCost, t.SSS_ShippingServiceCost, t.Status_BuyerSelectedShipping, t.Status_CheckoutStatus, t.Status_CompleteStatus, t.Stauts_eBayPaymentStatus, CONVERT(varchar(32), t.Status_LastTimeModified, 120) AS Status_LastTimeModified, t.Status_PaymentMethodUsed, t.TransactionID, t.TransactionPrice,\ a t.Status, t.ItemID, CONVERT(varchar(32), t.dZahlungsdatum, 104) AS dZahlungsdatum, t.kBestellung, t.kAlien, t.VAT, t.nCheckout, a.kAlienItem, a.Title AS TitleAlien, a.ItemID AS ItemIDAlien, CONVERT(varchar(32), a.StartTime, 120) AS StartTimeAlien, CONVERT(varchar(32), a.EndTime, 120) AS EndTimeAlien, a.ListingType AS ListingTypeAlien, a.Quantity AS QuantityAlien, a.QuantityAvailable AS QuantityAvailableAlien, a.SS_BidderCount AS SS_BidderCountAlien, a.SS_BidCount AS SS_BidCountAlien, a.SS_CurrentPrice AS SS_CurrentPriceAlien, a.SS_HighBidderUserId AS SS_HighBidderUserIdAlien, a.StartPrice AS StartPriceAlien, a.BuyItNowPrice AS BuyItNowPriceAlien,\ a a.CurrencyID AS CurrencyIDAlien, a.UserID, a.Status AS StatusAlien , a.kEbayuser AS kEbayuserAlien, i.kItem, i.BestOfferEnabled, i.BuyItNowPrice, i.Country, i.Currency, i.GalleryType, i.HitCounter, i.ItemID AS ItemIDItem, i.ListingDuration, i.ListingEnhancement, i.ListingType, i.Location, i.LotSize, i.NowAndNew, i.PayPalEmailAddress, i.PaymentMethods, (i.Quantity + ISNULL((select sum(eik.fAnzahl) ..."
SDWORD -3

JTL-wawi 1560-10c4 ENTER SQLFetch
HSTMT 0x00D11828

JTL-wawi 1560-10c4 EXIT SQLFetch with return code -1 (SQL_ERROR)
HSTMT 0x00D11828

DIAG [22003] [Microsoft][ODBC SQL Server Driver]Numerische Werte außerhalb des zulässigen Bereichs (0)

JTL-wawi 1560-10c4 ENTER SQLErrorW
HENV 0x00CF1AF8
HDBC 0x00CF1B70
HSTMT 0x003EA520
WCHAR * 0x00185D60
SDWORD * 0x00185D98
WCHAR * 0x00185960
SWORD 512
SWORD * 0x00185D9C

JTL-wawi 1560-10c4 EXIT SQLErrorW with return code 100 (SQL_NO_DATA_FOUND)
HENV 0x00CF1AF8
HDBC 0x00CF1B70
HSTMT 0x003EA520
WCHAR * 0x00185D60
SDWORD * 0x00185D98
WCHAR * 0x00185960
SWORD 512
SWORD * 0x00185D9C

Was kann man tun? Hilft eine Datenbankbereinigung in JTL vielleicht? Ich trau mich da aber nicht ran, ohne Infos dazu zu haben.

Vielen Dank schon mal für Hinweise.
 

fhuchler

Aktives Mitglied
17. September 2011
21
0
Vorarlberg
AW: SQL Error -1 preforming exec

Hallo AKO,

das Problem steht in der Zeile DIAG[22003]
"DIAG [22003] [Microsoft][ODBC SQL Server Driver]Numerische Werte außerhalb des zulässigen Bereichs (0) "

Folglich wird hier ein Wert in einem Feld gespeichert, der zu groß für das Feld ist. Stell dir das so vor:
Wenn du ein Feld mit 20 Zeichen definierts, und dann einen Wert abspeichern willst, der mehr als 20 Zeichen hat,
passt der Wert nicht in das Datenbankfeld, dann kommt eine Fehlermeldung wie oben.

Hier kann vermutlich nur die Entwicklertruppe was machen...

Gruß
Florian

P.S: natürlich kannst du eine Sicherung machen und dann die Datenbankbereinigung durchführen und schauen ob das Problem so behoben werden kann...
 

AKO

Gut bekanntes Mitglied
26. Juni 2010
303
6
AW: SQL Error -1 preforming exec

Hallo Florian,

vielen Dank. Datenbankbereinigung und Update auf 099756 haben nichts gebracht.
Ich mach wohl mal ein Ticket auf.

Vielen Dank!
 

Pfanne88

Aktives Mitglied
23. August 2008
128
0
AW: SQL Error -1 preforming exec

Hallo zusammen,

habe genau das gleiche Problem seit dem Update.
Gibt es schon eine Lösung?
 

Janusch

Administrator
Mitarbeiter
24. März 2006
13.921
264
AW: SQL Error -1 preforming exec

Hallo,

ich konnte ein Problem finden.
Die Menge darf nicht kleiner 0 sein, sonnst kommt es zu diesem Fehler.

In diesem Fall war es die Anzahl bei einer Variation, die lag unter 0.

Bitte mit diesem Befehl prüfen ob es evtl. gleiches Problem ist:
Code:
osql -D eazy -U sa -P sa04jT14 -d eazybusiness -Q "SELECT * from ebay_item2kombi WHERE fAnzahl<0"

Sollte es ein anderer Mandant sein als eB-Standard , muss statt eazybusiness der Datenbankname des Mandanten "Mandant_X" rein.

Ausführen auf dem SQL-Server Rechner unter START-> Ausführen -> cmd.exe
 

AKO

Gut bekanntes Mitglied
26. Juni 2010
303
6
AW: SQL Error -1 preforming exec

Vielen Dank an den Support. JTL hat es per Teamviewer behoben.
Thema ist damit für mich gelöst.