System property gets null itself , why?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā03-17-2023 01:26 AM
I have created one system property integer type and putting one value in it, but its value keep getting null again and again but itself, checked the history and found by system its happening, please suggest how can i stop this to be null.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā03-17-2023 02:38 AM
Hi @VIKAS MISHRA ,
Where are you accessing that property ? Is there any code then please share.
Also refer below statement from servicenow support :-
It has been observed that if you export the XML of a property in one instance, and then import that XML into another instance, any automation that calls that property will return NULL on the value, until you update the record of the property on the new instance. This can cause unforseen issues with any code that calls the property.
Example code would be a background script calling:
gs.info(gs.getProperty("name_of_property"));
**replace name_of_property with a custom property. Test importing it in from another instance. Run the code. Notice it is null. Then update the record with a new value for the property and run it again. Then you will get the correct value instead of null.
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0994449