Data Standards 2018.3.1 - Error on saving new part after 3.1 update

Data Standards 2018.3.1 - Error on saving new part after 3.1 update

Nathan
Participant Participant
332 Views
1 Reply
Message 1 of 2

Data Standards 2018.3.1 - Error on saving new part after 3.1 update

Nathan
Participant
Participant
Data Standards 2018.3.1 - Error on saving new part after 3.1 update

 

Since updating Data Standards to 2018.3.1 we are experiencing an error when saving a new part after completing the Data Standards options.  I have turned on some tracing in the dsDiag window and on completing the Data Standards window I see the following

 

Shot 1.pngCompleted Data Standards WindowShot 2.pngError on clicking OK

Then on clicking OK I get the following

 

 

Shot 2.pngError after OK

I know what the powervault error is, this is just the powervault module is not present on this test machine, but is on my profile.

I also get the below in the DataStandardInventorLog

 

2019-01-22 11:47:04,306 [3] ERROR dataStandard.InvAddIn.InventorNewCustomProperty - Error in InventorNewCustomProperty.Save for Property: SOCS FinishSystem.ArgumentException: The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))
at System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData& msgData)
at Inventor.PropertySet.Add(Object PropValue, Object Name, Object PropId)
at dataStandard.InvAddIn.InventorNewCustomProperty.Save()

 

The function being called giving this message is the following

 

function set_ProjectSubgroupNumField
{
try
{
$NumCtl = @()
$NumCtl = $dsWindow.DataContext.NumSchemeCtrlViewModel

#$dsDiag.Trace(" NumSchmFields[3] Name: "+ $NumCtl.NumSchmFields[3].Name)
$i = 0
$numschmField3 = $null

$numschmField3 = $NumCtl.NumSchmFields | where { $_.Name -eq "Project Subgroup" }
#$dsDiag.Trace(" Project Subgroup Field Value: "+ $numschmField3.Value)
$numschmField3.Value = $Prop["Project Subgroup"].Value
#$dsDiag.Trace(" Project Subgroup Field Value After: "+ $numschmField3.Value)
$NumCtl.NumSchmFields.RemoveAt(3)
$NumCtl.NumSchmFields.Insert(3,$numschmField3)
}
catch 
{
[System.Windows.MessageBox]::Show($error,"set_ProjectSubgroupNumField Error (Inventor Window)")
}
}

 

Can anyone help?

 

Many thanks

Nathan Poulton

0 Likes
333 Views
1 Reply
Reply (1)
Message 2 of 2

wangdu
Collaborator
Collaborator

Hi Nathan Poulton,

 

I think you have two issues.

  • Error dialog: You are probably accessing a property with a name that doesn't exist. Are you sure that "Project Subgroup" exists?
  • Log error: This seems like after clicking the ok of the Error dialog, the save is running into issues where a custom property cannot be saved: maybe because of incompatible value type. You could start excluding the datetype properties initially to slowly hunt the property down that is in running into error.

Hope it helps!

 

Wangdu

 

coolOrange

www.coolOrange.com

0 Likes