Gelöst System.NotSupportedException: Can not create payload from invalid type. Type given: A

hotzeplotz

Aktives Mitglied
4. Februar 2019
65
3
Hallo Leute,

wenn in den Einstellungen zur Shop-Anbindung der Haken bei "Onlineshop Bestellungen in Angebot wandeln" angehakt ist und eine Bestellung abgeholt wird, wird die unten stehende Ausnahme geworfen.

Wenn ich das richtig verstehe wird der cType einer Bestellung nachträglich von "B" auf "A" (dbo.spBestellungAendern > @cType = 'A') geändert. Was sich wohl in der Meldung "(...) invalid type. Type given: A" widerspiegelt.

Irritiert hat mich zuerst das "bei JTLwawi.CJTLwawi.JTL_ExecuteWorkflow", deshalb passt das Thema vielleicht hier rein.

Hat jemand eine Idee, wie ich das abstellen könnte?

Danke und schönen Tag noch.


Code:
Unbehandelte Ausnahme #338D9F6AA2688C26 vom Typ System.NotSupportedException in JTL.Wawi.Contracts.DispatcherBus.Payloads.AuftragPayload Create(JTL.Wawi.Contracts.DispatcherBus.DispatcherPayload)
System.NotSupportedException: Can not create payload from invalid type. Type given: A
   bei jtlCore.Classes.DispatcherBus.Payloads.Types.AuftragPayloadFactory.Create(DispatcherPayload payload)
   bei jtlCore.Classes.DispatcherBus.Payloads.PayloadFactory.CreateAuftrag(DispatcherPayload payload)
   bei jtlCore.Classes.DispatcherBus.DispatcherBusReceiver.i6pRFG5wx58(DispatcherPayload  )
   bei jtlCore.Classes.DispatcherBus.DispatcherBusReceiver.Notify(IDispatchableObjekt objekt, Int32 eventId, NotifyArguments arguments, CustomNotificationData data)
   bei jtlDispatcher.jtlDispatcher.NotifyReceiver(IDispatchableObjekt obj, Int32 eventId, NotifyArguments arguments, CustomNotificationData customData)
   bei jtlDispatcher.jtlDispatcher.NotifyReceiver(IDispatchableObjekt obj, Int32 eventId, NotifyArguments arguments)
   bei JTLwawi.CJTLwawi.JTL_ExecuteWorkflow(String SRV, String DBN, String DBU, String DBP, Int32 kBenutzer, Int32 nObjektId, Int32 nObjektPk, Int32 nEventId, Int32 nApplikation)

2021-07-29T16:00:54 DEBUG - SELECT * FROM [dbo].[tBestellung] WHERE [KBestellung] = @kBestellung
@kBestellung = '109664'
2021-07-29T16:00:54 DEBUG - Dauer bis zum Reader: 1ms
2021-07-29T16:00:54 DEBUG - Dauer: 0 ms, 1 Zeilen
2021-07-29T16:00:54 DEBUG - dbo.spBestellungAendern
@cType = 'A'
 

Ähnliche Themen