Home > Ask the Domino Experts > Web Development and Downloads Questions & Answers > Web agent cannot extract attachment
Ask The Domino Expert: Questions & Answers
EMAIL THIS

Web agent cannot extract attachment

Jens Bruntt EXPERT RESPONSE FROM: Jens Bruntt

Pose a Question
Other Domino Categories
Meet all Domino Experts
Become an Expert for this site


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


>
QUESTION POSED ON: 24 May 2005
I am trying to execute an agent on the Web that can extract an attachment on a document to a particular path using "Call notesEmbeddedObject.ExtractFile( path$ )." But it is not extracting any attachment. When I look in that particular path, no error is returned. The same agent works fine on a Lotus Notes client. Here is part of the code:

If ( rtitem.Type = RICHTEXT ) Then
Forall o In rtitem.EmbeddedObjects

If ( o.Type = EMBED_ATTACHMENT ) Then
   Call o.ExtractFile _
   chemin &Cstr(Day(whennow)  
& Month (whennow)  & Right(Year(whennow),2)  
&"-" & Hour(current) & Minute(current) )&".html") 

   nomfichier=( chemin &Cstr(Day(whennow)  
& Month(whennow)  & Right(Year(whennow),2)  
&"-" & Hour(current) & Minute(current) &".html")) 
    
End If
   
End Forall

Can you help me discern the problem? FYI, when I put a "print o.name," it does return the name of an attachment. It is only the extracting part which is not working.


>
I assume that we are talking about Domino 6.5+ here. It sounds like a problem that has to do with agent execution rights. On the agent properties of your agent, is the agent running as web user? If it is running as web user, then your web user needs to be mentioned in the "Run unrestricted methods and operations" field on the server documents. If the agent is not running as web user, then the agent signer (the person who saved the agent last) needs to have these rights.

Finally, again on the properties of your agent, you need to have a look at the property called "Set runtime security." This needs to be set to 2 or 3. . .probably 3.

All these security features are there to make sure that the right to access the file system of your Domino server is only made available to users when they really need to have it.

Do you have comments on this Ask the Expert question and response? Let us know.


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED CONTENT
Web Development and Downloads
Programmatically copy and hide attachments in Lotus Notes rich-text fields
Programmatically edit a rich-text field table from within the Lotus Notes client
Troubleshooting Lotus Notes Domino tabbed table problems
Verify Lotus Notes user access to Web pages
Can LotusScript agent display search results using specific view?
Creating Word doc from form works in Notes 5.0.2 but not 5.0.11
XML vs. JavaScript to fill in dropdown on form
Debugging Web agents
Configure an IM hot spot on Web page
Can I use PHP to change tables in MySQL DB running off Domino?

Lotus Notes Domino Agents
Quickly scan all databases on a Lotus Domino server
How the Agent Profiler tool improves Notes/Domino performance
Run or restart Notes/Domino agents via text messages
Calculating results for a column in a Lotus Notes view
Approve Lotus Notes documents using a BlackBerry mobile device
LotusScript agent indexes Lotus Notes/Domino databases
Top 10 Lotus Notes/Domino coding and development tips of 2008
Open documents in Lotus Notes from the Web without a UNID
Fix and update Lotus Notes documents with limited access
Verify scheduled agent status with Domino Extensible Language (DXL)

Web Development for Lotus Notes Domino
Trap JavaScript runtime errors in Domino Web apps
Write HTML and JavaScript in Notes view rows and columns on the Web
JavaScript detects Web browser type and version in Notes/Domino 8.0.2
Top 10 Lotus Notes/Domino coding and development tips of 2008
Top 10 issues when developing Lotus Notes Domino Internet applications
Top 10 Lotus Notes Domino programming and development tips of 2007
Programmatically copy and hide attachments in Lotus Notes rich-text fields
Programmatically edit a rich-text field table from within the Lotus Notes client
Troubleshooting Lotus Notes Domino tabbed table problems
How to validate Lotus Notes forms on a Domino server without losing entered data

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary



Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice



Lotus Notes Domino on Blackberry and mobile devices
HomeTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersDomino IT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 1999 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts