# AIF batch job status remain in 'Executing'

**URL:** <https://www.dynamicsuser.net/t/aif-batch-job-status-remain-in-executing/60673>\
**Category:** Developer Forum\
**Created:** [May 12, 2016, 9:18am UTC](https://www.dynamicsuser.net/t/aif-batch-job-status-remain-in-executing/60673 "2016-05-12T09:18:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ch.relet](https://avatars.discourse-cdn.com/v4/letter/c/d2c977/32.png) [@ch.relet](https://www.dynamicsuser.net/u/ch.relet)\
**Post date:** [May 12, 2016, 9:18am UTC](https://www.dynamicsuser.net/t/aif-batch-job-status-remain-in-executing/60673/1 "2016-05-12T09:18:22Z")

</div>

Hello,

I made 2 batch job for AIF ( Under AX 2009 ). The first with AIFGatewayReceiveService and the second with AifInboundProcessingMessage.

I setup these batch for recurrence ( 2 minutes ).

My problem is that the batch only work one time ( without error and my data are correctly imported ) and the status remain in ‘Executing’ !!!

If I change manually the status ( directly in the table ) to waiting , the job work but only one time again.

I read multiple subject about that on the forum but I have no solution.

Thank you.

---

<div class="post-metadata">

**Author:** ![MartinDrab](https://avatars.discourse-cdn.com/v4/letter/m/e0b2c6/32.png) [@MartinDrab](https://www.dynamicsuser.net/u/MartinDrab)\
**Post date:** [May 13, 2016, 8:14am UTC](https://www.dynamicsuser.net/t/aif-batch-job-status-remain-in-executing/60673/2 "2016-05-13T08:14:21Z")

</div>

It’s not clear which of your two batches gets stack in Executing state. And we can’t know what AIF services you’re processing. Review the output, AIF exceptions and AIF message queue. Maybe it works fine and it just have too many items in the queue. Maybe it stops on a problematic item. Maybe it’s something else - I can’t simply _guess_ it.

If everything else fails, use the debugger to see what’s going on in code.

---

<div class="post-metadata">

**Author:** ![ch.relet](https://avatars.discourse-cdn.com/v4/letter/c/d2c977/32.png) [@ch.relet](https://www.dynamicsuser.net/u/ch.relet)\
**Post date:** [May 13, 2016, 8:24am UTC](https://www.dynamicsuser.net/t/aif-batch-job-status-remain-in-executing/60673/3 "2016-05-13T08:24:19Z")

</div>

It’s work now . It was a problem of TimeZone in the recurrence parameter.
