Error: The INSERT statement conflicted with the FOREIGN KEY constraint “FK_MKTSOURCECODEPART_SEGMENTATIONID.” -- when adding a test marketing effort segment

Error: Data could not be saved. The INSERT statement conflicted with the FOREIGN KEY constraint “FK_MKTSOURCECODEPART_SEGMENTATIONID.” The conflict occurred in database “[DATABASE NAME]”, table “dbo.MKTSEGMENTATION”, column ‘ID’

When attempting to add a test segment to a marketing effort, BBDM users may receive the error message above. The error message may appear if the source code for the test segment contains any user-defined source code parts.

Download and install the latest patch, which contains all fixes from previous patches. If you are running an older version, download and install the latest version and then the patch. 

Possible workaround:

When first adding the test segment, leave the format for the user-defined source code part set to <by marketing effort>. Once the test segment has been added, edit it and change the format to the desired format for this particular source code part.

Environment

 3.0.516.15
 3.0.516, Service Pack 3

Was this article helpful?