Skip to main content
Solved

dex::ReadFromFile not checking sheet name


Forum|alt.badge.img+4

Hello, 

It seems that when you upload a file using the dex::ReadFromFile (dex 23.1.1.2) and using an excel mapping structure like: 

<AimmsExcelMapping>
    <ExcelSheetMapping name="Demand">
        <RowMapping>

uploading a wrong sheet name does not results in a failure which I would have expected to be. 

Do I need to add something to the mapping? Or is this not how it supposed to work?

Glad to hear any feedback.

Marc

Best answer by MarcelRoelofs

Hi @Marc Wingender 

DEX will iterate over all sheets in the workbook and will read the data if there is a mapping with either a name or name-binds-to attribute that matches the sheet.

Similarly, this is also true for JSON/XML mappings which do not complain when a mapped node is not present in the actual JSON/XML document

View original

3 replies

gabiservidone
Administrator
Forum|alt.badge.img+6

Hi Marc, 

I am taking a look at this, let you know when I have more. 


MarcelRoelofs
AIMMSian
Forum|alt.badge.img+5
  • AIMMSian
  • 106 replies
  • Answer
  • February 8, 2024

Hi @Marc Wingender 

DEX will iterate over all sheets in the workbook and will read the data if there is a mapping with either a name or name-binds-to attribute that matches the sheet.

Similarly, this is also true for JSON/XML mappings which do not complain when a mapped node is not present in the actual JSON/XML document


Forum|alt.badge.img+4
  • Author
  • AIMMS Partner
  • 13 replies
  • February 9, 2024

@MarcelRoelofs , thanks for the reply, this clarifies the behavior. We will seek for another approach to improve our checks.