Phenomenon

Run into the error “RPC call: Cannot find the function in UFA report”.

Cause

The name of the parameters are repeated in declare of RPC function, for example:

subroutine SBT_UPDATEEVENTTYPE(string P_CALL_AGENT,string P_USER_ID,string P_DEVICE_ID,string P_AUTHORIZATION_KEY,string P_CREATEFLAG,string P_EVENT_CATEG_CODE,string P_EVENT_CODE,string P_EVENT_NAME,string P_EVENT_DESC,string P_EVENT_LOCATION,double P_MAX_CAPACITY,double P_SECURITY_LEVEL,string P_INMATE_REQUEST,string P_VIEW_AUTHORIZED,string P_SCHEDULEENABLED,string P_UNSCHEDULEENABLED,double P_PRIMARYHOLDING,double P_SECONDARYHOLDING,double P_RETURNHOLDING,string P_RELEASEBED,string P_EXTERNALMOVE,string P_TRANSPORTATION,string P_INTERFACILITYACTION,string P_BAG_LUNCH,long P_GT_ADJUST,string                                   P_OVERRIDE_PERS_CONFLICTS,string P_OVERRIDE_SECURITY,string p_fee_category,string                                                                   P_OVERRIDE_PERS_CONFLICTS,ref double P_LOG_ENTRY_ID,ref string P_ERROR_MESSAGE,ref string P_ERROR_PROCEDURE,ref double P_RET_STATUS) RPCFUNC ALIAS FOR "~"JMSP~".~"SBT_UPDATEEVENTTYPE~""

Solution

Change the name of the parameters to make sure they are not the same, for example:

subroutine SBT_UPDATEEVENTTYPE(string P_CALL_AGENT,string P_USER_ID,string P_DEVICE_ID,string P_AUTHORIZATION_KEY,string P_CREATEFLAG,string P_EVENT_CATEG_CODE,string P_EVENT_CODE,string P_EVENT_NAME,string P_EVENT_DESC,string P_EVENT_LOCATION,double P_MAX_CAPACITY,double P_SECURITY_LEVEL,string P_INMATE_REQUEST,string P_VIEW_AUTHORIZED,string P_SCHEDULEENABLED,string P_UNSCHEDULEENABLED,double P_PRIMARYHOLDING,double P_SECONDARYHOLDING,double P_RETURNHOLDING,string P_RELEASEBED,string P_EXTERNALMOVE,string P_TRANSPORTATION,string P_INTERFACILITYACTION,string P_BAG_LUNCH,long P_GT_ADJUST,string                             P_OVERRIDE_PERS_CONFLICTS,string P_OVERRIDE_SECURITY,string p_fee_category,string                                                             P_OVERRIDE_PERS_CONFLICTS2,ref double P_LOG_ENTRY_ID,ref string P_ERROR_MESSAGE,ref string P_ERROR_PROCEDURE,ref double P_RET_STATUS) RPCFUNC ALIAS FOR "~"JMSP~".~"SBT_UPDATEEVENTTYPE~""

3
0