Hi everyone,
I’m creating a custom report in Report Designer where my main data source is INTran.
The goal is to display item-related details from InventoryItem such as InventoryCD and PICKSEQ_Attributes.
When previewing the data, the InventoryID field in INTran looks like a string for example, it shows values like 3033-70 but technically, it’s stored as an integer foreign key (int) that points to InventoryItem.InventoryID.
This led me to think I could join using InventoryItem.InventoryCD, which is a string (nvarchar) field containing user-facing item codes like “3033-70”.
However, when I try a relation like:
<RelationRow> <ChildField>InventoryCD</ChildField> <ParentField>InventoryID</ParentField> </RelationRow>
or even attempt a conversion with:
<CalculatedField Name="INTranInventoryCD" DataType="String"> <Value>=CStr([INTran.InventoryID])</Value> </CalculatedField>
I get errors such as:
“The report cannot be opened because it includes a field (INTranInventoryCD) that does not exist.”
What I’ve Observed
-
INTran.InventoryID→ int, but the displayed value looks like a string (e.g., “3033-70”). -
InventoryItem.InventoryID→ int, true primary key. -
InventoryItem.InventoryCD→ string (nvarchar), human-readable item code. -
Joining by
InventoryCDdoesn’t work due to type mismatch.
Thanks in advance!

