Skip to main content

Notifications

Business Central forum
Unanswered

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

Posted on by 25
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?
 
 
Categories:

Helpful resources

Quick Links

Dynamics 365 Community Update – Sep 9th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Dynamics 365 Community Newsletter - August 2024

Catch up on the latest D365 Community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,186 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 227,996 Super User 2024 Season 2

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans