We’re getting this error when clicking on the shipments tab of SOOrderEntry. This is an upgraded system, coming from 24R2, upgrading to 25.101.0153.
Through the project editor we have added a state to SOShipment. We have a workflow that takes the new state into account. It’s been working in 24R2 from the beginning.
Edit: In 24R2, the shipments tab does not display the correct status value, it’s showing the database value, not the text for that value:

When I check the trace, the last line is:
at PX.Objects.SO.GraphExtensions.SOOrderEntryExt.Status.GetValue(SOOrderShipment row)
This error only appears if the order has shipments that have a Status value equal to the new status that we added.
If I put the shipment on hold/off hold to change the status to Open, I can view the shipment on the Sales Order Entry’s shipments tab.
I have unpublished all customizations and the error persists. This suggests to me that the issue is within the workflow somewhere but I have no way to debug it (that I know of).
Any suggestions on how to find where to add the new status in 25R1 so that this error isn’t happening?
More of the trace:
at System.ThrowHelper.ThrowKeyNotFoundException()
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at PX.Objects.SO.GraphExtensions.SOOrderEntryExt.Status.GetValue(SOOrderShipment row)
at PX.Objects.Common.PXFieldAttachedTo`1.By`1.As`1.FieldSelecting(PXCache sender, PXFieldSelectingEventArgs e)
at PX.Data.PXCache.OnFieldSelecting(String name, Object row, Object& returnValue, Boolean forceState, Boolean externalCall) in C:\build\code_repo\NetTools\PX.Data\Cache\ModelEventHandling.cs:line 1028
at PX.Data.PXCache`1.GetValueInt(Object data, String fieldName, Boolean forceState, Boolean externalCall) in C:\build\code_repo\NetTools\PX.Data\Cache\Model.cs:line 1467
at PX.Data.PXCache`1.GetValueExt(Object data, String fieldName) in C:\build\code_repo\NetTools\PX.Data\Cache\Model.cs:line 1285
at PX.Data.PXView.<>c__DisplayClass221_0.<FilterResult>b__0(Object item) in C:\build\code_repo\NetTools\PX.Data\Database\Cached.cs:line 5705
at PX.Data.PXView.<>c__DisplayClass221_6.<FilterResult>b__27(Object item) in C:\build\code_repo\NetTools\PX.Data\Database\Cached.cs:line 5998
at System.Collections.Generic.List`1.FindAll(Predicate`1 match)
at PX.Data.PXView.FilterResult(List`1 list, PXFilterRow[] filters) in C:\build\code_repo\NetTools\PX.Data\Database\Cached.cs:line 6263
at PX.Data.PXView.Select(Object[] currents, Object[] parameters, Object[] searches, String[] sortcolumns, Boolean[] descendings, PXFilterRow[] filters, Int32& startRow, Int32 maximumRows, Int32& totalRows, String[] sortAsImplicitColumns) in C:\build\code_repo\NetTools\PX.Data\Database\Cached.cs:line 7057
at PX.Data.PXView.Select(Object[] currents, Object[] parameters, Object[] searches, String[] sortcolumns, Boolean[] descendings, PXFilterRow[] filters, Int32& startRow, Int32 maximumRows, Int32& totalRows) in C:\build\code_repo\NetTools\PX.Data\Database\Cached.cs:line 6722
at PX.Data.PXGraph.ExecuteSelect(String viewName, Object[] currents, Object[] parameters, Object[] searches, String[] sortcolumns, Boolean[] descendings, PXFilterRow[] filters, Int32& startRow, Int32 maximumRows, Int32& totalRows) in C:\build\code_repo\NetTools\PX.Data\Graph\Graph.cs:line 2932
at PX.Data.PXGraph.ExecuteSelect(String viewName, Object[] parameters, Object[] searches, String[] sortcolumns, Boolean[] descendings, PXFilterRow[] filters, Int32& startRow, Int32 maximumRows, Int32& totalRows) in C:\build\code_repo\NetTools\PX.Data\Graph\Graph.cs:line 2895
at PX.Web.UI.PXBaseDataSource.ExecuteSelect(String viewName, DataSourceSelectArguments arguments, PXDSSelectArguments pxarguments)
at PX.Web.UI.PXDataSource.ExecuteSelect(String viewName, DataSourceSelectArguments arguments, PXDSSelectArguments pxarguments)
at PX.Web.UI.PXDataSourceView.Select(DataSourceSelectArguments arguments, PXDSSelectArguments swarguments, DataSourceViewSelectCallback callback)
at PX.Web.UI.PXGrid.PerformSelect()
at PX.Web.UI.PXGrid.GetCallbackResult(PXCallbackCommand cmd)
