Description

This article explains how to overcome the import failure issue if it fails with the error message "Invalid destination port range".

Symptoms

ERROR [net.juniper.sm.imports.handler.AbstractImportHandler] (JobThread1233761) Error while importing Applications mo from file. Import failed due to following validation errors. - [Invalid Destination Port Port Range for Service jtac-36760-3671]

2021-09-19 15:14:48,238 ERROR [net.juniper.sm.imports.bean.AbstractImportJobManager] (JobThread1233761) Error occured during the job. Job has failed : net.juniper.jnap.sm.common.SMException: Importing has Failed

 

Solution

Please find the below solution:

 

In some scenarios user might have configured the destination port range in wrong order.

 

In the below example the destination port range has been configured in wrong order(36760-3671) which SD cannot understand and hence import fails.

 

set applications application jtac-36760-3671 destination-port 36760-3671

 

The actual range should start from small value to big value.

 

The correct range should be in 3670-3671

 

Once the range has been properly configured the import should be successful.

 

If you need any further assistance please contact JTAC.

 

Modification History

2024-09-25 : Article Created

2025-12-06 : Minor change and visibility changed.