Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Unanswered

Skip Job Queue if found an error and write to custom log

(0) ShareShare
ReportReport
Posted on by 22
Hi all,
 
I have an issue here.
so i am customizing a custom Post in background for Purchase Order using a Job Queue.
the requirement is,
it will auto post Receive every PO that have a custom flag in it ticked.
so, example:
PO-0001   ticked to post   (have an error location code)
PO-0002   ticked to post
PO-0003   not ticked
PO-0004   ticked to post   (have an error allowed posting date)
PO-0005   ticked to post   (have an error dimension mandatory)
 
what I want to accomplish here is, i will need the job queue to keep run(not in error state) after found an error. so in this case, PO-0002 will be posted. and other error will be written to custom log.
 
currently, the job queue will be in error state.
 
i have tried using 
IF Codeunit.RUN Then
 
and Try Function
both are resulting same.
 
do you have any suggestion what i have to do here?
 
 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Congratulations 2024 Spotlight Honorees!

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December!

Congratulations to our December super stars! 🥳

Get Started Blogging in the Community

Hosted or syndicated blogging is available! ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,642 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,371 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans