Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

Error message when you try to delete a Sales Order Processing batch in Microsoft Dynamics GP: "Unhandled script exception: Illegal address for field 'Customer Number' in script 'vatDaybook_SOPRemoveRC'"


Symptoms

Consider the following scenario. You upgrade to Microsoft Dynamics GP 9.0 Service Pack 3 or to a later version of Microsoft Dynamics GP. Then, you try to delete a Sales Order Processing (SOP) batch. In this scenario, you receive the following error message:
Unhandled script exception: Illegal address for field 'Customer Number' in script 'vatDaybook_SOPRemoveRC'. Script terminated.
Therefore, you cannot delete the SOP batch. However, you can delete the SOP batch if you uninstall VAT Daybook in Microsoft Dynamics GP.

This problem occurs if the following conditions are true:
  • The country code that you use is GB.
  • You use the reverse charge tax.

↑ Back to the top


Cause

This problem occurs because Microsoft Dynamics GP calls the vatDaybook_SOPRemoveRC script. However, the vatDaybook_SOPRemoveRC script does not exist. When Microsoft Dynamics GP runs the following code, this problem occurs.
sp_helptext vatDaybook_SOPRemoveRC

↑ Back to the top


Resolution

Microsoft Dynamics GP 10.0

To resolve this problem, obtain the latest service pack for Microsoft Microsoft Dynamics GP 10.0. For more information, visit one of the following Microsoft Web sites, depending on whether you are a partner or a customer.

PartnersCustomers

Microsoft Dynamics GP 9.0

To resolve this problem, obtain the latest service pack for Microsoft Microsoft Dynamics GP 9.0. For more information, visit one of the following Microsoft Web sites, depending on whether you are a partner or a customer.

PartnersCustomers

↑ Back to the top


Workaround

To work around this problem, delete the transactions that are assigned to the SOP batch in the Sales Transaction Entry window. To do this, follow these steps:
  1. On the Transactions menu, point to Sales, and then click Sales Transaction Entry.
  2. In the Document No list, click a document number that is assigned to the SOP batch.
  3. Follow the appropriate step:
    • In Microsoft Dynamics GP 10.0, click Actions, and then click Delete.
    • In Microsoft Dynamics GP 9.0, click Delete.
  4. When you are prompted to delete the transaction, click Delete.
  5. Repeat steps 2 through 4 for each transaction that is assigned to the SOP batch.

↑ Back to the top


Status

Microsoft Dynamics GP 10.0

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section. This problem was first corrected in Microsoft Dynamics GP 10.0 Service Pack 2.

Microsoft Dynamics GP 9.0

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section. This problem was first corrected in Microsoft Dynamics GP 9.0 Service Pack 4.

↑ Back to the top


More Information

Steps to reproduce the problem

  1. Follow the appropriate step:
    • In Microsoft Dynamics GP 10.0, point to Tools on the Microsoft Dynamics GP menu, point to Setup, point to Company, and then click Reverse Charge VAT Setup.
    • In Microsoft Dynamics GP 9.0, point to Setup on the Tools menu, point to Company, and then click Reverse Charge VAT Setup.

  2. Make sure that the reverse charge is set up by using a positive tax details identifier (ID) and a negative tax details ID.

  3. Click Transactions, point to Sales, and then click Sales Batches.

  4. In the Batch ID field, enter a batch ID, and then click Delete.
  5. If you are prompted to delete the batch ID, click Delete.

↑ Back to the top


Keywords: kbexpertiseinter, kbbug, kbmbsmigrate, kbtshoot, kbexpertisebeginner, kbnoloc, kberrmsg, kb, kbmbsvatdaybookeurope, kbnosurvey, kbmbspartner

↑ Back to the top

Article Info
Article ID : 952213
Revision : 1
Created on : 3/25/2017
Published on : 1/4/2015
Exists online : False
Views : 77