ThingWorx Edge C SDK > Error Codes > Primitive and InfoTable Errors
Primitive and InfoTable Errors
The following table lists the errors related to the data structures, twPrimitive and twInfoTable, and their supporting functions. It also provides suggestions for troubleshooting. For more information about these data structures, refer to twPrimitiveStructure and twInfoTable.
* 
When creating an infotable, keep in mind that the twInfoTableRow structure must contain the field values of the Data Shape in the same order as in the Data Shape.
Code
Message
Troubleshooting
400
TW_ERROR_ADDING_DATASHAPE_ENTRY
An error occurred while attempting to add an entry (field) to the Data Shape.
401
TW_INDEX_NOT_FOUND
Attempted to access a non-existent field from a row in an infotable. The index value must be less than the number of fields defined in the Data Shape.
402
TW_ERROR_GETTING_PRIMITIVE
The function twInfoTable_GetPrimitive failed to retrieve the requested primitive from the infotable.
403
TW_INVALID_BASE_TYPE
The specified base type is not valid. Check the spelling in your code, or select a different base type. For a table of the available base types, refer to Base Types
Was this helpful?