02-28-2024 03:24 PM - last edited on 03-01-2024 04:39 AM by JackLacava
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
Solved! Go to Solution.
02-29-2024 08:51 AM
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
02-29-2024 02:54 AM
Can you quickly check if data exists in your member script by looking at the db.
02-29-2024 04:14 AM
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
02-29-2024 04:45 AM
Yeah for sure, Your data buffer text is missing in your log. Are you an admin user?
02-29-2024 08:51 AM
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
02-29-2024 05:27 AM
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