web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
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 32
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?
 
 
I have the same question (0)

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,226

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 2,047 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,257 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans