Hi all,
I was previously helped by being shown the difference of a desktop session vs platform session and wanted to convert my rd.get_data() requests to exploit the benefits of a platform session over a desktop session.
In doing so I've encountered two anomalies I wanted to see if I could get some clarity on.
1) Parameters
Using the same list of fields and associated parameters resulted in multiple errors. As I'm working off old code form a colleague I'm not sure what all the parameters do, but it seems weird that parameters passed using a desktop session cause errors when using a platform session.
I found that 'CH', 'RH', 'NULL' and 'Transpose' throws a 'Error code -1) error.
2)
Omitting these erroneous parameters allowed me to extract the data but I noticed another difference. I'll illustrate with the two sections of code shown below:
the sole difference (to my understanding) here being that the top snippet is using a default desktop session and the bottom a custom platform session.
The results of these snippets differ in that the top will return all years even if there is no data available (desired output), whereas the botton snippet only returns data for the years where data is available (undesired outcome).
My question is whether these problems are caused by a fault from my side? If not, what is causing this or in what way can I best remedy this?
Thanks in advance!