Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

Error: Duplicate _key processing computers #39

Closed
austinkelleher opened this issue Apr 22, 2021 · 0 comments
Closed

Error: Duplicate _key processing computers #39

austinkelleher opened this issue Apr 22, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@austinkelleher
Copy link
Contributor

Step: fetch-computers

Error stack trace:

Error: Duplicate _key detected (_key=user_endpoint_61|uses|jamf_osx_configuration_profile_12)
  File "/opt/jupiterone/app/node_modules/@jupiterone/integration-sdk-runtime/dist/src/execution/jobState.js", line 22, col 19, in DuplicateKeyTracker.registerKey
    throw new integration_sdk_core_1.IntegrationDuplicateKeyError(`Duplicate _key detected (_key=${_key})`);
  File "/opt/jupiterone/app/node_modules/@jupiterone/integration-sdk-runtime/dist/src/execution/jobState.js", line 76, col 33, in null.<anonymous>
    duplicateKeyTracker.registerKey(r._key, {
  ?, in Array.forEach
  File "/opt/jupiterone/app/node_modules/@jupiterone/integration-sdk-runtime/dist/src/execution/jobState.js", line 74, col 23, in addRelationships
    relationships.forEach((r) => {
  File "/opt/jupiterone/app/node_modules/@jupiterone/integration-sdk-runtime/dist/src/execution/jobState.js", line 101, col 20, in Object.addRelationship
    return addRelationships([relationship]);
  File "/opt/jupiterone/app/node_modules/@jupiterone/graph-jamf/dist/steps/devices/index.js", line 64, col 24, in createComputerUsesProfileRelationships
    await jobState.addRelationship(integration_sdk_core_1.createDirectRelationship({
  File "async /opt/jupiterone/app/node_modules/@jupiterone/graph-jamf/dist/steps/devices/index.js", line 170, col 9, in null.<anonymous>
  File "/opt/jupiterone/app/node_modules/@jupiterone/graph-jamf/dist/steps/devices/index.js", line 40, col 9, in async iterateComputerDetails
    await iteratee(computer, computerDetail);
  File "/opt/jupiterone/app/node_modules/@jupiterone/graph-jamf/dist/steps/devices/index.js", line 163, col 5, in async Object.fetchComputers [as executionHandler]
    await iterateComputerDetails(client, logger, async (computer, computerDetail) => {
  File "/opt/jupiterone/app/node_modules/@jupiterone/integration-sdk-runtime/dist/src/execution/dependencyGraph.js", line 199, col 17, in async executeStep
    await step.executionHandler(context);
@austinkelleher austinkelleher added the bug Something isn't working label Apr 22, 2021
austinkelleher added a commit that referenced this issue Apr 27, 2021
Fix #39 - Prevent trying to create duplicate relationships between ja…
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant