Skip to Content
author's profile photo Former Member
Former Member

RAR - Error in Rule Generation

Hi Experts,

I encountered the following error when generating rules in RAR.

Error in Rule Generation! Reason:Cannot assign NULL to host variable 1. setNull() can only be used if the corresponding column is nullable. The statement is "INSERT INTO "VIRSA_CC_RTMAP" ("ROOTELEM","AUTHKEY") VALUES (?,?)".

Has anyone encountered a similar problem and what action have you taken to remediate this?

Thanks!

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Aug 13, 2009 at 10:18 AM

    Hi,

    Looks like a space is left in begining or end in your function object values. Are you defining functions / risks and generating rule one by one or it is mass rule generation for sap standard rules?

    We encountered this issue while creating function and space before or after object value was left.

    Please check.

    Regards,

    Sabita

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Experts,

      I have checked all the text files for null values and trim all the columns for spaces before & after the values. However, I still get the same error when generating the rules. Can I confirm whether the following fields can be left blank?

      1. function permission text file - Object, Field, From Value, To Value (for some customised transaction codes)

      2. risk text file - Function 3 ID, Function 4 ID, Function 5 ID

      3. risk description text file - Control Objective

      Thanks!

  • author's profile photo Former Member
    Former Member
    Posted on Aug 13, 2009 at 09:15 AM

    Hi,

    Looks like you are have set a field value to nothing(NULL) where as it should have been maintained with some value. Please check your load file for nulls and see.

    Regards,

    Ajesh Raju.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.