Assets scan site import issue

Assets scan site import issue

There seems to be an issue with site not being set after assets scan, both using the script and the agent. The Site value is properly set in the script and manually added to the agent's registry. The xml file being generated does contain the proper site information, so it is probably an xml import based issue. I am aataching server logs, script and inercepted xml file. Hope I can finally get some help with it as I've been battling with this issue since march. Am I the only one?

Thank you in advance,
Mikolaj
                New to ADManager Plus?

                  New to ADSelfService Plus?