Validation Error Messages for Empty Values
All of the following error messages are preceded by: Custom GL Lines Plugin error due to a failed validation of script output:
Error Message |
Cause |
Preferred Action |
---|---|---|
Account cannot be empty |
You created a new CustomLine object with addNewLine(), but didn't set an account for the line with setAccountId(accountId). All custom lines must debit or credit an account. |
Make sure you set an account for every CustomLine object. |
Debit/Credit cannot be empty |
You created a new CustomLine object with addNewLine(), but didn't set an amount for the line with setCreditAmount(credit) or setDebitAmount(debit). All custom lines must include a debit or credit amount. |
Make sure you set an amount for every CustomLine object. |
Account does not exist, id: {list of accounts not found} |
You used setAccountId(accountId) to set an account for a custom line, but the account ID doesn't exist in the current account. The error message lists all account IDs used by the plug-in implementation that don't exist. |
Make sure the account ID used for setAccount(accountID) exists. You can view valid account IDs in the Internal ID column on the Chart of Accounts page at Setup > Accounting > Chart of Accounts. |
Class does not exist, id: {list of classes not found} |
You used setClassId(classId) to set a classification for a custom line, but the class ID doesn't exist in the current account. The error message lists all class IDs used by the plug-in implementation that don't exist. |
Make sure the class ID used for setClassID(classID) exists. You can view valid class IDs in the Internal ID column on the Classes page at Setup > Company > Classes. |
Department does not exist, id: {list of departments not found} |
You used setDepartmentId(departmentId) to set a department for a custom line, but the department ID doesn't exist in the current account. The error message lists all department IDs used by the plug-in implementation that don't exist. |
Make sure the department id used for setDepartmentID(departmentID) exists. You can view valid department IDs in the Internal ID column on the Departments page at Setup > Company > Departments. |
Location does not exist, id: {list of locations not found} |
You used setLocationId(locationId) to set a location for a custom line, but the location ID doesn't exist in the current account. The error message lists all location IDs used by the plug-in implementation that don't exist. |
Make sure the location ID used for setLocationID(locationID) exists. You can view valid location IDs in the Internal ID column on the Locations page at Setup > Company > Locations. |
Entity {entity id} does not exist |
You specified an invalid entity ID on the custom GL line. |
Specify a valid entity in setEntityId(entityId). |