To ensure layer IDs remain the same if the MMPK is ever updated, you must configure the map to assign unique IDs in ArcGIS Pro before creating the MMPK.
To configure the map to assign unique IDs:
1.While editing your map data in ArcGIS Pro, in the Contents panel, right-click Map.
2.Click Properties.
The Map Properties: Map window appears.
3.In the General section, select Allow assignment of unique numeric IDs for sharing web layers.
4.Click OK.
To manually set a layer's ID, right-click the layer, click Properties | General, and type an integer in the Layer ID box.
5.Save and then create the MMPK.