Process Mapping Logo

Process Mapping - Forums

Sharing 19 years of knowledge and experience

 
Metastorm BPM forums
Sign up Latest Topics
 
 
 


Reply
  Author   Comment  
TiredDeveloper

Member
Registered:
Posts: 23
Reply with quote  #1 
Hi,

I have a Command button on a Form which calls the line of code

string NewFile = NewAttachment(ProcessContext.FolderId,Local.FileName,Local.PathName);


I enter a valid filename and pathname on the Form, but receive an error message like the following when I click on my command button.


Details:Failed to execute deployed method 'WhenChanged', using entity 'Command1'. Could not find a part of the path 'P:\My Documents\Excel\IP Data.xlsx'.


Any ideas what this message means?  I've used NewAttachment in previous developments and cannot see from the error message what 'part of the path is missing'. 
0
BMellert

Guru
Registered:
Posts: 688
Reply with quote  #2 
Off hand, nothing obvious, but a few things to consider:
* is the P: drive local to the engine service / server?
* does the full path exist P:\My Documents\Excel?
0
TiredDeveloper

Member
Registered:
Posts: 23
Reply with quote  #3 
Hi,

In the end I gave up on the command button idea and instead opted to use a single clip on the form to act as a placeholder before inserting the eKey of the attachment into a new table where I could also hold the required Metadata I needed to store too.  It's a bit contrived but appears to work.

Regards,
TD

0
Previous Topic | Next Topic
Print
Reply

Quick Navigation:


Create your own forum with Website Toolbox!