Skip to main content
Skip table of contents

Error: "Valid bill number could not be generated" when posting a bill

This support note applies to:

  • AE Practice Manager (NZ)
  • AE Practice Manager (AU)
Article ID: 26237

In MYOB Accountants Enterprise Practice Manager (AE PM) you may receive the error "Valid bill number could not be generated" or "Unable to generate a valid invoice number" when posting a bill.

To resolve this error message you need to determine the following:

  • Whether you are using Bill Sequencing.
  • If Bill Sequencing is used, check whether the clients you are billing have the correct setup for Bill Sequencing eg., where you have Bill Sequencing set to Company and you have 2 companies in your database, if Company B is issuing the bill, the client should have Company B under the Responsibility tab in order for the invoice to post.
  • If Bill Sequencing isn't used, check the configuration to see if Unique Bill Numbers has been flagged in error as this may trigger the error when the software tried to reallocate the same number twice.

For more information on Bill Sequencing, see Help Topic Bill Sequencing

AE Bill Sequencing can be used where you have multiple billing companies and want separate invoice numbers issued per company. It isn't necessary to set up Bill Sequencing where you have only 1 company set up in your database. You can use another method for your invoice numbers. See KB 33630: Changing my bill numbers to a new range > For AO sites and AE sites that don't use Bill sequencing

To check the Bill Sequencing Type
  1. Select Maintenance > User Defined > Configuration. The Maintenance - Configuration screen appears.
  2. Check the Key Name BillSequenceType has a Key Value field, for example Company.
  3. Check the Key Name Subscriber has a Key Value of 1 

    When you make a change to the configuration for Bill Sequencing such as adding a Keyname and/or KeyValue if either are missing, you must close and re-open AE for the changes to take affect.

To check Bill Sequencing

The following instructions will use the example of the Bill Sequence Type of Company.

  1. Select Maintenance > Miscellaneous > Bill Sequencing. The Bill Sequencing screen appears.

  2. Check that each Company has been selected and a valid Range Start and Range End has been entered for each and click OK.

To check the client has a valid company for bill sequencing
  1. In AE PM, open the client and go to the Responsibility tab. The Responsibility tab window appears.
  2. Place the cursor in the Company field and click the ellipsis [...] button. The Find Companies screen appears.
  3. Click Search. The list of all companies displays.
  4. Select the company that corresponds to a valid company that appeared in the Bill Sequencing screen and also is the Company that has issued the bill and click OK. The Responsibility tab appears with the company name displayed.

  5. Click OK. You should now be able to post the bill.

To check the configuration when Bill Sequencing isn't used
  1. Select Maintenance > User Defined > Configuration. The Maintenance - Configuration screen appears.
  2. Check the KeyName UniqueBillNo and it's KeyValue. When the KeyValue is set to 1, this means that you can't have duplicate invoice/bill numbers.

 

There are 2 options at this point

  • Change UniqueBillNo to allow duplicate invoice numbers or
  • Change your invoice numbering sequence; leaving the UniqueBillNo value as is
To change UniqueBillNo to allow duplicate invoice numbers
  1. Select Maintenance > User Defined > Configuration. The Maintenance - Configuration screen appears.
  2. Change the KeyValue for the KeyName UniqueBillNo from 1 to 0 and click OK.
  3. Close and re-open AE and then post your bill.
To change your invoice numbering sequence
  1. Select Billing > Billing History > All and click Search. A full list of your posted and converted invoice numbers display.
  2. Click the Inv No column header to sort your invoice numbers into sequential order and review to find out the highest number used and make a note of this number.

    To make it easier to view the invoice numbers, from the Tasks bar, you could either print the list or export the list to Excel and review.


  3. Open the draft bill and change the invoice number by using the highest number + 1 eg., if the highest number used was 18415, enter 18416 into the Invoice No field and then post the bill.

    See KB 33630: Changing my bill numbers to a new range > For AO sites and AE sites that don't use Bill sequencing

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.