File CHECKIN - ex.message: The parameter is incorrect (Exception from HRESULT: 0x80070057 (E_INVALIDARG))

File CHECKIN - ex.message: The parameter is incorrect (Exception from HRESULT: 0x80070057 (E_INVALIDARG))

Alvee_sbt
Participant Participant
92 Views
0 Replies
Message 1 of 1

File CHECKIN - ex.message: The parameter is incorrect (Exception from HRESULT: 0x80070057 (E_INVALIDARG))

Alvee_sbt
Participant
Participant

Intro: This winform application checks out some files from Vault 2025, then changes its few parameters in Inventor 2025, and checks in the files to Vault. (in Vault 2024 and Inventor 2024, it was working fine. Later we move to version 2025 and facing the issues)

 

Problem: After creating an .exe (published) for other users to install, it throws exception and Message is-

Alvee_sbt_1-1745983880031.png

 

Goal: Winform application to checkin files to Vault 2025 using Inventor 2025. 

Code to update drawing and checkin file-

// on the development machine, everything works fine
revTableLastRow[RevTableColumnTitle.DESCRIPTION].Text = drawingRevisionInfo.Description;
revTableLastRow[RevTableColumnTitle.DATE].Text = drawingRevisionInfo.Date;
revTableLastRow[RevTableColumnTitle.DESIGNER].Text = drawingRevisionInfo.Designer;

// On published .EXE file, this line does not print and caller function receives an exception- HRESULT: 0x80070057 (E_INVALIDARG)
Console.WriteLine("Part revision table row is added with values.");

document.Activate();
application.CommandManager.ControlDefinitions["VaultCheckinTop"].Execute2(true);
            
Console.WriteLine(document.DisplayName + " drawing file and its assembly/part Check In is completed!");


Note: With the above code-

I can debug through the code (step over), it does checkin the files.

I run the .exe (published version) on the development machine, it does checkin the files.

 

It only fails in the .exe (published) file in other computers and does not checkin files. 

Is it something to do with other computer permission/configuration/admin rights/etc.?

What could be the solution for this error? I can not get to see eventviewer.

 

Thanks!

@CGBenner please kindly point this post to correct direction.

0 Likes
93 Views
0 Replies
Replies (0)