Alerts on failure when using Watched Folder method of PDFG.
how to send alerts if PDFG fails to create PDF file via the Watched Folder service
When you create your watch folder endpoint, you have to map some of the input variables for your process to a file pattern.
This will take the file matching the pattern and put it in that variable. Now the variable type needs to be the right type to receive the file.
From your error, it looks like you're trying to put a PDF file in a xfaForm variable, which wouldn't work. You need to put the PDF in a document variable.
So, make sure in your process that you have an input document variable. Then in your watch folder configuration, when you map your input varibale to a file pattern, make sure you select literal and a pattern like *.pdf
Jasmin
Similar Messages
-
Please can someone help me to solve the error message "Could not activate cellular data network: PDP authentication failure"when using 3G or GPRS on safari with an iphone 4GS and latest software updates. I have tried resetting the network and phone settings. I have restored the factory settings on itunes and still the problem persists.
All iPhones sold in Japan are sold carrier locked and cannot be officially unlocked by the carrier. If you unlocked it, it was by unauthorized means (hacked), and support cannot be given to you in this forum.
Hacked iPhones are subject to countermeasures by Apple, particularly when updating the firmware. It is likely permanently re-locked or permanently disabled.
Message was edited by: modular747 -
InDesign automation using watch folder
Hi InDesign experts,
Can we use InDesign desktop version (CS5) for a remote batch processing work without any manual intervention?
For example, a script automatically picksup the input file and create pages automatically using watch folder. Is this allowed in desktop license agreement.
Thanks in advance.Marc,
Power Switch is available for both platforms. Trial period is 30 days.
Here are some topics I recommend you to read at start in the User Guide: JavaScript for applications,
AppleScript for applications and Adobe InDesign. Here are some samples (see Javascripts for CS applications).
If you, or somebody else is interested, I can post the script I wrote.
Here are a few short tips to get you started:
Don’t confuse Javascript/AppleScript for CS applications with Internal scripting in PowerSwitch (scripts written in SwitchScripter). You need the former: the script attached to an InDesign/Photoshop/Illustrator/Acrobat/Quark/etc configurator. You drop a configurator into the flow, attach In and Out folders and a script to it.
You can add up to 5 arguments which are simple strings that can be passed from the Properties panel in PS to the script.
Attach the script to Command property. Don't use Open and Save in the script -- PS handles them on its own (Open and Save as parameters)
Use $doc in the script instead of activeDocument
If you had any questions, I would gladly answer them. Probably we could even start a new thread on the Power Switch topic.
Kasyan -
Hi, I'm having problems with watched folder endpoint.<br /><br />I have a very simple process which consists of one activity - assign task and I want to start this process by copying a PDF to specified folder. I've added a watched folder endpoint for this process and it automatically created appropriate sub folders (input, result, failure etc.).<br /><br />The problem starts when I copy a PDF file to the input folder. LiveCycle picks up the file but the process doesn't start. PDF gets moved to the failure folder and the failure.log shows the reason:<br /><br />ALC-DSC-119-000: com.adobe.idp.dsc.util.InvalidCoercionException: Cannot coerce object: <document description here> of type: com.adobe.idp.Document to type: class com.adobe.idp.taskmanager.form.impl.xfa.XFARepositoryFormInstance<br /><br />What am I doing wrong?<br /><br />Thanks<br />Bartek
When you create your watch folder endpoint, you have to map some of the input variables for your process to a file pattern.
This will take the file matching the pattern and put it in that variable. Now the variable type needs to be the right type to receive the file.
From your error, it looks like you're trying to put a PDF file in a xfaForm variable, which wouldn't work. You need to put the PDF in a document variable.
So, make sure in your process that you have an input document variable. Then in your watch folder configuration, when you map your input varibale to a file pattern, make sure you select literal and a pattern like *.pdf
Jasmin -
Random Authentication Failures when using AdminConnectionFactory
Has anyone experienced this problem when using the AdminConnectionFactory to create a JMXConnector. I have a Sun ticket open on this issue, but wanted to see if anyone else had any suggestions. Ticket # is 72502922
Our application uses the Sun AdminConnectionFactory to obtain a JMXConnector object. The code is being executed in a loop at a regular frequency. There is no dynamic nature to the code. All the information required to open a connection using the AdminConnectionFactory comes from static property files. So there is no question of one call being any different than a second call.
Every so often the call to create a connection fails with the exception message:
Cannot create JMXConnector to JMS server [jmssys.putnaminv.com:7683] using username [JMXMetricsClient.User] and password [XXX]
at com.putnam.jms.jmx.JMXUtil.<init>(JMXUtil.java:146)
at com.putnam.jms.metrics.core.MetricsRetrievalJob.run(MetricsRetrievalJob.java:58)
at com.putnam.jms.metrics.core.MetricsRetrievalJob.execute(MetricsRetrievalJob.java:37)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:529)
Caused by: javax.management.JMException: Caught exception when creating JMXConnector
at com.sun.messaging.AdminConnectionFactory.createConnection(AdminConnectionFactory.java:219)
at com.putnam.jms.jmx.JMXUtil.<init>(JMXUtil.java:138)
... 4 more
Caused by: java.lang.SecurityException: JMX connector server jmxrmi: Failure detected during authentication java.security.AccessControlException: [B4043]: Connection not authenticated
at com.sun.messaging.jmq.jmsserver.management.agent.MQJMXAuthenticator.authenticate(MQJMXAuthenticator.java:125)
at javax.management.remote.rmi.RMIServerImpl.doNewClient(RMIServerImpl.java:213)
at javax.management.remote.rmi.RMIServerImpl.newClient(RMIServerImpl.java:180)
at sun.reflect.GeneratedMethodAccessor60.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305)
at sun.rmi.transport.Transport$1.run(Transport.java:159)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255)
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:142)
at javax.management.remote.rmi.RMIServerImpl_Stub.newClient(Unknown Source)
at javax.management.remote.rmi.RMIConnector.getConnection(RMIConnector.java:2312)
at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:277)
at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:248)
at com.sun.messaging.AdminConnectionFactory.createConnection(AdminConnectionFactory.java:217)
... 5 more
The code to create a connection using the AdminConnectionFactory is straight forward:
JMXConnector jmxc = null;
try {
AdminConnectionFactory acf = new AdminConnectionFactory();
acf.setProperty(AdminConnectionConfiguration.imqAddress, hostname + ":" + port);
jmxc = acf.createConnection(user, password);
} catch (JMSException jmse) {
message = logMsgPrefix + "Cannot create JMXConnector to JMS server [" + hostname + ":" + port + "] using username [" + user + "] and password [" + password + "]";
log.error(message);
throw new GenericJMXException(message, jmse);
} catch (JMException jme) {
message = logMsgPrefix + "Cannot create JMXConnector to JMS server [" + hostname + ":" + port + "] using username [" + user + "] and password [" + password + "]";
log.error(message);
throw new GenericJMXException(message, jme);
What is causing this connection creation to fail. The same application will work just fine a few minutes later.
Thanks
Aspi Engineer
Putnam InvestmentsThank you for the response.
Bug 6906978 is a defect that shows itself under high concurrency situations. In our case, we have a single quart based timer that is being triggered every 2 minutes to open a JMX connector. So my guess is that bug 6906978 and the problem that we have been experiencing are two different things.
But I am willing to try out 4.4U1P1. Any idea where I can download it from?
- Aspi -
There is no printer output when using the PrintOut method
I have a VB6 app with CR XI, and a customer found a situation that when printing a report directly to the printer using the PrintOut method, there is no printer output or error message.
Some reports using the same code print normally, but a report that is preceded by another print call, presents this behavior.
And when the output is directed to the screen, we can see the report.
Could someone give me an idea of what is the problem?
Thanks,
Isis
SP - Brazil
The code used is below:
Set rpt = applic.OpenReport(App.Path & "SEFoto" + TipoRPT + ".rpt")
rpt.FormulaSyntax = crCrystalSyntaxFormula
rpt.FormulaFields.GetItemByName("Empresa").Text = "'" + Company + "'"
rpt.FormulaFields.GetItemByName("Idioma").Text = "'" + Idioma + "'"
rpt.FormulaFields.GetItemByName("Versao").Text = "'" + Versao + "'"
' ... Some lines to compose the selection formula
rpt.RecordSelectionFormula = Cond
' To evaluate the image length:
Arq = rsTMP3!FT_Arquivo
ImageScaling = FatorDeReducao(Arq, "F")
' To reduce the image length:
AchouOLE = False
For Each oSection In rpt.Sections
For Each oObject In oSection.ReportObjects
If oObject.Name = "PictureFoto" Then
Set oOleObject = oObject
AchouOLE = True
Exit For
End If
Next oObject
If AchouOLE Then Exit For
Next oSection
With oOleObject
.Suppress = True
.XScaling = ImageScaling ' 0.5 = 50%, 1 = 100%
.YScaling = ImageScaling
.Suppress = False
End With
Aguarde.Show 1
If DestinoRel = 9 Or DestinoRel = 1 Then ' Padrão ou impressora
rpt.PrintOut True ' <<<---- Here using true or false nothing happens
Else
PrintRPTtela rpt, "Fotos" ' <<<--- Here it works fine
End IfHi Isis,
Not sure if you have applied any service Packs to CR? If please do so and test again. Then you can upgrade to CR XI R2 for free, use your XI Keycode and download Service Pack 4 from this link:
https://smpdl.sap-ag.de/~sapidp/012002523100011802732008E/crxir2_sp4_full_build.exe
You'll find the distribution files for your app also from that same download area.
If you don't want to upgrade to XI R2 then download all patches from XI and test again. This issues rings a bell that it may have been fixed.
Thank you
Don -
File names get jumbled when using Add Folder to Library
I have a set of .mp3 files created by playing vinyl LPs into a software sound recorder. Each of these is named with a number as the first two characters of the file name (the track number) and then the name of the song.
I create the appropriate folder with the ArtistName and subfolder with the AlbumName in the Itunes directory and then copy the .mp3 files into the subfolder.
My problem occurs when I 'Add Folder to Library'. The .mp3 files don't change, but the names of the tracks listed in the Itunes library are goofed up. There is no strict pattern, but mainly it shows the 3rd track having the 2nd track's name, the 4th track has the 3rd track's name, etc. I have to go back and rename all the tracks to make the Itunes Library match the actual .mp3 files. (I can tell they are mis-assigned by the file sizes).
It might be a Windows-only thing, I'm not sure. Any idea how I can make the Itunes Library match its index to the actual files added when importing? Or is there some other technique I should use to import these .mp3 files?
It is possible it is related to the fact that that initially the internal data in the .mp3 files merely shows 'Freecorder' for the Album and Artist in every file.
Where can I report this as an 'official' bug to Apple?
Gregg Cattanach
Message was edited by: GreggCattanachActually, your suggestion was somewhat helpful. It wasn't the 'Freecorder' in the Artist and Album slots. But when I look at the properties of the files generated by Freecorder in Windows Explorer, it appears the internal file names are being mis-matched with the actual .mp3 file names, so it's Freecorder that's creating the problem.
Interesting. OK, It looks like it isn't an Itunes problem after all. But it's easy enough to edit the internal properties tags (Windows Explorer/ Right-Click / Properties / Summary) before I add the folder to Itunes.
Thanks.
Message was edited by: GreggCattanach -
Print PDFs using watched folder
Hi,
I am new to Adobe livecycle. I created webservice which generates PDFs in a folder. I want to set that folder as a watch folder and want to print PDFs generated in specific interval. Basically it should figure out if there are any new PDFs and print it to the network printer. I could able to figure out how to set up a watch folder using existing services as a endpoint for watch folder, but none of the exixting services serves exact purpose of printing PDFs from folder. So I am stuck. How should I proceed? Can I create my own process and register it and use it as a end point for watched folder? If yes then how?
Can somebody help me?
Thanks!Everything is a service in LiveCycle so, yes, generatePrintOuput is a service.
You can create a new process with Workbench (e.g. TestPrint). Then add the generatePrintedOutput step and a print step (from the Output category). Then save and activate your new process. This will become a new service (TestPrint) which you can add an watchfolder endpoint to.
Then drop the file in the watch folder for that new service (TestPrint) and the service will call generatePrintedOutput and print.
Jasmin -
Error occurs when using DBDataSource.SetValue method in sales order
Is it possiable to use the DBDataSource.SetValue method to update a cell in the Sales Order document
My code , but I am getting an error
Dim oDBDataSource As SAPbouiCOM.DBDataSource
oDBDataSource = oform.DataSources.DBDataSources.Item("RDR1")
oDBDataSource.SetValue("Price", 1, "111.22")
The following code works, but I do not want to use it because the cursor need to move to the cell before changing the value.
oMatrix.Columns.Item("14").Cells.Item(RowNum).Specific.value = 111.22
Sincerely yours
Riade AslehWell , I do not want to do it this way
I want to change the value using the setvalue method of the DBDatasource Object
I want to avoid the cursor from going to the cell for update or read.
Refer to orignal question (first question)
Sincerely yours
Riade Asleh -
JDBC connection pool failures when used by JMS stores
We are using WebLogic 6.1 sp2. We defined a separate connection pool for use by
a JMS Store.
<JDBCConnectionPool Name="sybaseJMSPool"
Targets="cluster00"
InitialCapacity="2"
MaxCapacity="10"
DriverName="com.sybase.jdbc2.jdbc.SybDriver"
Properties="[email protected]@;[email protected]@;charset=utf8"
URL="jdbc:sybase:Tds:@jms.db.host@/@jms.db.name@"/>
(note that the @xxx@ string are replaced by actual values).
We are using Sybase Jconnect 5.5 to a Sybase ASE 12.5 database.
We deployed this configuration on a number of environments (testing, staging,
..). The actual hardware and network configuration is different for the different
system, but the WebLogic domain stays the same regarding this issue.
On the test system we frequently get the following exceptions:
<Aug 13, 2002 1:56:04 PM CEST> <Alert> <JMS> <www00-test> <node00>
<ExecuteThread: '6' for queue: 'JMS.TimerClientPool'> <> <> <040048>
<JMSServer "JMSServer00", store failure while writing message for topic
OrderChangeTopic, java.io.IOException: JMS JDBC store, connection pool =
<sybaseJMSPool>, prefix = <JMS00>: write failed
java.sql.SQLException: JZ006: Caught IOException:
com.sybase.jdbc2.jdbc.SybConnectionDeadException: JZ0C0: Connection is already
closed.
at com.sybase.jdbc2.jdbc.ErrorMessage.raiseErrorCheckDead
(ErrorMessage.java:715)
at com.sybase.jdbc2.tds.Tds.handleIOE(Tds.java:3124)
at com.sybase.jdbc2.tds.Tds.cancel(Tds.java:1412)
at com.sybase.jdbc2.tds.Tds.cancel(Tds.java:1341)
at com.sybase.jdbc2.jdbc.SybStatement.doCancel(SybStatement.java:564)
at com.sybase.jdbc2.jdbc.SybStatement.updateLoop(SybStatement.java:1672)
at com.sybase.jdbc2.jdbc.SybStatement.executeUpdate
(SybStatement.java:1625)
at com.sybase.jdbc2.jdbc.SybPreparedStatement.executeUpdate
(SybPreparedStatement.java:91)
at com.p6spy.engine.logging.P6LogPreparedStatement.executeUpdate
(P6LogPreparedStatement.java:179)
at weblogic.jdbc.pool.Statement.executeUpdate(Statement.java:293)
at weblogic.jms.store.JDBCIOStream.write(JDBCIOStream.java:1246)
at weblogic.jms.store.StoreRequest.doTheIO(StoreRequest.java:250)
at weblogic.jms.store.JMSStore.execute(JMSStore.java:182)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
.>
java.io.IOException: JMS JDBC store, connection pool = <sybaseJMSPool>, prefix
= <JMS00>: write failed
java.sql.SQLException: JZ006: Caught IOException:
com.sybase.jdbc2.jdbc.SybConnectionDeadException: JZ0C0: Connection is already
closed.
at com.sybase.jdbc2.jdbc.ErrorMessage.raiseErrorCheckDead
(ErrorMessage.java:715)
at com.sybase.jdbc2.tds.Tds.handleIOE(Tds.java:3124)
at com.sybase.jdbc2.tds.Tds.cancel(Tds.java:1412)
at com.sybase.jdbc2.tds.Tds.cancel(Tds.java:1341)
at com.sybase.jdbc2.jdbc.SybStatement.doCancel(SybStatement.java:564)
at com.sybase.jdbc2.jdbc.SybStatement.updateLoop(SybStatement.java:1672)
at com.sybase.jdbc2.jdbc.SybStatement.executeUpdate
(SybStatement.java:1625)
at com.sybase.jdbc2.jdbc.SybPreparedStatement.executeUpdate
(SybPreparedStatement.java:91)
at com.p6spy.engine.logging.P6LogPreparedStatement.executeUpdate
(P6LogPreparedStatement.java:179)
at weblogic.jdbc.pool.Statement.executeUpdate(Statement.java:293)
at weblogic.jms.store.JDBCIOStream.write(JDBCIOStream.java:1246)
at weblogic.jms.store.StoreRequest.doTheIO(StoreRequest.java:250)
at weblogic.jms.store.JMSStore.execute(JMSStore.java:182)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
at weblogic.jms.store.JDBCIOStream.throwIOException
(JDBCIOStream.java:1213)
at weblogic.jms.store.JDBCIOStream.write(JDBCIOStream.java:1256)
at weblogic.jms.store.StoreRequest.doTheIO(StoreRequest.java:250)
at weblogic.jms.store.JMSStore.execute(JMSStore.java:182)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
Before that this message appeared:
<Aug 13, 2002 11:31:16 AM CEST> <Error> <ConnectionManager> <www00-test>
<node00> <ExecuteThread: '26' for queue: 'default'> <> <> <000000>
<Closing: 'weblogic.rjvm.t3.T3JVMConnection@795af6' because of: 'Server
received a message over an uninitialized connection: 'JVMMessage from: 'null'
to: '-4555218188801970213S:192.168.13.1:[7001,7001,7002,7002,7001,7002,-
1]:ADIS:node00' cmd: 'CMD_REQUEST', QOS: '101', responseId: '1',
invokableId: '287', flags: 'JVMIDs Not Sent, TX Context Not Sent', abbrev
offset: '34'''>
This problem did not occur on another system which was used during a 2 day stress
testing session.
It seems that the problem occurs after a period in which no user request where
made. The user requests trigger EJB's that start sending JMS messages.
When the problem occurs, the JMS messaging systems seems to lock up as no messages
are received anymore by the different listeners (MDBs).
Undeploying and redeploying the JBDC connection pool solves the problem. This
solution is unacceptable in case of a production system.
A similarly defined connection pool, which is used by the EJBs to make database
connection, does not manifest this problem.
<JDBCConnectionPool Name="sybasePool"
Targets="cluster00"
InitialCapacity="10"
CapacityIncrement="5"
MaxCapacity="50"
PreparedStatementCacheSize="150"
DriverName="com.sybase.jdbc2.jdbc.SybDriver"
Properties="[email protected]@;[email protected]@;JCONNECT_VERSION=6;charset=utf8"
URL="jdbc:sybase:Tds:@db.host@/@db.name@"/>
The JDBC connection pool is used as follows by the JDBC store
<JMSJDBCStore ConnectionPool="sybaseJMSPool" Name="JDBCStore00" PrefixName="JMS00"/>
<JMSServer Name="JMSServer00" Store="JDBCStore00" Targets="node00">
<JMSTopic JNDIName="ADIS.JMSError" JNDINameReplicated="false" Name="ErrorTopic"/>
<JMSTopic JNDIName="ADIS.Status"
Name="StatusTopic" RedeliveryDelayOverride="300000"/>
<JMSTopic JNDIName="ADIS.OrderChange" JNDINameReplicated="false"
Name="OrderChangeTopic" RedeliveryLimit="3"/>
</JMSServer>
Turning on the "Test Reserved Connection" with a appropriate test table does not
help.
Some sources on the internet tell us that JZ0C0 errors in the Jconnect driver
can be related to network problems. Nevertheless the connection pool should be
able to cope with this.
Can you provide any solution for this ? Or give us hints what can cause the problem
Zhenhao Qi wrote:
thanks! Joe.
The SQL statement itself can no longer be simplified, the long excuation time is due to the database size and complicated Select criteria. I can easily reproduce the problem by using this SQL. I tried "BEA's Oracle driver (Type 4): Version 8.1.7,9.0.1,9.2.0". the question can be dissect into 2 pieces:
1) why the jdbc connection (using oracle.jdbc.OracleDriver) won't return anything if the SQL execution time > 5min, that is probably the Oracle's problem
2) why the occupied connection pool won't release even I set "Statementtimeout=600", this is Weblogic's problem.
ZhenhaoHi. Yes, (1) is oracle's problem. (2) may also be. The JDBC spec has very few
allowances for one thread to interrupt a second thread's JDBC call. If we
transmit your timeout request by calling setQueryTimeout() on the oracle
statement, and if you have a weblogic-controlled transaction we call
Statement.cancel() on any ongoing statement, we end up relying on whether
the Oracle driver implements and responds to those calls.
Are you doing weblogic-controlled transactions? Are you/can you
call Statement.setQueryTimeout() on your statements, or are these
generated JDBC queries?
If you can duplicate the problem using the weblogic.jdbc.oracle.OracleDriver
we have some other debug avenues. This would be good even if you really
want to use the thin driver, because we will do the same JDBC calls to
either driver, and the debug would prove (if) we set up a query timeout
and if we call cancel(). If we do, then we can know that it is the Oracle
driver failing in these regards.
Joe -
COM Exception when using DocumentSet.Create() method
I am trying to create a Document Set in a library that's in a different site collection from the one the user is logged in to (and where the code is executing), and I'm getting the following error:
Stack Trace:
[COMException (0x81070e97): <nativehr>0x80004005</nativehr><nativestack></nativestack>Updates are currently disallowed on GET requests. To allow updates on a GET, set the 'AllowUnsafeUpdates' property on SPWeb.]
Microsoft.SharePoint.Library.SPRequestInternalClass.UpdateFileOrFolderProperties(String bstrWebUrl, String bstrWebRelativeUrl, Object varProperties, Int32 fMigrationSemantics, Int32 fReGhost, Byte& piLevel) +0
Microsoft.SharePoint.Library.SPRequest.UpdateFileOrFolderProperties(String bstrWebUrl, String bstrWebRelativeUrl, Object varProperties, Int32 fMigrationSemantics, Int32 fReGhost, Byte& piLevel) +170
[SPException: Updates are currently disallowed on GET requests. To allow updates on a GET, set the 'AllowUnsafeUpdates' property on SPWeb.]
AIR_Shared_Elements.NewContentFolderRedirect.NewContentFolderRedirect.OnLoad(EventArgs e) +1743
System.Web.UI.Control.LoadRecursive() +66
System.Web.UI.Control.LoadRecursive() +191
System.Web.UI.Control.LoadRecursive() +191
System.Web.UI.Control.LoadRecursive() +191
System.Web.UI.Control.LoadRecursive() +191
System.Web.UI.Control.LoadRecursive() +191
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2428
Even though this exception gets thrown by the DocumentSet.Create() method, a document set with the correct name is created in the right place. It just doesn't have the correct properties, and it looks to me by the stack trace that what SharePoint is
choking on is the part of the process where it updates the properties of the newly created document set.
Now, the exception says I need to allow unsafe updates on the web, but that's already happening. I'm running the code with elevated privileges, and allowing unsafe updates on the remote web that is the parent web to the list where I'm trying to
create the document set.
Here is some pseudo code showing the process:
protected void MoveContentFolder()
try
SPSecurity.RunWithElevatedPrivileges(delegate
// reach into the other site collection
using (SPSite site = SPContext.Current.Site.WebApplication.Sites["other/sitecollection/url"])
using (SPWeb remoteWeb = site.OpenWeb())
remoteWeb.AllowUnsafeUpdates = true;
// find the document library we want
SPList remoteLib = remoteWeb.Lists[libraryName];
if (remoteLib != null)
// get a reference to the library's root folder where we want to put the document set
SPFolder libraryRoot = remoteLib.RootFolder;
// get the library's local copy of the doc set's content type ID
SPContentTypeId docLibMatchId = GetCTypeIdFromList(myDocSetCTypeParentID, remoteLib);
// set properties and name parameters for the Create() method
System.Collections.Hashtable properties = some_properties;
string name = "a name";
// create the doc set in the remote library
DocumentSet newDocSet = DocumentSet.Create(libraryRoot, name, docLibMatchId, properties, false);
// return to a different page
Page.Response.Redirect("some/other/url"));
else
throw new ArgumentNullException("remoteLib", "The document library specified could not be found.");
remoteWeb.AllowUnsafeUpdates = false; }
catch (Exception ex)
throw ex;
So does anyone know what's going on here? Why is an exception being thrown that says I need to allow unsafe updates when I already am allowing unsafe updates? Why is part of the document set creation process working, but the part where the doc
set item's properties are being set fails?
Thanks!Hi Dylan,
While creating a DocumentSet from code, SharePoint need to UpdateFileOrFolderProperties by calling COM. In the call, SharePoint may need to update some settings. But these updates are not allowed from Get request. That is why the issue happens.
Based on my experience, the issue generally happens when updating HttpThrottleSettings. Update HttpThrottleSettings from a web request(GET) is not allowed.
In this case, you can check from the ULS log, if there is error related to HttpThrottleSettings when "Updates are currently disallowed on GET requests. " happened. If so, please execute the following PowerShell from SharePoint 2010 Management Shell at first:
$web = get-spwebapplication http://nameofproblemwebapp
$web.HttpThrottleSettings
$web.Update()
If you have any more questions, please feel free to ask.
Thanks,
Jinchun Chen
Jinchun Chen
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact tnmff AT microsoft.com(Please replace AT with @) -
Unwanted Database Lock when using CAF BO method 'update'
Hi all
We are using the Composite Application Framework (CAF), and Business Objects (BOs) to save data on the database. A service call is using a BO ‘Update’ method as follows:
_location.debugT("Test debug line 4");
getBOSalesDataService().update(salesData);
_location.debugT("Test debug line 5");
The same method is then called by another service, while the first service is still active. It does not error, but it waits until the first service has timed out. You can see this from the following screenshot:
I think this is because the first service sets a lock on the SQL database. This is not an explicitly coded lock, but a database lock. I’ve tried using the following statement:
getBOSalesDataService().unlock(salesData.getKey(), IBusinessObjectNodeServiceBase.MODE_WRITE);
It doesn’t work. I think this because the lock was not created by a ‘lock’ statement. Are there any other statements I can use to commit
all database updates? If it was ABAP, I would use a ‘COMMIT WORK’, is there a Java / CAF equivalent?
I have spoken to our Basis consultants, they have shown me Solution Manager where we can actually see the locks happening. Session ID 53
is the first update, 54 is the second.
Thanks
IwanFor updates you actually need a lock to avoid inconsistencies.
the lock should automatically be released when the JTA transaction is completed - in the case of CMP EJBs when the first service is finished... -
Conversion failure when using PDF Pack to convert a publisher file
Up until the last few months, I used acrobat 8 to convert my church's newsletter from Publisher to PDF for posting on our church website. When we switched to Windows 8 in January my Acrobat 8 couldn't be installed. We just registered for the PDF pack with the yearly subscription fee and I have tried twice to convert our most recent newsletter. Both time the conversion failed with the second time sending the message that the file was too complex or too large to convert.
What do I need to do to make Acrobat XI as least as capable as Acrobat 8 in converting publisher files?Hi eec hampton,
Adobe PDF Pack and Acrobat XI are two different things. PDF Pack is an online service, whereas Acrobat XI is a much more current version of the Acrobat that you had on your computer until recently.
There is a file size limit to the files that you convert with PDF Pack (100MB), but even when a file falls below that file size, the complexity of the file (how much text and graphics, and so on) can cause conversion failure. (You could be dealing with bandwidth issues, for example, as the file is uploaded to the Internet for conversion.)
One option it to convert smaller portions of the newsletter. You can also download a free 30-day trial of Acrobat XI from www.adobe.com/products/acrobat.html, and convert your publisher document using that.
Please let us know how it goes.
Best,
Sara -
System copy error when using DB depending methods
Hi,
I would like to do a system copy to transfer the database instance to another host.
My current system is ERP6.0 under NW 7.0 SR3 with DB2 9.1.7.
The kernel level is 7.20 REL running under windows 2003 R2 enterprise version.
I used the SPM 1.0 with database depended methods.
An error occurred when processing Grant Database Privileges On Tables under execute process.
Refer to below error taken from sapinst.log:
UPDATE COMMAND OPTIONS USING S OFF
DB20000I The UPDATE COMMAND OPTIONS command completed successfully.
UPDATE COMMAND OPTIONS USING A OFF
DB20000I The UPDATE COMMAND OPTIONS command completed successfully.
UPDATE COMMAND OPTIONS USING X ON
DB20000I The UPDATE COMMAND OPTIONS command completed successfully.
UPDATE COMMAND OPTIONS USING O OFF
ERROR 2014-08-05 14:41:39.29
MDB-01999 Error occured, first error is: <SQL0104N An unexpected token "" was found following ")". Expected tokens may >
ERROR 2014-08-05 14:41:39.169
MUT-03025 Caught ESAPinstException in module call: .
ERROR 2014-08-05 14:41:39.279
FCO-00011 The step drop_saptools with step key |NW_ABAP_DB|ind|ind|ind|ind|0|0|NW_CreateDBandLoad|ind|ind|ind|ind|createdbandload|0|NW_Postload|ind|ind|ind|ind|postload|0|NW_Postload_DB6|ind|ind|ind|ind|db6|0|drop_saptools was executed with status ERROR ( Last error reported by the step: Error occured, first error is: <SQL0104N An unexpected token "" was found following ")". Expected tokens may >).
INFO 2014-08-05 14:41:39.372
Creating file C:\Program Files\sapinst_instdir\BS2005\ERP60SR3\LM\COPY\DB6\SYSTEM\DISTRIBUTED\AS-ABAP\DB\__instana_tmp.xml.
INFO 2014-08-05 14:41:39.841
Removed file C:\Program Files\sapinst_instdir\BS2005\ERP60SR3\LM\COPY\DB6\SYSTEM\DISTRIBUTED\AS-ABAP\DB\instslana.xml.
INFO 2014-08-05 14:41:39.841
Creating file C:\Program Files\sapinst_instdir\BS2005\ERP60SR3\LM\COPY\DB6\SYSTEM\DISTRIBUTED\AS-ABAP\DB\instslana.xml.Hi Maria,
I backup the DB2 V9.1 using offline & restore it in V9.7 and then it will success when processing Grant
Database Privileges On Tables under execute process.
Thanks. -
Transcoding Failure when using H.264 (3x crash service down)
I am compressing a video for the web. The original video is 720P DVCPro HD 23.98fps with exactly 2 minutes and 30 seconds length. I'm trying to compress it down to 480x270 (16:9) with H.264 using Compressor 3.0.1. For some reason it keeps on giving me this Failure with error code (3x crash service down). Any help in resolving this problem. Thanks
hey L. Steele. Thanks for the info. I was finaly able to solve the problem. For some reason Compressor doesn't like DVCPro HD's frame and pixel size. This is what I did to resolve this issue. First the problem. When I bring in DVCPro HD media into Compressor, it is recognizing it as 960x720, which is correct but FCP handles it properly and views it as 1280x720 for that widescreen look. When I compress it as 50% source, it outputs the video as 480x360 which results in squashed picture. If I select custom 16:9, to get to 480x270, it gives me those errors. To solve this issue, I exported out of quicktime as 10-bit uncompressed HD file which resulted in 1280x720 pixel. I brought that back into compressor and it finally worked. I was able to get 480x270.
Maybe you are looking for
-
Multiple Certs for multiple domains on one server
Is it possible with WLS6 and WLCS3.5 to serve up multiple domains with their own certificates? i.e. https://www.foo.com and https://www.bar.com on the same box.
-
Problems with PS and AU with CC
Hi, I am very annoyed with CC!!!! Before, I used the trial of PS and changed to CC when the trial was finished. I've bought CC but I still cannot use PS!!!!!! Every time I open it, it asked my about serial number!!!! I know there is no serial number
-
Hi, I'm trying to fix the orientation of an UIImage in my app (iPad 2, iOS 7). I'm using the method described here: https://gist.github.com/alex-cellcity/1531596, but a huge memory spike appears when CGContextDrawImage is called. The image size I'm t
-
Hey there, Im new to hashmaps (I always felt fine using Arrays for the simple scripts i made thusfar). Now I have a list that lookst like this: Word > synomym1, synonym 2 Word2 > synomym1, synonym 2 etc... How do I construct the Hashmap for this purp
-
Can Apple TV connect to air play via Bluetooth
Can you use airplay via Bluetooth or can it only be used via a wifi connection?