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 did not 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 all CustomLine objects. |
Debit/Credit cannot be empty |
You created a new CustomLine object with addNewLine(), but did not 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 all CustomLine objects. |
Account does not exist, id: {list of accounts not found} |
You used setAccountId(accountId) to set an account for a custom line. However, the account id does not exist in the current account. For convenience, the error message lists all account IDs used by the plug-in implementation that do not 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 class classification for a custom line. However, the class id does not exist in the current account. For convenience, the error message lists all class IDs used by the plug-in implementation that do not 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 classification for a custom line. However, the department id does not exist in the current account. For convenience, the error message lists all department IDs used by the plug-in implementation that do not 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 classification for a custom line. However, the location ID does not exist in the current account. For convenience, the error message lists all location IDs used by the plug-in implementation that do not 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). |