Hello Thomas- Thank you for the quick reply. Yes, I understand the error itself. Makes sense, but it just seems odd that you cannot dynamically just set the dimensions, like in C\AL. Meaning, I don't have to do the steps 1-4. Here is my code in C\AL. IF hasDimensions = TRUE THEN BEGIN // reset flag hasDimensions := FALSE; // set new dimensions get the set id first DimensionRec.GetDimensionSetID(DimensionRec); DimSetID_L := dimCodeUnit.GetDimensionSetID(DimensionRec); fieldNo := lineRec.FIELDNO("Dimension Set ID"); field := lineref.FIELD(fieldNo); field.VALUE := DimSetID_L; DimensionRec.DELETEALL; END; I think what my problem is that I'm not matching the dimensions up? How would you determine what shortcut belongs to what? I have 8 right by default? And I have Shortcut_Dimension_1_Code, Shortcut_Dimension_2_Code, etc... to 8 in C#. I'm pretty sure I'm setting them in the right order. Is there a way to know for sure in any tables? I just feel like I'm missing something here. Like I'm trying to set Dim 1 with Dim 2 values, etc... or Dim 3 with Dim 4 values? That would explain the message. Thanks
↧