I have a script that I'm running PSOS to export some records, and insert it into a container field. I've done this many times before, but I can't figure out why it isn't working this time. Here is a screenshot of the relevant script steps. The container does exist on the layout this is running on.
I'm running this on an FM server 21.1.4 on a Ubuntu Linux machine. I've added error logging after various steps, and the export also appears to be working (doesn't return an error). I've tried with and without automatically encoding the URL. I've tried inserting into a variable with the appropriate cURL header and setting the container field from there. Nothing works, but I also don't get any error codes in response.
Not sure if the above should be interpreted literally, i.e. no error codes are being collected, or If it should be interpreted as saying that the error codes collected are all 0.
If the script is not capturing any error codes, then something is likely amiss with the error capturing methodology; it should be collecting some kind of code, at the very least, a 0 to indicate success.
Honing in on that last step that sets a log field to Get( LastError ) :
If that log field remains empty, then it suggests to me that at runtime, the script is unable to access the field in order to set the error value. That could be due to the usual sorts off mishaps, such as insufficient permissions, wrong context, unexpected or no current record, etc..
My suggestion would be to collect the error codes into runtime variables, and return all of them in the script result so that you can review them while running/debugging the situation.