
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-30-2020 05:18 PM
I've followed the guide on how to integrate Lansweeper with SCCM as shown here:
https://www.lansweeper.com/knowledgebase/integrating-lansweeper-with-sccm/
However, when I try to scan the newly created SCCM target it comes back with the below error which means absolutely nothing to me! Has anyone else experienced this and been able to resolve it?
The operation failed: The relationship could not be changed because one or more of the foreign-key properties is non-nullable. When a change is made to a relationship, the related foreign-key property is set to a null value. If the foreign-key does not support null values, a new relationship must be defined, the foreign-key property must be assigned another non-null value, or the unrelated object must be deleted.
Cheers
Joel
https://www.lansweeper.com/knowledgebase/integrating-lansweeper-with-sccm/
However, when I try to scan the newly created SCCM target it comes back with the below error which means absolutely nothing to me! Has anyone else experienced this and been able to resolve it?
The operation failed: The relationship could not be changed because one or more of the foreign-key properties is non-nullable. When a change is made to a relationship, the related foreign-key property is set to a null value. If the foreign-key does not support null values, a new relationship must be defined, the foreign-key property must be assigned another non-null value, or the unrelated object must be deleted.
Cheers
Joel
Labels:
- Labels:
-
General Discussion
4 REPLIES 4

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-25-2020 02:09 PM
I too see this error, and I'm positive it has nothing to do with access permissions on either server or SCCM, as I'm currently trying with my own admin account, which I also use for a number of powershell scripts also heavily relying on WMI queries which is working.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-19-2020 10:38 PM
Same error - not related to access levels
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-25-2020 06:29 PM
Hi joel,
The error you are seeing can be throw when the account provided in Lansweeper does not have the correct privileges.
The account for scanning SCCM has to have local administrative permissions on the SCCM server and at minimum, the read-only analyst security role in the SCCM administrative users.
We have made some improvements to our SCCM scanning logic, so if you're not running the latest version of Lansweeper, I would recommend first updating to the latest version which could already fix your issue.
The error you are seeing can be throw when the account provided in Lansweeper does not have the correct privileges.
The account for scanning SCCM has to have local administrative permissions on the SCCM server and at minimum, the read-only analyst security role in the SCCM administrative users.
We have made some improvements to our SCCM scanning logic, so if you're not running the latest version of Lansweeper, I would recommend first updating to the latest version which could already fix your issue.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-02-2020 09:51 AM
Erik.T wrote:
Hi joel,
The error you are seeing can be throw when the account provided in Lansweeper does not have the correct privileges.
The account for scanning SCCM has to have local administrative permissions on the SCCM server and at minimum, the read-only analyst security role in the SCCM administrative users.
We have made some improvements to our SCCM scanning logic, so if you're not running the latest version of Lansweeper, I would recommend first updating to the latest version which could already fix your issue.
Thanks for the reply but this doesn't appear to be the case. My Lansweeper service account is in the domain admins group in AD as well as being a local admin on the SCCM server itself, I've also tried Read-Only and Full Administrator rights within SCCM.
Are there any logs I can look at?
Cheers
Joel
