SaaS : Download Subscriptions might failed with "ScopedGlideDateTime" error if "external_created" value in the response is null


Description

After creating Integration Profile, "Download Subscriptions" job might fail with the following error:
====
Error: ScopedGlideDateTime(java.lang.String) ScopedGlideDateTime(com.glide.glideobject.GlideDateTime) (sys_script_include.452dbe4087f233000088ed4d87cb0b4d.script; line 68)
====

The reason is that "external_created" might be returned by third party with null value. The script include that thrown the error (SaasAction) should have handled this exception better.

Steps to Reproduce

  1. Create any Integration Profile. For example, with salesforce: https://docs.servicenow.com/bundle/quebec-it-asset-management/page/product/software-asset-management2/concept/integrate-with-salesforce-crm.html
  2. It will automatically create scheduled job to download the subscription. After running the job, the result is marked as "Failed".
  3. Checking sys_flow_context record for "Salesforce CRM Download Subscriptions", you will see error message:
    ====
    Error: ScopedGlideDateTime(java.lang.String) ScopedGlideDateTime(com.glide.glideobject.GlideDateTime) (sys_script_include.452dbe4087f233000088ed4d87cb0b4d.script; line 68)
    ====

Workaround

This problem is currently under review. You can contact ServiceNow Technical Support or subscribe to this Known Error article by clicking the Subscribe button at the top right of this article to be notified when more information becomes available.

Until then, you can import attached update on SaasAction script include to handle this null value exception.


Related Problem: PRB1518530