and more in a single search tool across platforms. Read the announcement here. |
09/26/2022 05:11 AM
Hi Team,
We are trying to Import Entitlements through API and have an issue with running "File based Entitlement Import (SchemaEntitlementJob)" Job through API
I have this SAV file(ENTITLEMENT_VALUES.SAV)
FILE_NAME_STARTS_WITH=Entitlement_Values
SKIP_NO_OF_LINES=1
FILE_IMPORT_DELIMETER=,
#EMAILTEMPLATE="Email Template Name"
CREATE_SECURITYSYSTEM_IF_NOT_EXIST=NOACTION
CREATE_ENDPOINT_IF_NOT_EXIST_IN_SECURITYSYSTEM=NOACTION
CREATE_ENTITLEMENTTYPE_IF_NOT_EXIST_IN_ENDPOINT=CREATE
ENTITLEMENT_VALUES_NOT_IN_FILE_ACTION=NOACTION
#ENTITLEMENT_VALUES_NOT_IN_FILE_ACTION=INACTIVE
securitysystems,endpoints,entitlementtype,entitlement_value,description,customproperty1,customproperty2,customproperty3,owner,rank,status
Similarly, the data file is as follows (Entitlement_Values.csv):
The SAV and data files are loaded to the corresponding directories on the UI /Datafiles and /SAV through API-Postman
When the schema based Entitlement import job is run through API with the below configuration:
The result through API says 200 Ok with the message: Starting job
But the job history shows the below error:
Even though the job ended with error, the data file (.csv) is still in the Datafiles folder instead of being moved to the /Fail folder.
But if the same Job is run through UI > Job Control Panel, the datafile(.csv) is moved to Success folder and everything works as expected.
Is something wrong with the API body?
Thanks, Sahana
09/26/2022 07:55 AM
Can you share screenshot of files uploaded in Datafiles & sav location
trying changing
FILE_NAME_STARTS_WITH=Entitlement_Values.sav
09/27/2022 11:13 PM
Hi Rushikesh,
Thanks for replying:)
Changed the sav file name to Entitlement_Values.sav and tested it, same issue Job fails when its run through API and csv file stays in /Datafiles itself instead of moving to /success
Can you please verify and help in figuring out this issue?
09/28/2022 04:34 AM
Please share logs after running job. Or try running job from saviynt first then go with API
09/28/2022 05:04 AM