DataExchange Library Release Notes
The first public release of the DataExchange library was version 184.108.40.206, release date July 10, 2020.
New Features and Bug Fixes
- 220.127.116.11 [21-08-2023]
String values read from or written to files can now be dynamically extended to 1 MB via the max-string-size attribute in a mapping
Extended support for reading/writing any JSON file using a pre-defined generic JSONAny/JSONAny mapping to support larger string-valued properties
Added functions to create/iterate any JSON document programmatically
- 18.104.22.168 [15-08-2023]
Writing a CSV or Parquet file in the project folder would generate an error
- 22.214.171.124 [03-08-2023]
OpenAPI methods with multipart request bodies would not set the type of mapped parts correctly in generated clients
Added support for reading/writing any JSON file using a pre-defined generic JSONAny/JSONAny mapping
- 126.96.36.199 [21-07-2023]
Add methods for accessing Azure Data Lake Storage
- 188.8.131.52 [18-07-2023]
AimmsParquetMappingsuch that the first argument of
dex::WriteToFile()can be interpreted as a folder containing a collection of CSV or Parquet tables
- 184.108.40.206 [13-07-2023]
Files written by DEX would become empty if external bindings were used, and any of the elements with internal element number 2 were removed from the index sets coming after the externally bound indices
- 220.127.116.11 [10-07-2023]
Sheets referring to defined sets depending on data read in from previous sheets, could lead to read errors because the defined sets were not up-to-date.
- 18.104.22.168 [03-07-2023]
InitializeAPIClientmethod of generated OpenAPI client libraries would not read mappings recursively, as is now required for concurrent support for JSON/XML mappings
The newly added
AdditionalQueryParametersparameter for generated OpenAPI client libraries would not work correctly for libraries generated with the
explodeDefaultargument set to 2.
- 22.214.171.124 [20-06-2023]
Add support for OpenAPI specs that require both XML and JSON mappings
Increase maximum transferable string size to 16 KB
Allow conversion of “true”/”false” string values to integer/double parameters
- 126.96.36.199 [16-06-2023]
write-defaultsattribute would incorrectly advance the data iterator when writing
- 188.8.131.52 [02-06-2023]
DEX build version is now properly reported in
dex::apirequest termination callbacks are now always logged
- 184.108.40.206 [01-06-2023]
AIMMS function to convert calendar element to date and vice versa would not function correctly for calendar subsets
- 220.127.116.11 [29-05-2023]
Make recursively included mappings more efficient during write
Add support for passing client id and secret to OAuth token service using basic authentication
Add support for task termination callbacks for the task REST service
Add support for reading and generating JWT tokens
- 18.104.22.168 [19-05-2023]
Single column CSV files would not be read correctly
Tasks that end in the
Finished with errorsstate, will now provide more detail in the status error message
Storing the task response in Azure Blob Storage would fail because of a missing
- 22.214.171.124 [08-05-2023]
The mapping attribute
binds-skip-non-existinghas been renamed to
skip-non-existing(but old name will remain for backward compatibility)
skip-non-existingattribute can have values 0 (raise error for non-existing elements), 1 (skip non-existing elements silently, default), or 2 (skip non-existing elements with runtime warning, new extension)
skip-non-existingattribute can both be used in conjunction with the
...-binds-existingattributes, but now also with the
- 126.96.36.199 [04-05-2023]
SAS URL generation could generate invalid SAS token depending on the UTC option settings of the AIMMS project
- 188.8.131.52 [02-05-2023]
Allow setting extra dataset attributes on indices.
Allow setting extra dataset attributes and suffix attributes via the string parameters
Create more meaningful generated names for unnamed JSON schema associated with media types in OpenAPI specs, based on where these schema are used
Add a method for generating Account SAS query strings for Azure Blob Storage
Add snappy compression to Parquet files generated by the DEX library
Make file transfer support in DEX more robust
- 184.108.40.206 [06-04-2023]
JSON schema parser ignored required status of properties in a JSON schema when writing using the generated mappings
- 220.127.116.11 [01-04-2023]
Fixed name length check for sheet names in Excel, and table and column names in databases
- 18.104.22.168 [31-03-2023]
Empty cells in an excel sheet of type string would return an exception when converted to a numeric value
Removing set elements from sets would result in inactive data being displayed in generated data files
Introduced new mapping attribute skip-empty-rows to skip empty rows in row-based mappings
- 22.214.171.124 [29-03-2023]
Add capability to generate and read/write to application databases from DEX mappings (whether manually created or generated from annotations), with support for SQLite, MySQL, PostgreSQL and SQLServer backends
dex::schema::ParseJsonSchemafailed because the mapping to generate an AIMMS library project file was not loaded.
- 126.96.36.199 [27-03-2023]
Allow JSON documents to expand relative JSON in place
Filter unnecessary parameter schema from generated OpenAPI client code
If possible, provide a more descriptive name for media type schema in generated OpenAPI client code
- 188.8.131.52 [22-03-2023]
Add support in DEX for keeping sessions alive for task REST service in cloud
- 184.108.40.206 [22-03-2023]
64-bits fields in a Parquet file could lead to runtime errors when exceeding
When converting string fields to numeric parameters in the model when reading Excel, partially successful conversions where unconditionally accepted potentially resulting in truncated numerical values. Now partially successful conversions are only accepted when the remainder of the string fields starts with a white space character
Data Exchange runtime errors when reading a file now print a context where the error occurred (e.g. Excel workbook, sheet, row and column)
Fix issue in JSON schema support where an array of arrays would result in a duplicate index in the generated library
- 220.127.116.11 [15-03-2023]
Missing columns in row-based formats that bind to an index are now reported as an error
The error message about mismatching dimensions has been extended with showing the currently bound dimensions
Mapping nodes with duplicate names are now reported as an error
Reading from files with filenames with special characters would fail on Windows
Error messages generated when reading specific row-based formats are now properly propagated and reported
- 18.104.22.168 [09-03-2023]
dex::ReadAllMappingsnow reads all mappings from the
- 22.214.171.124 [07-03-2023]
String fields in an Excel file mapped to a numeric field would be skipped; they are now converted when possible, or produce a runtime error otherwise
- 126.96.36.199 [28-02-2023]
Indices bound via
implicity-binds-toattribute would not always be carried over to parent node to allow usage in sibling nodes
- 188.8.131.52 [20-02-2023]
Trim normalization will now also trim FEFF BOM characters
Labels will be trimmed from FEFF BOM characters before being added to sets
- 184.108.40.206 [12-02-2023]
Dataset mappings generated now also include an Excel mapping that writes sheets regardless of whether or not data is available for that sheet
- 220.127.116.11 [07-02-2023]
Added support for XML request and response bodies in generated OpenAPI clients
- 18.104.22.168 [04-02-2023]
Added trimming leading and trailing spaces off strings as a new string normalization method.
- 22.214.171.124 [30-01-2023]
Empty procedures for JSON schema inadvertently omitted duplicate module prefixes when these occurred in generated identifier names to be emptied
- 126.96.36.199 [09-01-2023]
Data pages for identifiers in the DEX library could cause the extraction of
.aimmspackfiles to fail when the DEX library was included in the
.aimmspack. The publishing process of libraries to the library repository will now automatically remove all data pages.
- 188.8.131.52 [29-12-2022]
no-diacriticsas an additional normalization option next to
- 184.108.40.206 [27-12-2022]
ExcelRootNodefor outputting empty non
This release does no longer support AIMMS versions prior to 4.88
- 220.127.116.11 [05-12-2022]
OpenAPI client code now supports multi-part request bodies
..._itersets generated to add an extra dimension to identifiers for JSON array properties, are now a subset of
Issue a warning for
ColumnNodesin a row-based format mapping (CSV, Excel, Parquet) that cannot be mapped onto a column in a data source during read
dex::ReadFilecall in generated API callbacks to not stop the execution flow when reading faulty responses
- 18.104.22.168 [02-12-2022]
Optional query parameter arguments in generated API calls will only be added as query parameter to the URL if their value is non-default
dex::schema::GenerateClientFromOpenAPISpec()will now generate a library on disk, which can be directly included into your project. Using the generated runtime library directly was often problematic because it is impossible to create parameter with an index domain referring to indices from the runtime library or using sets from the runtime library in the range of element parameters.
Date fields from a Parquet file can now be translated to labels of a regular set, or as values of an element parameter with a regular set range.
- 22.214.171.124 [29-11-2022]
Tab characters in label names were not accepted and would cause a crash, all characters < 32 in label names are now replaced by spaces
- 126.96.36.199 [28-11-2022]
Prevent warning for string parameter passed as handle to external function
AimmsCSVMappingmappings would not accept iterative-reset attribute
Allow only a subset of mappings to be generated with
- 188.8.131.52 [24-11-2022]
Integer-valued headers in Excel files were represented with 5 decimals as a string
Improve double-to-string conversion in the JSON reader to generate the representation using the minimal number of decimals
Add arguments to
dex::client::AddMimePartfor adding headers and encodings to multi-part request bodies
Add support Decimal128, Date32 and Date64 Parquet data types in Parquet reader
Parquet reader would not read Parquet files correctly where not all columns were read into model identifiers
The generated sets
<schemaName>::Instancesare now subsets of the global set
dex::Instancesto make the use of the generated runtime libraries in the main model easier
The generated identifiers
<schemaName>::api::CookieValueare now also dependent on the set
- 184.108.40.206 [15-11-2022]
API keys passed via query parameters did not correctly end up in the URL in api call methods generated by DEX from an OpenAPI specification file
- 220.127.116.11 [11-11-2022]
Reading integer cells from Excel tables into string parameters was not handled correctly
Reading Parquet file containing columns with no data would cause a crash
- 18.104.22.168 [08-11-2022]
Boolean cells from Excel tables were not handled correctly
Improve reading number cells from Excel tables to string parameters, using the minimal number of decimals necessary
Set elements created from integer columns in a Parquet file would cause a crash
- 22.214.171.124 [04-11-2022]
Add methods for computing HMAC and SHA256 digests, base64(-url) encoding and decoding, and url encoding
Add support for binary request and response bodies
EmptyInstancemethods for all generated JSON schema
URL encode the argument values for path parameters in generated
- 126.96.36.199 [28-09-2022]
PATCH curl requests would not send a request body
Better handling of defaults in generated REST API client code to prevent uninitialized data warnings
- 188.8.131.52 [18-09-2022]
Initial release of the REST API client generator from OpenAPI specification files
- 184.108.40.206 [13-08-2022]
ColumnMappingtypes in all row-based mappings, regardless of
name-binds-toattribute. By default, all row-based formats will now leave non-default cells empty.
- 220.127.116.11 [11-08-2022]
Fix string to calendar conversion for CSV and Parquet reading
- 18.104.22.168 [03-08-2022]
Fix string to calendar conversion for Excel reading
- 22.214.171.124 [02-08-2022]
Sheets were read in alphabetical order instead of original order
Write-filter on Excel sheet names was lost during the row-based refactor
- 126.96.36.199 [22-07-2022]
Labels generated from Excel cells with integer values inadvertently contained decimals
- 188.8.131.52 [20-07-2022]
Values from evaluated cells with formulas in Excel files would not be read
- 184.108.40.206 [16-07-2022]
Allow name-binds-to attribute on
- 220.127.116.11 [09-07-2022]
All row-based formats (CSV, Excel, Parquet) refactored to a common code base w.r.t. the read/write logic
Internal: prepare for new build system
- 18.104.22.168 [01-07-2022]
OAuth2 ClientCredentials flow would only work on second try.
dex::PrefixAutoTableWithDatasetto add dataset names in auto-generated table names to prevent potential name clashes
- 22.214.171.124 [31-03-2022]
Conversion errors from string to int/double and int to binary are now passed on to the model instead of skipped.
- 126.96.36.199 [24-03-2022]
Sets in document mappings did ignore
- 188.8.131.52 [23-03-2022]
Labels were right trimmed, but not trimmed from the left.
- 184.108.40.206 [12-03-2022]
Prevent uninitialized warnings during
- 220.127.116.11 [07-02-2022]
Respect the ordering of
name-binds-toindex when writing.
- 18.104.22.168 [02-02-2022]
The maximum line length for CSV files is increased to 64KB.
- 22.214.171.124 [28-01-2022]
Runtime errors within a web service request handler would propagate to a controlling
- 126.96.36.199 [27-01-2022]
Limit Excel sheet names to 32 characters
Allow tables of scalars in AIMMS-generated data sets
Add support, through the
dex::AutoTablePrefix, for auto-generating tables names in AIMMS-generated data sets, based on index occurrence
- 188.8.131.52 [25-01-2022]
Introduced new mapping attribute write-defaults to determine whether for name-binds-to fields, default values will be explicitly written or omitted
Prevent an Excel sheet to be written when it contains no data
Allow write-filter on Excel sheets
- 184.108.40.206 [21-01-2022]
Empty cells in Excel sheet will read to default value, instead of skipping
Empty cells on the first row in Excel sheet will now be skipped, instead of terminating the column range being read
All labels will be right trimmed before adding the a set during read
- 220.127.116.11 [20-01-2022]
Add support for Parquet file format
When constructing a regular expression from the elements retrieved from
name-regex-from, special Regex characters will be escaped.
Regex search for
name-binds-toattributes will take place in a case-insensitive fashion, as set elements in AIMMS are also case-insensitive.
Field names offered for Regex search for a
name-binds-toattribute will first be right trimmed.
- 18.104.22.168 [17-01-2022]
Add support for the OAuth Authorization Code flow for WebUI applications on the PRO/CLoud platform (requires AIMMS 4.84 and PRO/Cloud 2.42)
name-regex-fromattributes for mapping files.
- 22.214.171.124 [02-01-2022]
Refresh token could exceed length of 1024 characters, leading to failed OAuth2 refresh token flow.
Added scope to token request.
- 126.96.36.199 [23-12-2021]
Add support for the OAuth2 Authorization Code and Client Credentials flows to the Data Exchange library. The Authorization Code flow will currently only function on AIMMS desktop sessions. The Client Credentials flow can be used both in desktop and cloud sessions.
- 188.8.131.52 [22-12-2021]
Rows in a CSV and Excel files with an empty value for a binding column would produce duplicate values for the last bound element. - Introduced the attribute
binds-skip-non-existingthat will determine whether to skip rows/objects with an non-existing (or empty) binding or to produce a runtime error.
- 184.108.40.206 [16-11-2021]
dex::ReadAllMappingswould read from a non-existing directory.
- 220.127.116.11 [31-10-2021]
Added support in Excel mappings to map date valued columns to calendars and calendar-valued element parameters.
- 18.104.22.168 [29-10-2021]
Unicode characters taking more than 2 bytes, would not be written correctly to CSV files.
- 22.214.171.124 [22-10-2021]
Introduced new annotation-based JSONDocument generator that creates a mapping for a standardized nested JSON document to read and write all data for a given collection of identifiers in a model.
iterative-resetcan now also specify a list of indices that needs to be reset at a particular node prior to handling all child nodes.
Introduced a new function
dex::ResetMappingDatato empty all identifiers, sets, and reset counters used in a particular mapping.
Changed the default of the
dex::ReadFromFilefunction from 1 to 0, to promote specification-based resetting of counters.
- 126.96.36.199 [13-10-2021]
Allow adding additional suffices to tables in datasets through
Allow specifying custom mapping attributes to identifiers contained in tables in datasets through the
Allow adding row filters for writing tables in datasets through the
Added the function
dex::DeleteMappingto delete previously added mappings. AIMMS would crash when mappings were deleted that contained runtime identifiers from a runtime library that was deleted prior to deleting the mapping.
- 188.8.131.52 [29-09-2021]
The Data Exchange
LibraryInitializationprocedure could crash some models running on the AIMMS Cloud platform
Excel sheets with additional columns without a header in the first row would crash in
- 184.108.40.206 [16-09-2021]
Add support for applying NFC/NFD normalizations to composed Unicode character both contained in the model, or when reading or writing an JSON, XML, CSV or Excel data source.
- 220.127.116.11 [15-09-2021]
When reading CSV files, guess the most likely delimiter
Read/write all values according to the identifier unit/selected convention
dex::ReadMappingsfunction to allow reading mappings from various locations
- 18.104.22.168 [13-09-2021]
Added new function
- 22.214.171.124 [26-07-2021]
dex::ExportStreamContentwould crash for streams bigger than 8 KB
Allow dex::ColumnName annotation to be set on separate index declarations
- 126.96.36.199 [16-07-2021]
Memory streams with binary content could be truncated prematurely when read.
- 188.8.131.52 [14-07-2021]
dex::client::GetResponseHeadersand other functions would not support arguments that are identifier slices.
- 184.108.40.206 [30-06-2021]
Allow memory streams to be read twice by
Allow double values in JSON documents to be read into string parameters
- 220.127.116.11 [28-06-2021]
Add support for dex::client request tracing
Allow reading integer and double values from JSON string properties.
Fixed crash in
dex::client::GetInfoItemswhen calling for string items with no result.
- 18.104.22.168 [23-06-2021]
- 22.214.171.124 [10-06-2021]
Prevent crash on program exit on Linux
- 126.96.36.199 [28-05-2021]
Updated REST service listener component that used a faulty concurrency setting, potentially leading to connectivity loss
- 188.8.131.52 [26-05-2021]
Added a DLL that was missing in the PROClient IFA on Windows, causing WinUI PRO sessions to fail
- 184.108.40.206 [17-05-2021]
Add a completely asynchronous Curl-based HTTP client to the DataExchange library, supporting all string- and integer-valued options provided by
Add a REST API server to the DataExchange library, allowing model procedures to become available through a REST API via simple model annotations.
ColumnMappingnames to be used in row-based formats such as CSV, Excel, and row- and column-oriented JSON mappings next to the mapping type-specific names available before. This allows for easier switching between various mapping types.
Allow string values up to 8 kB during data transfer with string parameters in the model. The default max string size is 1 kB, which can be changed via the
max-string-sizeattribute for particular string-valued nodes mapped onto AIMMS identifiers.
Add support for transferring sliced AIMMS data via
ExternalBindingmappings that bind indices to the value of an element parameter.
Allow nodes with an
included-mappingattribute to dynamically map the value of bound indices in the outer mapping to externally bound indices in the included mapping. This allows for splitting mappings into smaller constituting components.
Allow an index bound via the
binds-toattribute to become available higher up in a JSON/XML tree via the
Allow read filtering by skipping all data that cannot be bound to an existing element via the
- 220.127.116.11 [08-02-2021]
Introduce new RowOrientedObjectNode and ColumnOrientedObjectNode for JSON mappings, that are both faster and more compact.
max-string-sizeattribute to allow string parameters to hold strings of up to 8KB (default 1KB).
When mapping from/to JSON, the memory used for storing the JSON object in memory would not be returned to the system.
- 18.104.22.168 [17-08-2020]
The library could crash when writing to a workbook with a duplicate sheet name.
- 22.214.171.124 [12-08-2020]
The library could crash because of using a different version of the
libxl.dll(used to actually read and write to Excel files) than the AimmsXLLibrary.
- 126.96.36.199 [06-10-2020]
Added support for reading from and writing to tables in sheets in Excel workbooks
Added support for automatically generating standard Data Exchange mappings from model annotations
Added new mapping attributes
- 188.8.131.52 [27-07-2020]
Name attributes used at mapping locations where no name is needed for a child element are now warned against when reading a mapping
Name-regexattributes used at mapping locations where no name is needed for a child element now result in an error
Boolean values in a JSON file are now correctly mapped onto integer, double and string parameters. During a write the value will be output according to the AIMMS storage type.
- 184.108.40.206 [23-07-2020]
Changed name of
force-denseto indicate that attribute is not only used during write.
- 220.127.116.11 [21-07-2020]
Upgraded internally used library because of performance issue
- 18.104.22.168 [10-07-2020]
Initial public release of the DataExchange library