Click HERE to see how Saviynt Intelligence is transforming the industry. |
10/30/2024 09:58 AM
Hi while iam importing users the user is not getting assigned to organization here is modifyuserdatajson. I have a organization with name ABC and iam hardcoding company name as 'ABC'
{
"ADDITIONALTABLES": {
"USERS": "SELECT USERKEY,companyname,customer FROM USERS",
"CUSTOMER": "SELECT CUSTOMERKEY, CUSTOMERNAME FROM customer"
},
"COMPUTEDCOLUMNS": [
"companyname",
"customer"
],
"PREPROCESSQUERIES": [
"UPDATE NEWUSERDATA SET companyname = 'ABC'",
"UPDATE NEWUSERDATA SET customer = 'ABC'"
]
}
10/30/2024 10:53 AM
Pass customerkey
10/30/2024 11:02 AM
its not working
{
"ADDITIONALTABLES": {
"USERS": "SELECT USERKEY,companyname,customer FROM USERS",
"CUSTOMER": "SELECT CUSTOMERKEY, CUSTOMERNAME FROM customer"
},
"COMPUTEDCOLUMNS": [
"companyname",
"customerkey"
],
"PREPROCESSQUERIES": [
"UPDATE NEWUSERDATA SET companyname = 'ABC'",
"UPDATE NEWUSERDATA SET customerkey = 6"
]
}
10/30/2024 11:04 AM
Please share logs
10/30/2024 11:10 AM - last edited on 10/30/2024 01:41 PM by Dave
attached logs
[This post has been edited by a Moderator to remove the logs as they contained PII. Please mask all sensitive information before sharing logs.]
10/30/2024 11:12 AM
Share request id or line start number
10/30/2024 11:16 AM
one of the log has request based on username
10/30/2024 12:20 PM
⚠️ Reminder: Mask possible PII such as employee names, email addresses, phone numbers, IP addresses, account details, company-specific URLs, and client names before sharing.⚠️
10/30/2024 11:15 AM
what it is mean by 'Share request id or line start number?
10/30/2024 12:14 PM
Which request needs to be looked into logs? or share log line from which logs needs to be debugged
10/30/2024 12:19 PM
Search for the line that mentions "Customer not found'
10/30/2024 12:21 PM
It seems other thread logs are provided here
⚠️ Reminder: Mask possible PII such as employee names, email addresses, phone numbers, IP addresses, account details, company-specific URLs, and client names before sharing.⚠️
10/30/2024 12:31 PM
Hi i provided the asked logs one log file is the full log history and other one is with specified username l. Here we are importing member of a group and it has only 1 record
10/30/2024 12:44 PM
Please share screenshot where you are able to find customer not found keyword both files i could not locate. also remove emails. urls which are specific to client
10/30/2024 12:48 PM - last edited on 10/30/2024 03:06 PM by Dave
here is the attached log again
2024-10-30T17:45:00.069+00:00 | ecm-worker | services.ImportSAvDataUserService | quartzScheduler_Worker-8-nsfmk | DEBUG | Customer Not found for entry : |
[This post has been edited by a Moderator to remove sensitive information.]
10/30/2024 03:03 PM
"UPDATE NEWUSERDATA NU JOIN CURRENTCUSTOMER C ON NU.Orgunitid = C.CUSTOMERNAME SET NU.CUSTOMER= C.CUSTOMERNAME"
10/30/2024 03:12 PM
I tried this but how will this add the customer 'ABC'
10/30/2024 03:13 PM - edited 10/30/2024 03:14 PM
Add key of it
"UPDATE NEWUSERDATA SET customer = 6
10/30/2024 03:15 PM
I already tried passing key, Can you give me complete structure
10/30/2024 03:17 PM
{
"ADDITIONALTABLES": {
"USERS": "SELECT USERKEY,companyname,customer FROM USERS",
"CUSTOMER": "SELECT CUSTOMERKEY, CUSTOMERNAME FROM customer"
},
"COMPUTEDCOLUMNS": [
"companyname",
"customer"
],
"PREPROCESSQUERIES": [
"UPDATE NEWUSERDATA SET companyname = 'ABC'",
"UPDATE NEWUSERDATA SET customer = 6"
]
}
10/31/2024 07:27 AM
still not working, can you test in your environment
10/31/2024 07:55 AM
Please share logs. Its working for me
10/31/2024 08:10 AM - edited 10/31/2024 08:11 AM
Use below code
{
"ADDITIONALTABLES": {
"USERS": "SELECT USERKEY,customer FROM USERS",
"CUSTOMER": "SELECT CUSTOMERKEY, CUSTOMERNAME FROM customer"
},
"COMPUTEDCOLUMNS": [
"customer"
],
"PREPROCESSQUERIES": [
"UPDATE NEWUSERDATA SET customer = 'SSM_Vendor'"
]
}
Logger Keyword - ImportSAvDataUserService
10/31/2024 08:03 AM
Will this customer organization is going to update for existing user or newly onboarding user
its the same error in logs
024-10-31T09:28:36-05:00-ecm-worker-services.ImportSAvDataUserService-quartzScheduler_Worker-7-nsfmk-DEBUG-Customer Not found for entry : [, , , , null, , , , Guest, null, [], , null, , 2024-10-23T17:01:48Z, ABC, 6]
10/31/2024 08:04 AM
Share customer with 6 key is avaiable
10/31/2024 08:07 AM
6 key is available