Copy patterns from one instance to another throws the error "Cannot commit Update Set 'PatternExport' because: Update scope id '' is different than update set scope id 'global'"


Description

Copy patterns from one instance to another fail with the error "Cannot commit Update Set 'PatternExport<date_time>' because: Update scope id '<sys_id>' is different than update set scope id 'global'."

Steps to Reproduce

1. Navigate to table sn_discovery_patterns.

2. Add column 'Application'.

3. Follow the set procedure to export patterns.

4. Import the update set into another instance.

5. Preview the imported update set. Notice the possible errors:
"Cannot commit Update Set 'PatternExport<date_time>' because: Update scope id '<sys_id>' is different than update set scope id 'global'."
"Could not find a record in sys_scope for column sys_scope referenced in this update."

Workaround

This is expected behavior,  the system is trying to match the scope ID.
Make sure to transfer the update set only to instances that include the application scope, or ensure that the update set includes the application:

1) Open the Retrieved Update Set.
2) On related list "Customer Updates" add column "Application".
3) Double click and set value to global.
4) Preview and commit.


Related Problem: PRB1368436