Problem: ASM Connector - No Synchronisation to ASM

Problem ASM Connector - No Synchronisation to ASM

The connector no longer synchronizes the data to ASM. In the appcenter.log you can find such entries:

 17350 actions.configure                20-11-13 11:02:46 [ WARNING]:     course_name=school_class.name.split("-", 1)[1],
 17350 actions.configure                20-11-13 11:02:46 [ WARNING]: IndexError: list index out of range

Solution

If after a split

course_name=school_class.name.split("-", 1)[1]

an Index out of Range Error follows

IndexError: list index out of range

there is at least one element that does not contain this split separator. In this example we have to search for a school class without hyphen;

This class was created manually for testing purposes, and caused the problem. A correct classname always contains the school OU in the beginning and a hyphen between OU and given class name.

1 Like
Mastodon