device already claimed error when claiming a device into an organization

Ozgur
Here to help

device already claimed error when claiming a device into an organization

With the following flow;

 

 1 - I have a device claimed into a network

 2 - I remove this device from the network  (https://developer.cisco.com/meraki/api-v1/#!remove-network-devices)

 3 - I claim this device into another organization  (https://developer.cisco.com/meraki/api-v1/#!claim-into-organization)

 4 - I claim this device into another network in this new organization  (https://developer.cisco.com/meraki/api-v1/#!claim-network-devices)

 

Sometimes this flow works file with no problems, and sometimes I get "Device with serial '1111-1111-1111' is already claimed" error while doing step 3. For the cases I get this error, if I wait for around 10 minutes and try again from step 3, the flow succeeds.

 

So in some cases, the api falsely thinks the device is already claimed in a network. Any ideas why this could be happening?

 

What I suspect is, if the 2 organizations are on different shards, it takes some time for the data to be replicated between shards after step 2. Facts supporting this theory are,

 1 - operation succeeds after some time

 2 - this consistently happens for some organization pairs, and consistently not happens for some organization pairs.this be the cause?

2 REPLIES 2
Ryan_Miles
Meraki Employee
Meraki Employee

same happens when claiming through dashboard. best to always wait a few minutes at least between unclaim and claiming a serial.

Aaron_Wilson
A model citizen

I've seen it take longer than 10 minutes. Best to give it 20min wait.

Get notified when there are additional replies to this discussion.