Commits

Anthony Tuininga  committed 95801d8

If the parent item is not generating a key, do not attempt to set the
referenced items either; otherwise an error occurs when attempting to find the
generated key during later processing.

  • Participants
  • Parent commits 26d0739

Comments (0)

Files changed (1)

File ceDataSource.py

     def CreateRow(self, dataSet, row):
         referencedItems = []
         referencedItem = self.itemsByRow.get(dataSet.contextItem)
-        if referencedItem is not None:
+        if referencedItem is not None \
+                and referencedItem.returnType is not None:
             referencedItems.append(referencedItem)
         args = dataSet._GetArgsFromNames(dataSet.insertAttrNames, row)
         if dataSet.updatePackageName is not None: