Skip to Content

REC statement returns no record

Hi Experts,

I have a scenario where I have to lookup the records from different model and push the same in current model.

My script logic works if I put a fact value 0 or something else. But if I don't have any fact value the *rec statement does not write a new record.




I have tried all the above combinations but didn't find a solution. My question is how can i write a new record using *REC when there is no fact record available in the cube?


Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Dec 09, 2014 at 11:08 AM

    Hi Sami,

    WHEN/ENDWHEN loop process ONLY existing records with default settings.

    You have 2 options:

    1. *WHEN_REF_DATA = MASTER_DATA before WHEN - it will process master data members! But the performance is very slow - affects all dimensions.

    2. Scope data you want to LOOKUP and push it to new destination. Better!


    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.