JupiterOne-Archives / integrations-2021-07-16

JupiterOne integration development documentation and issue tracking
0 stars 2 forks source link

Intune host agent relationship duplicate `_key` #7

Closed austinkelleher closed 3 years ago

austinkelleher commented 3 years ago

Step: "Device Configurations and Related Findings"

Error:

Error: Provider API failed at /deviceManagement/deviceConfigurations: undefined DUPLICATE_KEY_DETECTED
at DeviceManagementIntuneClient.handleApiError (/opt/jupiterone/app/node_modules/@jupiterone/graph-microsoft-365/dist/ms-graph/client.js:173:19)
at DeviceManagementIntuneClient.iterateResources (/opt/jupiterone/app/node_modules/@jupiterone/graph-microsoft-365/dist/ms-graph/client.js:136:26)
Caused by: Error: Provider API failed at /deviceManagement/deviceConfigurations/1df1dcda-4ebd-4adb-8ce2-ebcbb2ba7165/deviceStatuses: undefined DUPLICATE_KEY_DETECTED
at DeviceManagementIntuneClient.handleApiError (/opt/jupiterone/app/node_modules/@jupiterone/graph-microsoft-365/dist/ms-graph/client.js:173:19)
at DeviceManagementIntuneClient.iterateResources (/opt/jupiterone/app/node_modules/@jupiterone/graph-microsoft-365/dist/ms-graph/client.js:136:26)
Caused by: Error: Duplicate _key detected (_key=intune-host-agent:abc123|assigned|123abc)
at DuplicateKeyTracker.registerKey (/opt/jupiterone/app/node_modules/@jupiterone/integration-sdk-runtime/dist/src/execution/jobState.js:22:19)
at /opt/jupiterone/app/node_modules/@jupiterone/integration-sdk-runtime/dist/src/execution/jobState.js:76:33
at Array.forEach (<anonymous>)
at addRelationships (/opt/jupiterone/app/node_modules/@jupiterone/integration-sdk-runtime/dist/src/execution/jobState.js:74:23)
at Object.addRelationship (/opt/jupiterone/app/node_modules/@jupiterone/integration-sdk-runtime/dist/src/execution/jobState.js:101:20)
at /opt/jupiterone/app/node_modules/@jupiterone/graph-microsoft-365/dist/steps/intune/steps/deviceConfigurationsAndFindings/index.js:28:32
at async DeviceManagementIntuneClient.callApi (/opt/jupiterone/app/node_modules/@jupiterone/graph-microsoft-365/dist/ms-graph/client.js:150:17)
at async DeviceManagementIntuneClient.iterateResources (/opt/jupiterone/app/node_modules/@jupiterone/graph-microsoft-365/dist/ms-graph/client.js:119:28)
at async /opt/jupiterone/app/node_modules/@jupiterone/graph-microsoft-365/dist/steps/intune/steps/deviceConfigurationsAndFindings/index.js:14:9
at async DeviceManagementIntuneClient.callApi (/opt/jupiterone/app/node_modules/@jupiterone/graph-microsoft-365/dist/ms-graph/client.js:150:17)