Index: AXimpl/Dynamics/ProductItemUpsertIn/Converter/EnvelopeConverter.cls.xml =================================================================== diff -u -r47144 -r47146 --- AXimpl/Dynamics/ProductItemUpsertIn/Converter/EnvelopeConverter.cls.xml (.../EnvelopeConverter.cls.xml) (revision 47144) +++ AXimpl/Dynamics/ProductItemUpsertIn/Converter/EnvelopeConverter.cls.xml (.../EnvelopeConverter.cls.xml) (revision 47146) @@ -48,9 +48,10 @@ Do ..ProductItemConverter.ConvertProductItem(ProductItem) Set SOPRIterator = ##class(TECH.ListIterator).%New(ProductItem.SOPR) While SOPRIterator.HasNext(){ + #dim SOPRProductId = "" #dim SOPR as AXif.Dynamics.ProductItemIn.MessageParts.AxdEntitySOPR = SOPRIterator.Next() try { - #dim SOPRProductId = ..ProductLookup.GeefProductIdVoorLeverancierId(ProductItem.ItemId,##class(DOM.AKP.enu.Leverancier).Blum(),SOPR.ContractId) + Set SOPRProductId = ..ProductLookup.GeefProductIdVoorLeverancierId(ProductItem.ItemId,##class(DOM.AKP.enu.Leverancier).Blum(),SOPR.ContractId) } catch { #dim Exception As TECH.Exceptions.Exception = ##class(TECH.ExceptionHandler).Catch(##class(TECH.Exceptions.InvalidInputException).ClassName(1)) }