Skip to content


GP_ORDERS_RT Map Template Issues

Yassin asked 5 years ago
I am trying to integration CRM orders into GP using the SmartConnect GP_ORDERS_RT Map as start and using the CRM order number on the SOP Document number but keep getting the following 
GP_ORDERS_RT: Sql procedure error codes returned: 
Error Number = 2221  Stored Procedure= taSopLineIvcInsert  Error Description = Duplicate document number. If adding or updating lines to an existing document, UpdateIfExists must = 1
Node Identifier Parameters: taSopLineIvcInsert
Related Error Code Parameters for Node : taSopLineIvcInsert
UpdateIfExists = 0
Ethan Sorenson Staff answered 4 years ago
The issue here was the Update Existing flag was set to 0(Create Only) and was causing the map to fail whenever an edit was made to the order in CRM. Real-Time triggers can be put on Creates or Updates. Yassin needed to switch to Create only triggers.

If you would like to submit an answer or comment, please sign in to the eOne portal.