The invention discloses a method and a device for solving
data association failure, and relates to the technical field of electronic government data government. Comprising the following steps of: 1, establishing a redundant coding
system compatible with standard 12-bit
administrative division codes by using a UUIDv4 format, establishing a
dynamic mapping relationship between the redundant codes and standard codes according to requirements, and distributing
administrative division codes and unique and unchanged redundant codes for each
administrative division; the method comprises the following steps: step 1, providing four types of standard operations of adding, changing, cancelling or merging, step 2, performing
data publishing by using two channels of REST API and a
message queue: notifying the latest administrative division code, the
redundant code and the
dynamic mapping relationship, and performing real-
time synchronization of cross-
system data association; according to the method, by establishing a redundant coding
system and a dynamic synchronization mechanism, continuous
traceability of historical data after
zoning change is ensured, and normal operation of an existing
service system is maintained at the same time.