General Output Validation Error Messages
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 |
---|---|---|
Statistical account {id} was used in financial journal entry. Statistical accounts are not allowed in financial journal entries |
The transaction is a Journal and you created a new CustomLine object with addNewLine(). However, you used a statistical account id for setAccountId(accountId). |
Make sure the id for the account is not for a statistical account. Statistical accounts appear on the Chart of Accounts page at Setup > Accounting > Chart of Accounts with a type of Statistical. |
Transaction was not in balance. Total ={amount} |
A Custom GL Lines plug-in implementation creates custom lines for a transaction, but the total number of debits and credits for the custom lines in the transaction do not balance. |
Make sure that the plug-in implementation logic creates custom lines with an equal amount of credits and debits. |
Transaction and foreign currency account use different currencies. Account internal ID: {id} |
You used setCreditAmount(credit) or setDebitAmount(debit) to add an amount to a custom line. However, the currency type for the account does not match the base currency for the subsidiary entity or match the currency for the transaction. |
Choose an account with a currency that matches the base currency for the subsidiary entity or the currency for the transaction. |
{classification types} are required on all lines of the journal entry |
You did not include a required classification type on all lines of the journal entry. |
Verify whether the Make Departments Mandatory, Make Classes Mandatory, and Make Locations Mandatory boxes on the Accounting Preferences > General page are checked. If the boxes are checked, then you must provide the classification types on all lines of the journal entry. |
The role set up to run the plugin does not have permissions to set values on the custom segment {script ID of custom segment} |
The role of the user that is running the plug-in does not have the permissions required to set values on the custom segment. |
Provide the user with the permissions needed to set values on the custom segment. For more information, see Granting a Role Permission to Manage Custom Segment Values. |
Setting entity of type {entity type} on the same GL line with account of type {account type} is not allowed |
You specified an account type and entity type combination that is not allowed. For example, you specified a vendor with an accounts payable account, or a customer with an accounts receivable account. |
Ensure that the account type specified in setAccountId(accountId) is appropriate for the entity type |
Setting entity on GL line with account of type {account type} is not allowed for book-specific transactions |
You specified an entity with an accounts receivable or accounts payable account type that is not allowed with a book-specific line. |
Ensure that the account type specified in setAccountId(accountId) allows book-specific transactions. |
You have entered entity IDs belonging to these entity types: {entity type}. These entity types are not supported on custom GL lines. |
You specified an entity ID whose entity types are not supported on custom GL lines. |
Enter an entity ID in setEntityId(entityId) that belongs to supported entity types. |
Entity {entity id} and transaction use different currencies |
The transaction and entity use different currencies. |
Specify an entity in setEntityId(entityId) that uses the same currency as the transaction. For more information, see Multiple Currencies Examples. |
Setting inactive entity {entity id} on custom GL lines is not allowed |
You specified an inactive entity ID on the custom GL line. |
Specify a valid entity in setEntityId(entityId). |