Skip to content

Commit

Permalink
Improved: Added check to handle empty csv (#26).
Browse files Browse the repository at this point in the history
  • Loading branch information
ravilodhi committed Dec 3, 2024
1 parent c71e763 commit e2826be
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions service/co/hotwax/cycleCount/InventoryCountServices.xml
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,9 @@
<return error="true" message="SystemMessage record not found for systemMessageId: ${systemMessageId}"/>
</if>
<set field="csvData" from="ec.resource.getLocationReference(systemMessage.messageText).getText()"/>
<if condition="!csvData">
<return error="true" message="Csv data not found for systemMessageId: ${systemMessageId}"/>
</if>
<script>
recordsLoaded = ec.entity.makeDataLoader().csvText(csvData).csvEntityName("co.hotwax.cycleCount.InventoryCountServices.import#InventoryCount").load()
</script>
Expand Down

0 comments on commit e2826be

Please sign in to comment.