Error message during nightly batch invoicing
-
Error message during nightly batch invoicing
Posted by DSC Communities on August 23, 2019 at 12:51 pm-
Rudy Salcedo
MemberAugust 23, 2019 at 12:51 PM
?We have received this error during our nightly invoicing batch job 2 nights in a row on 2 different sales orders, causing the invoicing job to error-out and stop dead in its tracks.When our Credit manager invoiced the SOs manually the next day, there were no issues and both SOs invoiced successfully.
Does anyone know why this error comes up,Ā how to prevent it, and why manually invoicing the problematic SOs works but invoicing via batch job does not?
——————————
Rudy Salcedo
Senior Programmer/Analyst
LaForce, Inc
Green Bay WI
—————————— -
vishal Dhawgaye
MemberAugust 23, 2019 at 7:25 PM
Hi Rudy,This is common issue with processes executing in batch jobs. Is this batch invoicing orders asynchronously? this occurs when multiple threads trying to update the same record. You can try ‘retry’ mechanism in catch. It will retry the same operation in case update conflict occurs.
——————————
vishal Dhawgaye
Hitachi Solutions America, Ltd.
——————————
——————————————- -
Joe MacPherson
MemberAugust 26, 2019 at 9:29 AM
All…We ran into an issue on 10.0.4 with batch processing of invoices across multiple threads which resulted in excessive charges to Credit Card transactions.Ā If you are affecting consumer Credit Card transactions in the Invoicing process, you need to validate that the error has impacted the consumer credit card with excess charges…
——————————
Joe MacPherson
Coldwater Creek
Hingham MA
——————————
——————————————- -
Mark Schurmann
MemberAugust 27, 2019 at 8:49 AM
Awhile back we encountered a similar issue after an upgrade.Ā We use an AvaTax connector for the sales tax calculation.Ā During invoicing two calls to AvaTax are made, 1 to calculate and return the tax and 2 to commit the transaction and record the invoice number in AvaTax.Ā The invoice number is generated by D365 from a number sequence and is the last step in the invoice process.Ā The combination of multi-treading and multiple calls to AvaTax was causing the AvaTax to lose track of the invoice number which resulted in the commit of the invoice in AvaTax to fail due to a duplicate invoice number. ĀI doubt this is quite your scenario, but if you have addons they might be the cause.
——————————
Mark Schurmann
Accounting Systems Manager
Automobile Protection Corp
Norcross GA
——————————
——————————————- -
Jessica Murphy
MemberAugust 29, 2019 at 4:02 PM
Is there something wrong with the 10.0.4 update?Ā When we went to Update 28, all of our batch schedules had to be redone.Ā Our invoicing one we could not resolve in house, so we had to go to our Partner.Ā We still get an error, but it invoices.——————————
Jessica Murphy
Master Planner
Goodwill Industries of Central Indiana
Indianapolis IN
——————————
——————————————- -
Rudy Salcedo
MemberAugust 30, 2019 at 9:18 AM
ThanksĀ everyone for the info/advice.Ā We ended up recreating the batch job forĀ nightly invoicing 3 nights ago, and ?since then invoicing has run successfully without encountering the error that crashed the original invoicing batch job for over a week.We’re not sure what happened to the original invoicing batch job to cause it to abend with the error since nobody changed anything.Ā And we don’tĀ understand why creating an exactĀ new version of the batch job runs successfully without getting the same error.Ā But if this happens again, the first thing we’re going to do is recreate the batch job again.
——————————
Rudy Salcedo
Senior Programmer/Analyst
LaForce, Inc
Green Bay WI
——————————
——————————————- -
Mark Schurmann
MemberAugust 30, 2019 at 9:30 AM
I can second this.Ā On occasion, we’ve had batch jobs inexplicably fail and recreating the batch has resolved the issue.——————————
Mark Schurmann
Accounting Systems Manager
Automobile Protection Corp
Norcross GA
——————————
——————————————-
DSC Communities replied 6 years, 7 months ago 1 Member · 0 Replies -
-
0 Replies
Sorry, there were no replies found.
The discussion ‘Error message during nightly batch invoicing’ is closed to new replies.