<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Variables not updating using post call in Network Platform API</title>
    <link>https://community.cisco.com/t5/network-platform-api/variables-not-updating-using-post-call/m-p/5214166#M8641</link>
    <description>&lt;P&gt;Hi, following&amp;nbsp;&lt;A href="https://developer.cisco.com/docs/sdwan/device-template/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://developer.cisco.com/docs/sdwan/device-template/&lt;/A&gt;&amp;nbsp;doc to push the changes to update variables and i am getting pushID after post call. but the changes are not reflecting and throwing below error when get call is executed with push ID -&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Failed to update configuration - com.viptela.vmanage.server.deviceconfig.template.TemplateException: com.viptela.vmanage.server.deviceconfig.template.TemplateException: java.lang.NullPointerException"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;My payload -&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"deviceTemplateList":[&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"templateId":"{deviceID}",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"device":[&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"csv-status":"complete",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"csv-deviceId":"{deviceID}",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"csv-deviceIP":"1.2.3.4",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"csv-host-name":"hostname02",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"//system/host-name":"hostname02",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"//system/system-ip":"1.2.3.4",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"//system/site-id":"1000",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"csv-templateId":"{templateID}",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"selected":"true",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"/2/vpnx_ipsec_intf01_num/interface/tunnel-destination":"1.2.3.4",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"//virtual-applications/virtual-application/te/te-mgmt-ip": "1.2.3.4/30",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"//virtual-applications/virtual-application/te/te-vpg-ip":"1.2.3.4",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"//virtual-applications/virtual-application/te/name-server":"1.2.3.4",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"//virtual-applications/virtual-application/te/hostname":"hostname",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"/0/vpn-instance/ip/route/0.0.0.0/0/next-hop/vpn0_default_next_hop01/address":"1.2.3.4",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"deviceModel":"model"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"isEdited":false,&lt;BR /&gt;"isMasterEdited":false&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;}&lt;BR /&gt;]&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 24 Oct 2024 05:54:40 GMT</pubDate>
    <dc:creator>nitinkdas</dc:creator>
    <dc:date>2024-10-24T05:54:40Z</dc:date>
    <item>
      <title>Variables not updating using post call</title>
      <link>https://community.cisco.com/t5/network-platform-api/variables-not-updating-using-post-call/m-p/5214166#M8641</link>
      <description>&lt;P&gt;Hi, following&amp;nbsp;&lt;A href="https://developer.cisco.com/docs/sdwan/device-template/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://developer.cisco.com/docs/sdwan/device-template/&lt;/A&gt;&amp;nbsp;doc to push the changes to update variables and i am getting pushID after post call. but the changes are not reflecting and throwing below error when get call is executed with push ID -&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Failed to update configuration - com.viptela.vmanage.server.deviceconfig.template.TemplateException: com.viptela.vmanage.server.deviceconfig.template.TemplateException: java.lang.NullPointerException"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;My payload -&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"deviceTemplateList":[&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"templateId":"{deviceID}",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"device":[&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"csv-status":"complete",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"csv-deviceId":"{deviceID}",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"csv-deviceIP":"1.2.3.4",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"csv-host-name":"hostname02",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"//system/host-name":"hostname02",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"//system/system-ip":"1.2.3.4",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"//system/site-id":"1000",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"csv-templateId":"{templateID}",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"selected":"true",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"/2/vpnx_ipsec_intf01_num/interface/tunnel-destination":"1.2.3.4",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"//virtual-applications/virtual-application/te/te-mgmt-ip": "1.2.3.4/30",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"//virtual-applications/virtual-application/te/te-vpg-ip":"1.2.3.4",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"//virtual-applications/virtual-application/te/name-server":"1.2.3.4",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"//virtual-applications/virtual-application/te/hostname":"hostname",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"/0/vpn-instance/ip/route/0.0.0.0/0/next-hop/vpn0_default_next_hop01/address":"1.2.3.4",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"deviceModel":"model"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"isEdited":false,&lt;BR /&gt;"isMasterEdited":false&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;}&lt;BR /&gt;]&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2024 05:54:40 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/variables-not-updating-using-post-call/m-p/5214166#M8641</guid>
      <dc:creator>nitinkdas</dc:creator>
      <dc:date>2024-10-24T05:54:40Z</dc:date>
    </item>
    <item>
      <title>Re: Variables not updating using post call</title>
      <link>https://community.cisco.com/t5/network-platform-api/variables-not-updating-using-post-call/m-p/5214297#M8642</link>
      <description>&lt;P&gt;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/1804262"&gt;@nitinkdas&lt;/a&gt;&amp;nbsp;this is related the other thread about sd-wan, looks like you made some progress here but the error message "Failed to update configuration - com.viptela.vmanage.server.deviceconfig.template.TemplateException: com.viptela.vmanage.server.deviceconfig.template.TemplateException: java.lang.NullPointerException" means that there's a null pointer exception somewhere in the device configuration template processing.&lt;/P&gt;
&lt;P&gt;From what i recall occurs when a variable or object is being accessed without being initialized or when a reference is pointing to a nonexistent object.I would try using a more simple template and see if this works first, or capture the request in the UI and check what is being sent.&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2024 09:11:32 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/variables-not-updating-using-post-call/m-p/5214297#M8642</guid>
      <dc:creator>bigevilbeard</dc:creator>
      <dc:date>2024-10-24T09:11:32Z</dc:date>
    </item>
    <item>
      <title>Re: Variables not updating using post call</title>
      <link>https://community.cisco.com/t5/network-platform-api/variables-not-updating-using-post-call/m-p/5322670#M8643</link>
      <description>&lt;P&gt;Did you find what was missing ? I am also facing same error, but i am specifying all values in template variables while attaching it to device.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Aug 2025 19:53:48 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/variables-not-updating-using-post-call/m-p/5322670#M8643</guid>
      <dc:creator>csepracticals</dc:creator>
      <dc:date>2025-08-20T19:53:48Z</dc:date>
    </item>
    <item>
      <title>Re: Variables not updating using post call</title>
      <link>https://community.cisco.com/t5/network-platform-api/variables-not-updating-using-post-call/m-p/5322674#M8644</link>
      <description>&lt;UL&gt;
&lt;LI&gt;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/1521301"&gt;@csepracticals&lt;/a&gt;&amp;nbsp;Please start a new thread with your code examples as this one is marked as accepted solution.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 20 Aug 2025 20:12:17 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/variables-not-updating-using-post-call/m-p/5322674#M8644</guid>
      <dc:creator>bigevilbeard</dc:creator>
      <dc:date>2025-08-20T20:12:17Z</dc:date>
    </item>
  </channel>
</rss>

