Why am I getting the error - "You are not currently authorized:" when I try to perform a match using the DnB connector?

Question

We are facing an error while performing get matches in our Fulton Production environment.

curl --location --request POST 'https://<environment>-dnbconnector.reltio.com/b2bIntegration/dnb/getOrgMatch?plus=true&entityURI=entities/102zLq50' \
--header 'Authorization: Bearer 0c70f895-1ae7-4ba6-9df6-3ed39892456f' \
--header 'Content-Type: application/json' \
--header 'environmentUrl:  https://<environment>' \
--header 'tenantId: <tenantID>'
{"success":"Fail",
"message":"DNB0001: DnB error: You are not currently authorised to access this product. Please contact your D&B account representative DnB error code: 00041",
"error":{"errorCode":"00041","errorMessage":"You are not currently authorised to access this product. Please contact your D&B account representative"}}

Answer

curl --location --request GET 'https://<environment>-dnbconnector.reltio.com/b2bIntegration/config/tenants' \
--header 'Authorization: Bearer 07b99012-1b45-4d30-a864-0c491f62606a' \
--header 'Content-Type: application/json' \
--header 'environmentUrl: https://<envirnoment>.reltio.com' \
--header 'tenantId: <MDM Tenant>'
Response Body
{
"success": "OK",
"tenant": {
"environmentUrl": "https://<envirnoment>.reltio.com",
"tenantId": "<MDM Tenant>"
},
"dataTenant": {
"environmentUrl": "https://<envirnoment>.reltio.com",
"tenantId": "<data tenant>
},
"profile": "<profile>"
}
  • This problem can also be caused by an incorrect password. Username and password are provided by DnB.  It can be checked using the following API.
curl --location --request GET 'https://<DnB-environment>-dnbconnector.reltio.com/b2bIntegration/config/profiles/<profile>/mappings/config'\
--header 'Authorization: Bearer d3c9XXXXXXX959ef' \
--header 'Content-Type: application/json' \
--header 'environmentUrl: <environment>' \
--header 'tenantId: <tenantID>' \
  • To correct the password and username, use the following API.
curl --location --request POST 'https://<environment>-dnbconnector.reltio.com/b2bIntegration/config/profiles/<profile>/mappings/config'\
--header 'Authorization: Bearer d3c9XXXXXXX959ef' \
--header 'Content-Type: application/json' \
--header 'environmentUrl: <environment> \
--header 'tenantId: <tenantId>' \
--data-raw '{
"dnb": {
"url": "https://direct.dnb.com",
"authUrl": "https://direct.dnb.com",
"username": "<username>",
"password": "<password>"
}
}'
  • After the password and username have been verified, you should make sure that "GET MATCH" and "GET COMPANY DETAILS" will work as expected.

"GET MATCH" Verification

  • Execute the following "GET MATCH" API.
curl --location --request POST 'https://<environment>-dnbconnector.reltio.com/b2bIntegration/dnb/getOrgMatch?plus=true&entityURI=entities/<entityId>' \
--header 'Authorization: Bearer 07b99012-1b45-4d30-a864-0c491f62606a' \
--header 'Content-Type: application/json' \
--header 'environmentUrl:  https://<environment>.reltio.com' \
--header 'tenantId: <tenantID>'

Note: Once the DUNS number has been applied during the "GET MATCH" process, you can not go into that MATCH button again. The Get Match is only responsible to get the DUNS number. Once a DUNS number is there, then you can return repeatedly to Enrichment.

  • If you receive the following error during the "GET MATCH" process, you do not have the proper address defined in the profile (Probably the DnB address).
{
"success": "Fail",
"message": "REQ0009: Reltio entity doesn't contain appropriate address"
}
  • If you can not access the "GET COMPANY" button in the profile after performing a "GET MATCH", check the output from "GET MATCH".  If you have more than one entity that has been matched,

Example

{"success":"OK","message":"
Match(es)","entities":
["entities/17VnmHrU",
"entities/17VnmM7k"]}

NOTE: When you do a GET Match API call and if the result has multiple matches,  then the DUNS number is not added.  With this profile of 109bsPib, there are two matches.

  • entities/17VnmHrU
  • entities/17VnmM7k

The Potential Match (PM) is added to the profile to review and determine which DUNS number is appropriate.  Once you decide which number is correct, then, you will need to merge the DnB record. Once that is completed, you should be able to see the enrichment button enabled.

"GET COMPANY" Verification

 Execute API or select the "GET COMPANY" button in the UI.

curl --location --request POST 'https://<environment>-dnbconnector.reltio.com/b2bIntegration/dnb/getDetailedProfile?plus=true&entityURI=entities/<entity>' \
--header 'Authorization: Bearer 07b99012-1b45-4d30-a864-0c491f62606a' \
--header 'Content-Type: application/json' \
--header 'environmentUrl:  https://<envirnoment>.reltio.com' \
--header 'tenantId: <tenantId>'

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.