hello...
I'm new in developing for GP10.0... so, forgiveme if i ask some easy things :P
*This post is locked for comments
Guido,
you are trying to create a SOP QUOTE. QUOTE documents have nothing to do with quantity or quantity levels. If you try and integrate the document and it fails...what is the exception getting logged to the eConnect event log? If it is the same 235 error, then that is the same problem as before and I provided you the code check that is running and returning the error.
Unless you can provide more details, you are going to need to open a support case so someone can screen share with you and take a look at what you are passing and the exception being returned. Please integrate the document again that is failing and then attached the exception details that are getting logged.
Thanks!
Hi Aaron ...
First, thanks for your time and for help me...
I have tried your suggestion but it didnt work... i'm still having the same problem... i looked for that items stock and they dont have stock, or customer exceeds its purchase limit :S... i guess that's the problem...
I dont pass the parameters, because all is calculated automatically, and just need to pass the subtotal... I know it, because some quotes (25%) could be entered... and items had stock and customers didnt exceed its purchase limit...
sorry if i redund too much...
thanks in advance...
That is your issue then. It appears you are not passing in the @I_vDOCAMNT value because the SUM of all those other parmeters to not equal the @I_vDOCAMNT parameter.
if @I_vSUBTOTAL + @I_vFREIGHT + @I_vMISCAMNT + @I_vTAXAMNT + @I_vFRTTXAMT + @I_vMSCTXAMT - @I_vTRDISAMT <> @I_vDOCAMNT
begin
select @O_iErrorState = 235 /* Document amount does not equal (Subtotal+Freight+Misc+TaxAmt+FreightTax+MiscTax-TradeDisc) */ /*SOPNUMBE SOPTYPE*/ /*SUBTOTAL FREIGHT MISCAMNT TAXAMNT FRTTXAMT MSCTXAMT TRDISAMT DOCAMNT*/
exec @iStatus = taUpdateString
@O_iErrorState,
@oErrString,
@oErrString output,
@O_oErrorState output
end
Sorry... i forgot it...
but it is here:
Microsoft.GreatPlains.eConnect Version=10.0.0.0
Microsoft.Dynamics.GP.eConnect
Sql procedure error codes returned:
Error Number = 235 Stored Procedure taSopHdrIvcInsert Error Description = Document amount does not equal (Subtotal+Freight+Misc+TaxAmt+FreightTax+MiscTax-TradeDisc)
Node Identifier Parameters: taSopHdrIvcInsert
SOPNUMBE = COTM1-0000771
SOPTYPE = 1
Related Error Code Parameters for Node : taSopHdrIvcInsert
SUBTOTAL = 225.9800
FREIGHT = Note: This parameter was not passed in, no value for the parameter will be returned.
MISCAMNT = Note: This parameter was not passed in, no value for the parameter will be returned.
TAXAMNT = Note: This parameter was not passed in, no value for the parameter will be returned.
FRTTXAMT = Note: This parameter was not passed in, no value for the parameter will be returned.
MSCTXAMT = Note: This parameter was not passed in, no value for the parameter will be returned.
TRDISAMT = Note: This parameter was not passed in, no value for the parameter will be returned.
DOCAMNT = Note: This parameter was not passed in, no value for the parameter will be returned.
<taSopHdrIvcInsert><SOPTYPE>1</SOPTYPE><DOCID>QUOTE.MATRIX</DOCID><LOCNCODE>MATRIX</LOCNCODE><DOCDATE>01-04-2012</DOCDATE><CUSTNMBR>11111111111111111</CUSTNMBR><SUBTOTAL>225.9800</SUBTOTAL><BACHNUMB>COT60</BACHNUMB><CREATETAXES>1</CREATETAXES><CURNCYID>DOLAR</CURNCYID><SOPNUMBE>COTM1-0000771 </SOPNUMBE></taSopHdrIvcInsert>
at Microsoft.Dynamics.GP.eConnect.eConnectMethods.ExecStoredProcedures(String xml)
at Microsoft.Dynamics.GP.eConnect.eConnectMethods.eConnect_EntryPoint(String ConnectionString, ConnectionStringType ConnectionType, String sXML, SchemaValidationType ValidationType, String eConnectSchema)
I have verified that items in orders directly in Dynamics GP, and dont have stock of that items, and didnt allow me to proceed with the order, but if when i tried to make a quote i can save the quote...
I check the values and all is correct...
By econnect xml, i have the same error when i serialized orders and quotes...
Thanks for your time...
The error exception being returned back to you would be good for starters. Do you have the error code being returned and added to the eConnect Event log?
Thanks!
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156