New Member.
212 views

UCMDB Support Tip: ServiceNow Pull Adapter Suds caching

You will find this information useful if your ServiceNow pull integration is not recognizing a new attribute you added to ServiceNow table.

 

Here is one example of this, using Content Pack 14.04.262:
A new attribute was added to a ServiceNow table called u_notes. The WSDL contained the new attribute but the ServiceNow pull integration did not recognize it as shown in the logging below.
It appears that suds is cacheing the wsdl

 

[DEBUG] [RemoteProcess.ConsoleInputStreamReader] (RemoteProcess.java:78) - TypeNotFound: Type not found: 'u_notes' <2015-03-05 15:27:09,596> [DEBUG] [RemoteProcess.ConsoleInputStreamReader] (RemoteProcess.java:78)

 

The problem can be resolved by clearing the cache. But turning the cache off in this case is tricky.
Here is how you can do it - by making the following updates to the adapter code:

In pull_from_service_now.py in __createClient:
return Client(url, transport=t)
becomes:
return Client(url, transport=t, cache=None)

 

Use this workaround until HP Dev team implements a solution for this issue in a future version.
A CR request is already in place for this under QCCR1H98932

 

 

HP Support
If you find this post helpful please click the kudos! button

Labels (1)
0 Likes
0 Replies
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.