Notifications

74 views

Description

Changing some of the fields to mandatory on Software Entitlement form can cause issues while importing the entitlement even though the mandatory fields are present in the import document.

Steps to Reproduce

> Any instance which is in Orlando version
> Change some of the fields that are not mandatory OOTB to mandatory(fields like start_date,end_date,publisher_part_number,unit cost)
> Import an entitlement with above mandatory fields present in the excel sheet.

Error is thrown:
Multiple reasons for error: Publisher Part Number not found; The custom column field 'end date' is mandatory but was not present; The custom column field 'publisher part number' is mandatory but was not present; The custom column field 'start date' is mandatory but was not present; The custom column field 'unit cost' is mandatory but was not present


Workaround

The issue can be fixed by adding the mandatory fields to line 67 of the script include SAMPEntitlementUtil

https://<instance-name>.service-now.com/nav_to.do?uri=sys_script_include.do?sys_id=31630b8587420300562e4127f5cb0b01

OOTB:

MANDATORY_NON_CUSTOM_FIELDS: ['model', 'model_category', 'quantity', 'license_metric', 'purchased_rights', 'software_model', 'product_type'],

Add the other fields like below:

MANDATORY_NON_CUSTOM_FIELDS: ['model', 'model_category', 'quantity', 'license_metric', 'purchased_rights', 'software_model', 'product_type','start_date','end_date','unit_cost','publisher_part_number'],

Note: SAMPEntitlementUtil is a protected script so customers would not be able to modify this, if required customer support would be able to assist the customer further if they choose to use the workaround.


Related Problem: PRB1411112

Seen In

SR - IRM - GRC Profiles - Madrid 2019 Q2
SR - IRM - GRC Workbench - New York 2019 Q3
SR - IRM - Policy and Compliance - Madrid 2019 Q2
SR - IRM - Risk Management - New York 2019 Q3
SR - IRM - SIG Assessment Legacy - Madrid 2019 Q1
SR - IRM - SIG Questionnaire - New York 2019 Q3
SR - IRM - Vendor Risk Management - Madrid 2019 Q1
SR - ITOM - CMDB CI Class Models - 201908
SR - ITOM - Discovery and Service Mapping - 201908
SR - ITOM - Discovery and Service Mapping - v1.0.35
SR - ITOM - Fundamentals Istanbul Jakarta Kingston r1 - v5.99.6
SR - Security - Integration Framework - Madrid 2019 Q2
SR - Security - Support Common - Madrid 2019 Q2
SR - Security - Support Orchestration - Madrid 2019 Q2
SR - SIR - Security Incident Response - Madrid 2019 Q2
SR - SIR - Store SecOps Setup Assistant - Madrid 2019 Q2
SR - SIR - Store Threat Core - Madrid 2019 Q2
SR - SIR - Store Trusted Security Circles Client - New York 2019 Q3
SR - VR - Vulnerability Response - New York 2019 Q3

Intended Fix Version

Quebec

Safe Harbor Statement

This "Intended Fix Version" information is meant to outline ServiceNow's general product direction and should not be relied upon in making a purchasing decision. The information provided here is for information purposes only and may not be incorporated into any contract. It is not a commitment, promise, or legal obligation to deliver any material, code, or functionality. The development, release, and timing of any features or functionality described for our products remains at ServiceNow's sole discretion.

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2020-09-24 11:53:53
Published:2020-09-24