Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
gcarvac
168 Views, 2 Replies

ILogic Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL)) after SaveAs

I have an external ILogic rule:

Dim PartNumber As String = iProperties.Value("Project", "Part Number")
Dim doc = ThisDoc.Document
Parameter("GSS_SortCode") = PartNumber.Substring(0,3)
doc.Save

When I SaveAs a document, I get 

gcarvac_0-1721351079989.png

gcarvac_1-1721351089943.png

 

My guess is that is is because ThisDoc refers to the document where I clicked SaveAs, and the ILogic rule is triggered to run after save and therefore on the new document?