Problem Description:


If you delete a source from Infoworks UI, it shows that the source is deleted but it will still be displayed under the Sources tab.


Root cause:


This is a known issue in Infoworks EDO2 v2.6.x. This issue happens if a source is created in Infoworks but not crawled or ingested. The delete source job shows completed but if you download the job log and see the .out file, the below exception would be displayed.

19/09/26 18:05:57 ERROR purge.PurgeUtil: Error while deleting source: java.lang.NullPointerException
    at infoworks.tools.purge.PurgeUtil.deleteLastIngestedCDCKey(PurgeUtil.java:960)
    at infoworks.tools.purge.PurgeUtil.deleteSource(PurgeUtil.java:984)
    at infoworks.tools.purge.PurgeUtil.deleteEntity(PurgeUtil.java:77)
    at infoworks.tools.purge.PurgeEntities.main(PurgeEntities.java:145)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.apache.hadoop.util.RunJar.run(RunJar.java:233)
    at org.apache.hadoop.util.RunJar.main(RunJar.java:148)


Solution:


This issue is fixed in IWX version 2.7.1 onwards. You would need to upgrade IWX EDO2 to v2.7.1 or any version after 2.7.1 (latest version) to resolve this issue.


Applicable Infoworks Versions:

v2.6.x