Error message seen when trying to publish or View Config for the NAT policy is:
Error messages seen in the logs: 2025-03-04 06:18:17,691 ERROR [net.juniper.jnap.sm.provisioning.common.ExceptionHandlingUtils] (JobThread11010063) Error encountered while calculating/ updating configuration for device:ABC: net.juniper.jmp.exception.JMPException: Error while converting rule: 1 of Policy: ABC. Err or message: Routing Instance xyv-vr, does not exist in device at net.juniper.jnap.sm.provisioning.policy.deploy.converters.AbstractPolicyCMConverter.convertRule(AbstractPolicyCMConverter.java:345) [provisi oning.jar:] at net.juniper.jnap.sm.provisioning.policy.deploy.converters.AbstractPolicyCMConverter.convertRuleAndOrder(AbstractPolicyCMConverter.java:269) [provisioning.jar:] at net.juniper.jnap.sm.provisioning.policy.deploy.converters.AbstractPolicyCMConverter.convertGroup(AbstractPolicyCMConverter.java:235) [provis ioning.jar:] at net.juniper.jnap.sm.provisioning.policy.deploy.converters.AbstractPolicyCMConverter.convertGroup(AbstractPolicyCMConverter.java:233) [provis ioning.jar:]This issue happens when the Routing Instance config is not getting written properly in the database. Due to this, when compiling the config for a publish/update, the SD is unable to find this routing instance and hence gives the error message.
To check whether the Routing Instance is present in the DB or not, please run the following commands:
If no output is seen for the Routing Instance, please run the commands mentioned below to resolve the issue.
cd /var/log/space-debug/debug-utilities/deviceImport
You can try the following as well if this does not succeed