Customer Portal

Get Involved. Join the Conversation.

Topic

    Dev Aditya
    "Error with rn: field tag: The primary object answer is...Answered
    Topic posted October 13, 2017 by Dev AdityaGold Trophy: 10,000+ Points 
    172 Views, 6 Comments
    Title:
    "Error with rn: field tag: The primary object answer is not supported"
    Content:

    Hi experts,

    We are in middle of CP migration process from 3.3 to 3.7. We have  rn field tag used in our codes as given below:

    <rn:field name="Answer.Question" /> and 

    <rn:field name="Answer.Solution" />

    I checked in object explorer, tag looks good, but still, page is showing error as given below:

    "Fout met rn:field-tag: Het primaire object Answer wordt niet ondersteund"

    Translation:

    "Error with rn: field tag: The primary object answer is not supported"

    We have not yet deployed it in prod or stage, it is still in development site.

    Anyone encountered same issue or has idea about it, kindly comment. Any lead is appreciated.

     

     Thanks,

    Dev

    Version:
    3.3->3.7

    Best Comment

    Richard Keevil

    Odd!

    I'm only using 3.6 and it looks fine to me - well according to my docs at least.  Unless something has drastically changed in its use which https://[site]/ci/admin/docs/framework/businessObjects should describe, then i'm going to guess that you could be trying to display and answer.question/solution on a page that cant see an answer, such as the community or answers/list. Im also going to guess that in order to display those details of an answer, there must be an a_id involved - likely via the URL?  On which page is this business object being used?  

    Oh and I just checked my answers/detail page and I am using answers.solution not answer.solution.  May be nothing and simply me using an old, but still supported reference to the object, but worth a punt.

    Comment

     

    • Pramod Vasudeva Murthy

      Well, I have an OPN site in CP 3.7 Aug version and it works fine. Have you applied a patch recently?

      ~VIP

    • Dev Aditya

      Oracle have had perform regular maintenance activity. Apart from that, we have not done anything. Same peice of code is working fine in 3.3 but creating problem in 3.7

    • Richard Keevil

      Odd!

      I'm only using 3.6 and it looks fine to me - well according to my docs at least.  Unless something has drastically changed in its use which https://[site]/ci/admin/docs/framework/businessObjects should describe, then i'm going to guess that you could be trying to display and answer.question/solution on a page that cant see an answer, such as the community or answers/list. Im also going to guess that in order to display those details of an answer, there must be an a_id involved - likely via the URL?  On which page is this business object being used?  

      Oh and I just checked my answers/detail page and I am using answers.solution not answer.solution.  May be nothing and simply me using an old, but still supported reference to the object, but worth a punt.

    • Dev Aditya

      Hi Richard,
      Thanks for responding. I guess you hit the exact point. We are using answer as a form in which we are using this field tag. Now, as you said 'in order to display those details of an answer, there must be an a_id involved - likely via the URL' , exactly same thing is happening. Please find the details below:
      •    URL of that page is like - https://domain.custhelp.com/app/dealitformulier/-  If this URL is accessed, this field tag error is thrown.
      •    Now, we add answer ID in the last of the URL like this- https://domain.custhelp.com/app/dealitformulier/a_id/1922
      Page works absolutely fine without any error.

      Surprisingly, it is working absolutely fine in the legacy system. I am more focussed on fixing it in new system
      Can we implement condition such that :
      if(a_id is present in URL)
      { display the field tag}
      else,
      {
      keep it hidden
      }

      Or, any other idea that can help to load both the pages(with and without answer ID) without any error

    • Richard Keevil

      This should work (https://[site]/ci/admin/docs/framework/pageTags) :

      <rn:condition url_parameter_check="a != null">
        <rn:field name="Answer.Question" />
      </rn:condition>
      
    • Dev Aditya

      Code worked!!! 

      Thanks a lot Richard for your help.