Software Entitlements: unit cost not calculating total cost throwing onChange script errorIssue Following are the steps to reproduce the issue: 1) Open any software model.2) Access the Software Entitlements tab and click the New button.2a) An error message should be present just below the Unit Cost field and the Total cost shows a value of 0.3) Update License Metric to Per User4) Enter a quantity of purchased rights (the error message below should appear underneath the field when doing this) onChange Script error: onChange script error: RangeError: Invalid currency codes : function onChange_alm_license_unit_cost_13(control, oldValue, newValue, isLoading, isTemplate) { if (isLoading) { return; } var unit_cost = 0; if (newValue !== '') { unit_cost = g_form.getDecimalValue('unit_cost'); } var purchased_rights = g_form.getDecimalValue('purchased_rights'); var value = CalculateTotalCost.getTotalcost(unit_cost, purchased_rights).toString(); value = value.replace('.', g_scratchpad.decimalSeparator); var costDisplayValue = g_form.getValue('unit_cost.currency_type') + ';' + value; var currency = g_form.getValue('unit_cost.currency'); g_form.setValue('cost', currency + ';' + value, costDisplayValue); g_form.setValue('cost.currency', currency); } 5) [Optional] Change the value of the Unit Cost; if working correctly the Total Cost should auto-calculate, probably with the formula (Unit cost * Purchased Rights)6) [Optional] Fill out the rest of the entitlement and click Save7) After the form reloads, the unit cost and purchased rights are intact, but the Total Cost is 0. Furthermore, changing the unit cost will present the same error as before. Note that Purchased rights cannot be edited once the new form is saved for the first time.CauseThe article below can resolve the problem. If the issue persists this is due to the form configuration, see details in the solution to fix the problem. https://support.servicenow.com/kb_view.do?sysparm_article=KB0823273ResolutionIn Software Entitlements, check if the form is customized to show 'Unit cost' field twice, with the same column name. This can also cause the issue.