Invalid Operation Error Messages
All of the following error messages are preceded by: Custom GL Lines Plugin error due to an invalid script operation.
Error Message |
Cause |
Preferred Action |
---|---|---|
Cannot Parse Value: {amount} |
You used setDebitAmount(debit) or setCreditAmount(credit) to add an amount to a custom line. However, the amount is NULL or not a number. |
Verify that the parameter value for the method is a non-null number in the plug-in implementation script file or utility file. |
Cannot use {amount} as input to setDebitAmount(debit). Amount to debit must be positive |
You used setDebitAmount(debit) to add a debit amount to a custom line. However, the amount is negative. |
Use a positive value for setDebitAmount(debit). |
Line with index {index} does not exist. Total line count is: {lineCount} |
You used getLine(index) to get a standard or custom line. However, the value of the index parameter is equal or greater than the total number of lines in the StandardLine or CustomLine object. |
Make sure the index parameter for getLine(index) references a valid element. You can use getCount() to get the total number of lines. |
Cannot use {amount} as input to setCreditAmount(credit). Amount to credit must be positive |
You used setCreditAmount(credit) to add a credit amount to a custom line. However, the amount is negative. |
Use a positive value for setCreditAmount(credit). |