Error 016K (Version is not available to client) Asset Split (P12106)

Goal

Why Error 016K (Version is not available to client)

CAUSE . . . . The Selected Version is not available to client.
RESOLUTION . .The selected version is created by other client and is never
checked in. Try selecting a different version.

is coming in splitting asset through P12106 (Asset Split)?

Solution

This error can be coming when you have applied the ESU which contain below bugs in EntepriseOne Application release 9.1 and 9.2:-

Issue can be replicated in below steps,

  1. Create a version 'TEST001' for P1204 (Work With Assets)
  2. Run P1204|TEST001
  3. Assign Processing Option value (tab - Versions) item #3. Asset Master Version (P1201) = 'Test002'
  4. In P1204, look for the asset to split, then (Row Exit) Asset Split which is calling P12106|TEST001 (Note that you do not have this version because the application P12106 does not have associated processing option)
  5. In splitting you hit error '016K'

To overcome this error, make it sure you have valid version of P1201|TEST002.

The reason for this error and resolution is that, when you have applied above bug,

  1. Read the associate version of P1201 (Asset Master) from P1204|version you are running
  2. Read version of P1201 version you have specified in the processing option of P1204

*** Break In Code ***
0175 // Begin Bug 20955916
0176 // ---------------------------------------------------------------------------
0177 // Get Unit Required PO value from P1201
0178 // If unit is required, make it cumplusory here too
0179 // ---------------------------------------------------------------------------
0180 // Get the version of P1201 from the Processing option of P1204.
0181 P1204 Retrieve Processing Options
VA evt_P1201Version_VERS "P1204" -> BF szProgramId
SL VersionName -> BF szVersion
-> BF cSuppressErrorMessages
0182 // If no version is mentioned in the POs pf P1204, then pass ZJDE0001
0183 If VA evt_P1201Version_VERS is equal to Or VA evt_P1201Version_VERS is equal to
0184 VA evt_P1201Version_VERS = "ZJDE0001"
0185 End If
0186 // Pass the correct version of P1201 retrieved from PO of P1204, for
0187 // retrieving its POs
0188 P1201Retrieve Processing Options
"P1201" -> BF szProgramId_PID
VA evt_P1201Version_VERS -> BF szVersion_VERS
VA evt_P1201UnitRequiredPO_EV01 -> BF cSuppressErrorMessage_SUPPS
0189 If VA evt_P1201UnitRequiredPO_EV01 is equal to "1"
0190 If GC Unit Number is equal to Or GC Unit Number is equal to Or GC Unit Number is equal to
0191 Set Grid Cell Error(FC Grid, , GC Unit Number, "0003")
0192 End If
0193 End If
0194 // End Bug 20955916