Device assignment: AssignmentTrigger::Set: can't open event (lastError=2), Errorcode=2
Hello,
We started to use the "device assignment" functions to add new computer devices automatically to the company's Contact List.
The first 8 computers aren't in the list after installing TeamViewer.
With a test machine, I experience the same: The entry in the Contact List isn't available.
We can connect to the TeamViewer Host with the ID and pre-set password, so connection to/from the client computer, is working well.
The TV Log file shows a lot of entries, I try to find the ones referring to this auto-assignment:
TeamViewer License: Corporate
TeamViewer Host setup: Setup file generated in the Management Console
Client: TeamViewer Host v15.0.8397 HC
Date: Nov 6 2019
License of this Host: Free
OS: Windows 10 Enterprise LTSC 2019
Command line for the setup:
X:\Staging\TeamViewer_host.msi /quiet /qn /norestart DESKTOPSHORTCUTS=0 IMPORTREGFILE=1 CUSTOMCONFIGID=$1abcd APITOKEN=$987-AbCdE0369 ASSIGNMENTOPTIONS="--alias ""%TVCITY%/%TVACCO% %TVFUNCTION% (%TVPREPID%)"" --group ""%TVCOUNTRY%/%TVCITY%/%TVACCO%"""
For security reasons, I replaced the config ID and API token.
The %% and quotes-stuff is translated well to the desired format, as reported in the TV Log file.
The TV Log shows for this entries the following result:
GroupName: BE/Test/Test
DeviceAlias: Test/Test Kiosk (1523)
Which is the expected result. So the command line for the setup, is working well.
The TV Log shows (I guess I copy/pasted at least some lines referring to assignment):
2020/04/17 12:20:07.646 1672 3848 C2 CustomConfigurationUpdaterImplWin::ReadInitialConfigurationId: Initial configuration "1abcd".
...
2020/04/17 12:20:07.802 1864 3948 C2 CommandLineTasks::Execute: executing task 'assign'
2020/04/17 12:20:07.802 1864 3948 C2 DeviceAssignmentStarter::Run:Start Assigment with parameters:
ApiToken: *****************************
GroupName: BE/Test/Test
DeviceAlias: Test/Test Kiosk (1523)
2020/04/17 12:20:07.802 1864 3948 C2!! AssignmentTrigger::Set: can't open event (lastError=2), Errorcode=2
2020/04/17 12:20:07.802 1864 3948 C2 DeviceAssignment::TriggerAssignmentAction - Try triggering the assignment event for the next 30 secs.
...
2020/04/17 12:20:08.818 1864 3948 C2!! AssignmentTrigger::Set: can't open event (lastError=2), Errorcode=2
2020/04/17 12:20:09.427 3904 6616 S0 LicenseTracker::UpdateMachineLicense() local license differs from master license
2020/04/17 12:20:09.427 3904 6616 S0 Non-Commercial use
...
2020/04/17 12:20:40.300 1864 3948 C2!! AssignmentData-File "C:\Program Files (x86)\TeamViewer\AssignmentData.json" didn't appear within 30 seconds, Errorcode=2
What is going wrong? What do we have to do, change, review, in order to get the assignment working?
Comments
-
I was stuck at the same point. Try to make a clean installation of a custom MSI, allow auto assign! Custom ID has to match during installation. Also check token and group name or ID.
0 -
Did anyone find a solution to this? We are moving from GPO installation that works fine to Intune and we get the error 3760 6388 C0!! AssignmentTrigger::Set: can't open event (lastError=2), Errorcode=2 trying to assign the client. The customation works. And the AssignmentData.json never shows up. We are using the same command to install it (copy to make sure it's the same)
0 -
Same issue here. I can't figure out how to reliably automate this. TeamViewer is costing me way too much of my time.
0 -
I have the same problem with the custom host
0 -
Hi same issue here for now no responce of TV support ...
0 -
Hello everybody,
Many users have fixed this issue by creating a new Host module and trying the deployment again with the new module values (APITOKEN and CUSTOMCONFIGID).
Let me know if this also fixes it for you! 🙋♂️
Community Manager
0 -
**bleep** this will be the 3rd **bleep** time I've had to recreate these. TV can **bleep**!
0 -
Aaaannnnd it doesn't fix anything. Do you guys test anything at all before rolling out updates?
0