Task agent getting stuck due to error in MultiCompany

Hello Folks,

The task agent is getting stuck and it’s effecting in all processes. While looking into the Multicompany error logs, found below error:


5/18/2020 12:16:24 PM (Server:localhost PID:10364 DB:DBSQL1\EpicorAPP1 Task:100971) Multi-Company Process - Error: System.NullReferenceException: Object reference not set to an instance of an object.
at Erp.Internal.SI.MT.MTPartImpVal.RunMTPartImpVal(Int32 pIntQueID, List1& tt_EFValidation) in C:\_Releases\ERP\UD10.2.300.14\Source\Server\Internal\SI\MT\MTPartImpVal\MTPartImpVal.cs:line 162 5/18/2020 12:16:24 PM (Server:localhost PID:10364 DB:DBSQL1\EpicorAPP1 Task:100971) Multi-Company Process - Error: Stack Trace at Erp.Internal.SI.MT.MTPartImpVal.RunMTPartImpVal(Int32 pIntQueID, List1& tt_EFValidation) in C:_Releases\ERP\UD10.2.300.14\Source\Server\Internal\SI\MT\MTPartImpVal\MTPartImpVal.cs:line 162
5/18/2020 12:16:27 PM (Server:localhost PID:10364 DB:DBSQL1\EpicorAPP1 Task:100971) Multi-Company Process - Stopping Multi-Company

As per the error, I believe either in some records null value is passing or some configuration level having the issue. I am not sure where to get this.

What could be the route cause, any incomings will help a lot.

Thanks in advance.

Check you Im table. It may be because you have global parts setup? look at individual parts. Try rerunning with full logs

2 Likes

Thanks @enbw. Found one part which was earlier set as global in parent company and some how stuck in child. When I checked today in parent it was removed as global. Now it’s working after rectify that particular part.

Thanks again.