When calculating segment counts, this error may appear: An error occurred before executing the process 'Marketing Effort Segment Record Count Calculation': Error calculating the segment record counts: Invalid source code for segment '[segment name]'. The invalid section of the source code is of type 'User Defined' and is named '[name]'. Please enter a valid code for the marketing effort.
We are currently evaluating this issue and will update this article when we have more information.
In the meantime, to potentially work around this issue: Go to the effort settings tab, edit the source code, click save.
Steps to Duplicate
Create a Marketing Effort
Ensure the Marketing Effort uses a source code that is a list
Select the Effort Settings tab, select a value for the source code parts
Add a segment
Select Edit on the segment
Select the Source Code tab
For the Source code part that has a list, select the format to be <by marketing effort>
Create a new Marketing Effort-setting up everything the same way
For Segments, select to copy from another effort
Copy for the first effort that was created
For the segement, select Edit
Select Source Code
Notice for the source code part that uses the format of "by marketing effort", the value exists in the column
Go back to the first Marketing Effort, notice a value exists in that column
Attempt to Calculate Segment counts for the second Marketing Effort-See error