{"record":{"id":"7b38c5bf68b68e65","repo":"owasp-amass/amass","slug":"failed-to-obtain-the-organization-associated-with-7b38c5","errorCode":null,"errorMessage":"failed to obtain the Organization associated with jurisdiction %s and registration ID %s","messagePattern":"failed to obtain the Organization associated with jurisdiction (.+?) and registration ID (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"info","filePath":"engine/plugins/support/org/claims.go","lineNumber":281,"sourceCode":"\t\t\t\t\t\tcontinue\n\t\t\t\t\t}\n\t\t\t\t\tjv := jc.PropertyValue\n\n\t\t\t\t\tif strings.EqualFold(jurisdiction, jv) {\n\t\t\t\t\t\treturn orgent, nil\n\t\t\t\t\t} else if country != \"\" && strings.EqualFold(country, jv) {\n\t\t\t\t\t\treturn orgent, nil\n\t\t\t\t\t} else if parts := strings.Split(jv, \"-\"); len(parts) == 2 && strings.EqualFold(jurisdiction, parts[0]) {\n\t\t\t\t\t\treturn orgent, nil\n\t\t\t\t\t} else if len(parts) == 2 && strings.EqualFold(country, parts[0]) {\n\t\t\t\t\t\treturn orgent, nil\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn nil, fmt.Errorf(\"failed to obtain the Organization associated with jurisdiction %s and registration ID %s\", jurisdiction, regID)\n}\n","sourceCodeStart":263,"sourceCodeEnd":283,"githubUrl":"https://github.com/owasp-amass/amass/blob/79299dce87b0085db0f2f4ef3e9c52cccb49f514/engine/plugins/support/org/claims.go#L263-L283","documentation":"FindOrgByJurisdictionAndRegistrationIDClaim found the registration_id Identifier but could not resolve an Organization whose jurisdiction claim matches the input. After iterating incoming 'id' edges, verifying each edge endpoint is an Organization, and comparing its jurisdiction claims (split into country/region parts), no candidate matched, so this error is returned.","triggerScenarios":"The registration_id Identifier exists with incoming edges, but each edge's target Organization either fails verification, lacks a jurisdiction claim, or its jurisdiction/country doesn't match the requested jurisdiction string (e.g., input 'US-DE' vs stored 'US').","commonSituations":"Registration ID recorded under a different jurisdiction than queried; jurisdiction claims never created for the resolved org; region-qualified jurisdictions ('US-DE') vs plain country codes ('US') mismatching; duplicated registration IDs across jurisdictions.","solutions":["Confirm the jurisdiction string format (alpha-2 country and optional region) matches how claims were stored; align with countries.ByName normalization used by CreateOrgAsset.","Create the missing jurisdiction claim on the resolved Organization via CreateOrgJurisdictionClaim.","Inspect the graph to ensure the identifier's incoming edges point to the correct Organization asset.","Accept the miss: CreateOrgAsset falls back to norm-name+jurisdiction lookup or creates a new asset."],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":"if _, err := org.FindOrgByJurisdictionAndRegistrationIDClaim(sess, jurisdiction, regID); err != nil {\n    // create the missing jurisdiction claim on the resolved org or create a new asset\n    org.CreateOrgJurisdictionClaim(sess, orgent, jurisdiction)\n}","preventionTips":["Use consistent jurisdiction formats (alpha-2, optional region) everywhere.","Create jurisdiction claims when registering the ID so lookups match.","Verify identifier edges point to the correct Organization after dedup.","Handle multi-jurisdiction registration IDs by scoping claims per jurisdiction."],"tags":["database","graph-lookup","jurisdiction","not-found","amass"],"backgroundTag":"entity-not-found","analyzedSha":"79299dce87b0085db0f2f4ef3e9c52cccb49f514","analyzedAt":"2026-09-06T08:22:48.198Z","contentChangedAt":"2026-09-06T08:22:48.198Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}