Announcing the Saviynt Knowledge Exchange unifying the Saviynt forums, documentation, training,
and more in a single search tool across platforms. Read the announcement here.

Getting the Cannot get property 'entThresholdValue' on null object error

TheSaviyntBoy
Regular Contributor
Regular Contributor

Hi,

we are getting the Cannot get property 'entThresholdValue' on null object error while performing the access import.

Here is the ImportAccountEntJSON:

{
"accountParams": {
"connection": "acctAuth",
"processingType": "SequentialAndIterative",
"call": {
"call1": {
"callOrder": 0,
"stageNumber": 0,
"http": {
"url": "https://hostname.demo.coconutcalendar.com/api/v2/users?limit=1000&page=1",
"httpHeaders": {
"Authorization": "${access_token}",
"Content-Type": "application/json",
"Accept": "application/json"
},
"httpContentType": "application/json",
"httpMethod": "GET"
},
"listField": "data",
"keyField": "accountID",
"colsToPropsMap": {
"accountID": "id~#~char",
"name": "attributes.username~#~char",
"status": "attributes.active~#~char",
"customproperty4": "attributes.active~#~char"
},
"pagination": {
"nextUrl": {
"nextUrlPath": "${(response?.completeResponseMap?.get('@odata.nextLink')==null)? null : response?.completeResponseMap?.get('@odata.nextLink')}"
}
}
}
}
},
"entitlementParams": {
"connection": "acctAuth",
"processingType": "SequentialAndIterative",
"doNotChangeIfFailed": true,
"successResponses": {
"statusCode": [
200,
201,
202,
203,
204,
205
]
},
"unsuccessResponses": {
"statusCode": [
500,
503,
403,
404,
409
]
},
"entTypes": {
"Locations": {
"entTypeOrder": 0,
"call": {
"call1": {
"callOrder": 0,
"stageNumber": 0,
"http": {
"url": "https://hostname.demo.coconutcalendar.com/api/v2/locations",
"httpHeaders": {
"Authorization": "${access_token}",
"Content-Type": "application/json"
},
"httpContentType": "application/json",
"httpMethod": "GET"
},
"listField": "data",
"keyField": "entitlementID",
"colsToPropsMap": {
"entitlementID": "id~#~char",
"entitlement_value": "attributes.name~#~char",
"acctEntMappingInfoColumnFromEnt": "STORE#ACC#ENT#MAPPINGINFO~#~char"
}
}
}
}
},
"acctEntMappings": {
"listPath": "Locations",
"idPath": ""
}
},
"acctEntParams": {
"processingType": "entToAcctMapping"
}
}

Here is the STATUS_THRESHOLD_CONFIG:

{
"accountThresholdValue":2000,
"inactivateAccountsNotInFile":false,
"correlateInactiveAccounts":true,
"statusColumn":"customproperty4",
"activeStatus":[
"true"
],
"deleteLinks":false,
"inactivateEntsNotInFeed":false,
"entThresholdValue":{
"entType":{
"Locations":{
"ent":10000
}
}
}
}

Here is the postman response for users:

{
"data": {
"type": "users",
"id": "74234",
"attributes": {
"active": true,
"admin_show_message": 0,
"backend_only": false,
"bcc": null,
"cell_phone": "",
"created": "2021-12-02T22:59:04+00:00",
"daily_limit": null,
"email": "email",
"external_id": "adminUser",
"first_name": "Admin Assistant",
"job_title": null,
"lang": "en",
"last_name": "Admin Assistant",
"meeting_methods": [
1,
2,
3
],
"name": "Admin Assistant",
"role_id": 32,
"show_help": false,
"show_message": true,
"sort_order": 1,
"supported_locale": "en",
"timezone": null,
"updated": "2023-12-05T20:05:41+00:00",
"username": "username",
"video_integration_provider": null,
"visibility": 1,
"group_id": null
},
"links": {
"self": "https://hostname.demo.coconutcalendar.com/api/v2/users/74523"
},
"relationships": {
"assignments": {
"links": {
"self": "https://hostname.demo.coconutcalendar.com/api/v2/users/74523/relationships/assignments",
"related": "https://hostname.demo.coconutcalendar.com/api/v2/users/74523/assignments"
}
},
"locations": {
"links": {
"self": "https://hostname.demo.coconutcalendar.com/api/v2/users/74523/relationships/locations",
"related": "https://hostname.demo.coconutcalendar.com/api/v2/users/74523/locations"
}
},
"organizations": {
"links": {
"self": "https://hostname.demo.coconutcalendar.com/api/v2/users/74523/relationships/organizations",
"related": "https://hostname.demo.coconutcalendar.com/api/v2/users/74523/organizations"
}
}
}
}
}


Here is the postman response of entType location:

{
"data": {
"type": "locations",
"id": "57012",
"attributes": {
"external_id": "Br113",
"name": "name",
"address": "address",
"city": "Ponderay",
"prov_state": "ST",
"country": "CN",
"postal_zip": "83342",
"timezone": "TZ"
"active": true,
"visibility": 0,
"sort_order": 2,
"created": "2022-02-14T11:49:04+00:00",
"updated": "2024-01-12T21:19:43+00:00"
},
"links": {
"self": "https://hostname.demo.coconutcalendar.com/api/v2/locations/57012"
}
}
}

What can be causing the issue?

Thank you.

5 REPLIES 5

rushikeshvartak
All-Star
All-Star

Could you kindly provide a detailed snapshot of the information extracted from the logs, encompassing errors and other pertinent functionality details encountered during the execution of this process? Your assistance in furnishing this information would greatly aid in the analysis and resolution of any issues .


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

Hi,

The accounts are getting imported correctly, the error I am getting is for Access import. But even the entitlements are imported on the endpoint. I am just not sure what can be causing the issue. Here are the logs from the job.

TheSaviyntBoy_0-1715092950455.png

 

Does CP31 of account is populated ?


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

No, its not getting populated.

What about ent mapping columns for entitlement.

check in table entitlement_values


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.