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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :

Error: “Could not find the first and last job information for the next operation.”

Fredrik Sætre Profile Picture Fredrik Sætre 12,644

FindIssueBOM.png

This error message with label ID: @SYS134518 can be found in the WrkCtrScheduler.loadRoute method. It basically means that it could not run the planning due to an issue with the route map.

I received this error due to a missing route group on a route. This was due to bad data that was imported and would not have happened if routes where created in the application directly.

The tricky thing was that this might pop up when trying to plan an item with a large BOM structure. Somewhere in this structure lies a route that is not configured properly. But which one is it?! That would be nice to have in the error message right? So let’s fix it!

Put this code:

if(_order.tableId == tableNum("ReqTrans"))
{
    info(strFmt("Item Number: %1 in RouteID: %2 on Operation: %3", ReqTrans::findrecId(_order.recId).ItemId, reqTrans::findRecId(_order.recId).ItemRouteId, routeMap.oprNum));
}
else    
    info("Error not related to a reqTrans");

above the line:

throw error("@SYS134518");

This will then read the item, route and previous operation to the issue and you can easily midigate it.

LOVELY!

 


Filed under: AX 2012

This was originally posted here.

Comments

*This post is locked for comments