Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon

SFMC: Token Expired while Creating Account/Importing Account with Rest Connector

sumalatham
New Contributor III
New Contributor III

Hi,

I am working on Salesforce Marketing Cloud integration

REST call is used to get the token - ConnectionJSON
SOAP call will be used for CreateAccountJSON.

In postman accesstoken is generating and able to create the account through SOAP call.

But in Saviynt it is not working, failing with
Token Expired
PFA for logs.

Note: If I use the token value directly in Saviynt then it is work fine

Can you please help with this! thanks in advance

Please let me know if you need any additional information.

 

Thanks

Sumalatha M

6 REPLIES 6

NM
Honored Contributor III
Honored Contributor III

Hi @sumalatham , can you share your connection json?


If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'

sumalatham
New Contributor III
New Contributor III

Hello @NM 

Please can you find the attached connection json.

 

Thanks

Sumalatha 

 

NM
Honored Contributor III
Honored Contributor III

Hi @sumalatham 

Add this in your connection json

"retryFailureStatusCode": [

        401,

        500

      ],


If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'

sumalatham
New Contributor III
New Contributor III

@NM 

After adding retryFailureStatusCode in connection json, still we are getting login failed error in logs like below.

Please can you help me on this?

sumalatham_0-1722500731213.png

Thanks

Sumalatha

 

Please share postman screenshot and curl command [Refer https://codingnconcepts.com/postman/how-to-generate-curl-command-from-postman/ ]



⚠️‼️‼️Do not upload any attachments that contain sensitive information, such as IP Addresses, URLs, Company/Employee Names, Email Addresses, etc.‼️‼️⚠️


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

Hello Team 

 

This is working connection json:

{
"authentications": {
"userAuth": {
"authType": "oauth2",
"url": "https://xxxxx/v2/token",
"httpMethod": "POST",
"httpParams": {
"grant_type": "client_credentials",
"client_id": "xxxx",
"client_secret": "xxxx"
},
"httpHeaders": {
"contentType": "application/json"
},
"httpContentType": "application/json",
"expiryError": "ExpiredAuthenticationToken",
"authError": [
"InvalidAuthenticationToken",
"ExpiredAuthenticationToken"
],
"timeOutError": "Read timed out",
"errorPath": "error.code",
"maxRefreshTryCount": 5,
"retryFailureStatusCode": [
401,
500
],
"tokenResponsePath": "access_token",
"tokenType": "",
"accessToken": "xxx"
}
}
}