Due to scheduled maintenance, some areas of our Shop and Manage Plan pages are currently inaccessible. Thank you for your patience.

Please reach out to sales@eonesolutions.com with any questions.

Back

eConnect gives error 8087 trying to update existing variable allocation detail account

Published: Aug 19, 2024
Post Author Written by Pat Roth

I’m attempting to update a Variable Allocation Account in Microsoft Dynamics GP – I have the “Update If Exists” checkbox marked on the “Add variable allocation detail” mapping but eConnect gives the error:

Error Number = 8087
Error Description = Account already exists in the Variable Allocation Master record – GL00104


How do I get around this error?



Microsoft has confirmed this to be a bug in the Microsoft taCreateVariableAllocationAccountRcd stored procedure in that while the procedure does have the UpdateIfExists parameter, it isn’t actually being used in the proc and gives the 8087 error instead of properly updating the existing record in the GL00104 table.

The easiest and safest method is to work around the issue from SmartConect by using a SQL Task to delete all of the breakdown distribution account records in the GL00104 before the data is being sent to eConnect. Because the records are removed before the eConnect code variable account procedure has executed, there is no possibility of getting error 8087 unless there is a duplicate in the source data.

Because we need to remove the existing allocation account records BEFORE eConnect processes the new data – this script will run as a “Before Document” task.

I’ve attached a zip file with a map and map source from built with SmartConnect 21.1.0.1355 and sample source data that will work with Fabrikam data that will illustrate the issue and workaround.

Feeling stuck? Get the support and guidance you need to help you power through any data challenge

We're on your integration team. Connect with our people and let us know how we can help you.