Enrollment issue : Corresponding AfW device was not found

LN
Laurent, NACHBAUER
Solutys Technologies

Hi,

We are encountering enrollment issues as of today.

Environment is AEDO, with managed play store, Zebra TC56. Worked fine for almost 2 years.

The NFC part of the process is working fine, we get an error when the MC Agent tries to enroll to the server, it fails.

Server version : 13.4.0.5203

The DSE Log says something like that : Corresponding AfW device was not found while processing the device xxxxxxx with afw id yyyy.

Anybody already experienced that kind of issue ? I'm mainly trying to find out where I should focus my investigations.

Seems like an issue matching a device on the google part, with a deviceid on mobicontrol

Thanks

Edited 6 years ago
Android
ANSWERS
MD
Matt Dermody Diamond Contributor
6 years ago

Was it a previously enrolled device getting re-enrolled or a net new device?

LN

DS Log :

2019-11-12 16:15:11,665 (0x000006cc) [INFO] CCommDeploymentSrvWorker::AutoConfigureDevice() Reenroll device: 353857083023610

2019-11-12 16:15:11,822 (0x000006cc) [ERROR] `anonymous-namespace'::ExecuteCleanupOnReenroll() [`anonymous-namespace'::ExecuteCleanupOnReenroll] Error executing cleanup for the device '353857083023610': Soti.MobiControl.Exceptions.InternalLogicException: Corresponding AfW device was not found while processing the device with Id = 100005244 (AfW user Id = 7065).

   at Soti.MobiControl.AndroidWork.Implementation.EnterpriseManagementServiceEngine.SynchronizeDevice(Device device)

   at Soti.MobiControl.AndroidWork.Implementation.DeviceServiceExtensionEngine.UnbindDevice(Device device)

   at Soti.MobiControl.Core.BusinessLogic.DeviceRemoveService.CleanUpAndroidWorkData(Device device)

   at Soti.MobiControl.Core.BusinessLogic.DeviceRemoveService.SoftDeleteDevice(Device device)

   at Soti.MobiControl.DeploymentServerExtensions.Framework.DeviceAdministration.DeleteDevice(Device device)

   at Soti.MobiControl.DeploymentServerExtensions.MessagingServiceAgentProxy.DeleteDevice(String deviceId)

   at ?A0xe634597d.ExecuteCleanupOnReenroll(CStringT<wchar_t\,StrTraitMFC_DLL<wchar_t\,ATL::ChTraitsCRT<wchar_t> > >* legacyDeviceId)

2019-11-12 16:15:12,056 (0x000006cc) [ERROR] ::__cdecl ClearDeviceProfiles() Error clearing profile statuses for device [353857083023610]

2019-11-12 16:15:12,056 (0x000006cc) [ERROR] ::__cdecl ClearDeviceProfiles() Soti.MobiControl.Exceptions.InternalLogicException: Corresponding AfW device was not found while processing the device with Id = 100005244 (AfW user Id = 7065).

   at Soti.MobiControl.AndroidWork.Implementation.EnterpriseManagementServiceEngine.SynchronizeDevice(Device device)

   at Soti.MobiControl.AndroidWork.Implementation.DeviceServiceExtensionEngine.UnbindDevice(Device device)

   at Soti.MobiControl.Controllers.DeviceController.ClearDeviceStatuses(Int32 deviceId)

   at Soti.MobiControl.Api.Implementation.Com.DeviceConfigurationFacade.ClearProfileStatuses(String deviceId)

   at ClearDeviceProfiles(Char* pszDevId)

2019-11-12 16:15:12,056 (0x000006cc) [ERROR] CCommDeploymentSrvWorker::OnDeviceInfo() OnDeviceInfo: ACK_ERROR_MSG[2] [Device=353857083023610]

2019-11-12 16:15:12,228 (0x00001430) [ERROR] CWinLogFile::WriteAllLog() SSL: Session shutdown received (00090317)

DSE Log :

*************************************************************

* Exception: Failed to delete the device '353857083023610'. *

*************************************************************

[InternalLogicException: Corresponding AfW device was not found while processing the device with Id = 100005244 (AfW user Id = 7065).]

   at Soti.MobiControl.AndroidWork.Implementation.EnterpriseManagementServiceEngine.SynchronizeDevice(Device device)

   at Soti.MobiControl.AndroidWork.Implementation.DeviceServiceExtensionEngine.UnbindDevice(Device device)

   at Soti.MobiControl.Core.BusinessLogic.DeviceRemoveService.CleanUpAndroidWorkData(Device device)

   at Soti.MobiControl.Core.BusinessLogic.DeviceRemoveService.SoftDeleteDevice(Device device)

   at Soti.MobiControl.DeploymentServerExtensions.Framework.DeviceAdministration.DeleteDevice(Device device)

   at Soti.MobiControl.DeploymentServerExtensions.MessagingServiceAgentProxy.DeleteDevice(String deviceId)

*************************************************************

### 2019-11-12 16:15:12.040 ERROR [344]:

***************************************************************************************************************************

* Exception: Corresponding AfW device was not found while processing the device with Id = 100005244 (AfW user Id = 7065). *

***************************************************************************************************************************

[InternalLogicException: Corresponding AfW device was not found while processing the device with Id = 100005244 (AfW user Id = 7065).]

   at Soti.MobiControl.AndroidWork.Implementation.EnterpriseManagementServiceEngine.SynchronizeDevice(Device device)

   at Soti.MobiControl.AndroidWork.Implementation.DeviceServiceExtensionEngine.UnbindDevice(Device device)

   at Soti.MobiControl.Controllers.DeviceController.ClearDeviceStatuses(Int32 deviceId)

   at Soti.MobiControl.Api.Implementation.Com.DeviceConfigurationFacade.ClearProfileStatuses(String deviceId)

***************************************************************************************************************************

LN
Laurent, NACHBAUER
6 years ago (edited 6 years ago)

Was it a previously enrolled device getting re-enrolled or a net new device?

Yes, they were previously enrolled, back from repair.

The more I look into it, the more it seems to be some leftover in the SQL database causing an issue.

We had many before that and never had the issue, but... who knows

RM
Ravikant Mishra
6 years ago
Can you please check if there is device entry in database? Connect to DB via SQL management studio and try running below query against mobicontroldb Select * from dbo.devinfo where Devid = '353857083023610' See if there is any entry with mode=-1 which means deleted. Try removing this entry via : Delete from dbo.devinfo where Devid = '353857083023610'
LN

I had a case opened with Soti support, and we noticed that the 2 problematic devices had a record left in the SQL database preventing re-enrollment.

After deleting the records manually, they enrolled fine again.

It's a bit annoying because to remove a device from the devinfo table, all other reference to this very deviceID must be removed first in other tables (like 4 to 5 references).