cancel
Showing results for 
Search instead for 
Did you mean: 

Runtime error OBJECTS_OBJREF_NOT_ASSIGNED when calling any standard GRC API's

Former Member
0 Kudos


Hello colleagues,

I always get the runtime error OBJECTS_OBJREF_NOT_ASSIGNED when calling any standard GRC API's

For instance, lets take Function Modules:

I tried almost any of them but in particular:

GRPC_API_CONTROL_QUERY Load the list of controls

GRPC_API_ISSUE_QUERY Retrieve issues of the case

GRPC_API_ORGUNIT_QUERY Load list of Organizations

GRPC_API_RMPLAN_QUERY Retrieve remediation plans of case

GRPC_API_RISK_CONTROLS Retrieve the controls of the risk

and etc.

All of them return the runtime error OBJECTS_OBJREF_NOT_ASSIGNED, however I've provided Object ID's in the right format,

The same is for corresponding classes,

Does anyone have such problem before?

Appreciate your responses,

Thank you,

Best Regards,

Anton

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Anton,

You need to pass reference of IO_SESSION that is the reason why you're getting  dump.

Thanks

KH

Former Member
0 Kudos

Hi Katrice,

I've tried several FM's with passing the reference of the IO_SESSION id, but still, the same runtime error occured.

And, also, in these FM's the I_SESSION_ID is optional, so I suppose at least it should be mandatory for the given FM in case it returns the run time error without it

Anyway, I test these FM's from SE80, with the Test/Execute function.

May they be tested like that? Or should write a code where for example firstly I create a new session and then pass it to the given FM, and it is executed in the same one session?

Many thanks in advance!

Best Regards,
Anton

Former Member
0 Kudos

Hi Anton,

Can you provide the snapshot of ST22(Dump analysis) ?

Thanks

KH

Former Member
0 Kudos

Hi Anton,

We need to pass value for I_SESSION_ID. Because, when i execute FM: GRPC_API_RMPLAN_QUERY by giving correct I_OBJECT_ID as shown below, i'm also getting the same error.

On executing..

Getting following dump.

And attached is the dump analysis .

Thanks

KH

Former Member
0 Kudos

Hi Katrice,

Great, it looks like the I_SESSION_ID is mandatory parameter,

Please see the st22 damp analysis log. I have the same runtime errors as you:

The list of run time errors for different GRC API's. All errors are the same.

The dump analysis for one FM:

Thank you very much for help!

Best Regards,

Anton

Answers (1)

Answers (1)

Colleen
Advisor
Advisor
0 Kudos

Hi Anton

I do not know PC or RM but I've noticed in GRC component that short dump is usually due to a missing configuration or invalid configuration value.

Have you gone through the applicable configuration to check? If so, debug or trace replicating to the error to see where it fails.

Regards

Colleen

Former Member
0 Kudos


Hello Colleen,

Thank you for a swift reply,

It is hard to recognise the needed configuration from the dump log,

I've went through the debug of several FM's and traced that the runtime error is always happening on the step:

  api_model model_setup.

I am unable to get inside the api_model while debugging because it is falling in dump immediately once it gets into api_model definition, and also "model_setup" is empty, so I suppose this is the issue,

Need to find where is it configured...

Best Regards,

Anton