Forum Discussion

Richard_Mayo's avatar
Richard_Mayo
New Contributor III
10 months ago

Unable to log data buffer

Hi everyone,

I'm having trouble logging a databuffer to the error log. I want to be able to do this to debug some code I've written.

I got this concept from the Finance Rules and Calculation Handbook so I believe it's possible but I can't get it to work for me!

In the first screenshot is the code. The red box shows the logdatabuffer script that I've written. I know there is data in the databuffer because it produces sensible results  (ie. the green box) albeit not quite right, hence why I want to visualise it.

The second screenshot shows what I see in the error log. I believe I should be seeing the databuffer results in the orange box area but I just see a blank.

Do I need to "switch on" this functionality somehow? What am I doing wrong?!!!

Thanks in advance,
Richard

 

  • Hi there,

    You were on the right lines - I just got a response back from OS support and it was indeed to do with my settings. Details below for anyone who encounters this problem in future.

    Regards,
    Richard

     

     

  • OS_Pizza's avatar
    OS_Pizza
    Contributor III

    Can you quickly check if data exists in your member script by looking at the db.

     

  • Richard_Mayo's avatar
    Richard_Mayo
    New Contributor III

    Hi,

    Thanks for the suggestion. I found it hard to recreate the member filter in the db on the old code becuase I had used filtermembers plus I manipulated the POV from the source databuffer to make the result databuffer how I need it.

    Anyway, following your logic I created a more simplified example (see below) and then I ran this member filter through the data records as you suggested.

    I found a) still no output in the error log and b) there are records in the data table. (Screenshots below)

    So I think the logdatabuffer script should have data to refer to? Do you agree?

    Thanks,

    Richard

     

     

     

    • OS_Pizza's avatar
      OS_Pizza
      Contributor III

      Yeah for sure, Your data buffer text  is missing in your log. Are you an admin user?

       

      • Richard_Mayo's avatar
        Richard_Mayo
        New Contributor III

        Hi there,

        You were on the right lines - I just got a response back from OS support and it was indeed to do with my settings. Details below for anyone who encounters this problem in future.

        Regards,
        Richard

         

         

  • Richard_Mayo's avatar
    Richard_Mayo
    New Contributor III

    Yep, I'm an administrator. Although I did wonder if there was another specific setting that needs to be turned on to allow me to log databuffers specifically, but I couldn't find anything.

    By administrator I mean I'm a member of our security group called "Administrators" which is assigned to all the different Application Security Roles in Application Properties.

    Not sure what else I can try.

    I guess I'll raise a ticket with the helpdesk and see if they have any ideas.

    Thanks for trying though! If anyone has any other ideas or thoughts on this, I would welcome any ideas!

    Regards,
    Richard