AP Invoice Posting Issue

Dear experts, While trying to post the AP Invoice, Posting Engine is throwing below mentioned error

Error: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. —> System.NullReferenceException: Object reference not set to an instance of an object.
at Erp.Internal.Lib.PstVarPr.CreatePartTran(Decimal CurTranCost, Decimal NonRecoverableCost, String CurJobNum, Int32 CurAssemblySeq, Int32 CurJobSeq, String CurJobSeqType, Int32 CurDMRNum, APInvHed APInvHed, RcvDtl RcvDtl, PartTran& PartTran, APInvDtl APInvDtl, PartPlant PartPlant, RcvMisc RcvMisc, Plant Plant, XaSyst XaSyst, String Temp_Reference) in C:_Releases\ERP\UD10.2.100.9\Source\Server\Internal\Lib\FifoCostNVariLib\PstVarPr.cs:line 248
at Erp.Internal.Lib.PstVar.RunPstVar(Decimal RcptTot, Decimal LineNet, Decimal NonRecoverableCostVar, RcvDtl RcvDtl, APInvHed APInvHed, APInvDtl APInvDtl, PartPlant PartPlant, RcvMisc RcvMisc, Plant Plant, XaSyst XaSyst, Boolean AllWentWellFlag, Boolean PostError, String& PostErrorLog) in C:_Releases\ERP\UD10.2.100.9\Source\Server\Internal\Lib\FifoCostNVariLib\PstVar.cs:line 226
at Erp.Internal.PE.AP_InvoicePost_Post.UpdateRelatedTables(String inAbtUID) in C:_Releases\ERP\UD10.2.100.9\Source\Server\Internal\PE\AP_Invoice\AP_InvoicePost_Post.cs:line 3251
— End of inner exception stack trace —
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
at Erp.Internal.PE.ReviewJournal.ConfirmGL(String inABTUID, PostingMode inMode) in C:_Releases\ERP\UD10.2.100.9\Source\Server\Internal\PE\ReviewJournal\ReviewJournal.cs:line 2753
at Erp.Internal.PE.AP_INVOICE_EPIC01_Post_941E83C560E5E84E3396FB9C4C44CD5929.Post()

anyone can suggest how to resolve this issue?

Looks like it might have put that invoice into a Review Journal. Check the Review Journal Entry screen, see if you can find this one - if you can, it might give you some more info as to what is wrong.

Hi @markdamen , I have checked that there is nothing in Review journal.

It looks like it is having problems making the PartTran record because of an issue calculating the cost, using FIFO. Maybe somethi g to do with how FIFO costs are tracked

I have restart the task agent & try to Post the invoice. Invoice Posted.