~mikeevolution/dhis2/conversion_trunk

« back to all changes in this revision

Viewing changes to dhis-2/dhis-services/dhis-service-importexport/src/main/java/org/hisp/dhis/importexport/dhis14/file/rowhandler/AttributeValueDataElementCollectionToolRowHandler.java

  • Committer: Mike Nelushi
  • Date: 2015-04-20 07:43:54 UTC
  • Revision ID: mikeevolution@gmail.com-20150420074354-p880ui1u4adbsxav
finalĀ conversionĀ code

Show diffs side-by-side

added added

removed removed

Lines of Context:
90
90
 
91
91
        final Integer dataElementId = dataElementMapping.get( dhis14DE.getId() );
92
92
 
93
 
        // int attributeId = importAttributeService.getAttributeId(
94
 
        // "CollectionTool" );
 
93
        if ( dataElementId == null )
 
94
        {
 
95
            log.warn( "Data element does not exist for identifier: " +  dhis14DE.getId() );
 
96
            return;
 
97
        }
 
98
        
95
99
        final Integer attributeId = attributeValueMapping.get( "CollectionTool" );
96
100
 
97
101
        AttributeValue attributeValue = new AttributeValue();