Community

Connect with us and enhance your M-Files experience using Unitfly Toolkit for M-Files. Here’s how to get started.

Notifications
Clear all

[Solved] Create a document object without template. Just creating the document from the source we trigger from.

0
Topic starter

Hi

I trying to create a object using object creation without a template. I getting this information in the log:


System.Runtime.InteropServices.COMException (0x80040001): The parameter is incorrect. (One source file must be specified when creating a single-file document.)

CoVaultObjectOperations.cpp, 2663, The parameter is incorrect. (One source file must be specified when creating a single-file document.) (0x80070057)

So I know I need to specify which document should created. Setting property "Document" by referencing on the source document dont work. How can I solve this?

Have you an example?

The usecase is simple: We want to copy the document to another class. And there are more usecases we like to implement.

Kind regards
Steve

2 Answers
0

Hi @steve-hagenbring,

can you, please, send us a screenshot of your configuration rule so we can investigate further what is the issue here. 

Kind regards,

Nina

0
Topic starter

Hi Nina

I had the wrong configuration. I need to set the type "FromTemplate" with the template "Source". So this fullfill our requirement.

Thank you.

Kind regards
Steve

 

Answer

WATCH THE WEBINAR

Introducing AI Document Kit: Add-on for AI-driven Document Management