[Product-Developers] [Plone 3.3/AT] ReferenceException: Invalid target UID

Andreas Jung lists at zopyx.com
Sat Mar 27 08:49:02 UTC 2010


Hi there,

I have a simple AT-based content-types with some reference fields.

When creating a new instance (using portal_factory) of the content-types and
choosing another Plone object as value for one of the reference fields I get
the following error.
(Creating the content first and filling the references later works..)...any
idea?

Using Plone 3.3.4/AT 1.5.14
------------------

DeprecationWarning)

2010-03-27 09:43:52 INFO Products.Gloworm PageTemplate.pt_render Monkey
patch
installed.
2010-03-27 09:43:52 INFO Products.Gloworm BaseOrderedViewletManager.render
monkey patch
installed.
2010-03-27 09:43:53 INFO PloneFormGen Patching plone.app.portlets
ColumnPortletManagerRenderer to not catch Retry
exceptions
2010-03-27 09:43:56 INFO Zope Ready to handle
requests

2010-03-27 09:44:04 ERROR Zope.SiteErrorLog 1269679444.040.182075148992
http://localhost:8080/s1/deisa-primer/portal_factory/AuthoringConversionFolder/authoringconversionfolder.2010-03-27.3817255093/atct_edit

Traceback (innermost
last):

  Module ZPublisher.Publish, line 119, in
publish

  Module ZPublisher.mapply, line 88, in
mapply

  Module ZPublisher.Publish, line 42, in
call_object

  Module Products.CMFPlone.FactoryTool, line 379, in
__call__

  Module ZPublisher.mapply, line 88, in
mapply

  Module ZPublisher.Publish, line 42, in
call_object

  Module Products.CMFFormController.FSControllerPageTemplate, line 90, in
__call__

  Module Products.CMFFormController.BaseControllerPageTemplate, line 28, in
_call

  Module Products.CMFFormController.ControllerBase, line 231, in
getNext

  Module Products.CMFFormController.Actions.TraverseTo, line 38, in
__call__

  Module ZPublisher.mapply, line 88, in
mapply

  Module ZPublisher.Publish, line 42, in
call_object

  Module Products.CMFFormController.FSControllerPythonScript, line 106, in
__call__

  Module Products.CMFFormController.ControllerBase, line 231, in
getNext

  Module Products.CMFFormController.Actions.TraverseTo, line 38, in
__call__

  Module ZPublisher.mapply, line 88, in
mapply

  Module ZPublisher.Publish, line 42, in
call_object

  Module Products.CMFFormController.FSControllerPythonScript, line 104, in
__call__

  Module Products.CMFFormController.Script, line 145, in
__call__

  Module Products.CMFCore.FSPythonScript, line 140, in __call__
  Module Shared.DC.Scripts.Bindings, line 313, in __call__
  Module Shared.DC.Scripts.Bindings, line 350, in _bindAndExec
  Module Products.CMFCore.FSPythonScript, line 196, in _exec
  Module None, line 1, in content_edit
   - <FSControllerPythonScript at /s1/content_edit used for
/s1/deisa-primer/portal_factory/AuthoringConversionFolder/authoringconversionfolder.2010-03-27.3817255093>
   - Line 1
  Module Products.CMFCore.FSPythonScript, line 140, in __call__
  Module Shared.DC.Scripts.Bindings, line 313, in __call__
  Module Shared.DC.Scripts.Bindings, line 350, in _bindAndExec
  Module Products.CMFCore.FSPythonScript, line 196, in _exec
  Module None, line 13, in content_edit_impl
   - <FSPythonScript at /s1/content_edit_impl used for
/s1/deisa-primer/portal_factory/AuthoringConversionFolder/authoringconversionfolder.2010-03-27.3817255093>
   - Line 13
  Module Products.Archetypes.BaseObject, line 663, in processForm
  Module Products.Archetypes.BaseObject, line 653, in _processForm
   - __traceback_info__: (<AuthoringConversionFolder at
/s1/deisa-primer/authoringconversionfolder.2010-03-27.3817255093>, <Field
publicationsFolder(reference:rw)>, <bound method
AuthoringConversionFolder.setPublicationsFolder of
<AuthoringConversionFolder at
/s1/deisa-primer/authoringconversionfolder.2010-03-27.3817255093>>)
  Module Products.Archetypes.utils, line 160, in mapply
  Module Products.Archetypes.ClassGen, line 76, in generatedMutator
  Module Products.Archetypes.Field, line 1851, in set
   - __traceback_info__: (<AuthoringConversionFolder at
/s1/deisa-primer/authoringconversionfolder.2010-03-27.3817255093>,
'371fba1d769085b9d37db4fb323645f3', ('371fba1d769085b9d37db4fb323645f3',),
[])
  Module Products.Archetypes.ReferenceEngine, line 326, in addReference
ReferenceException: Invalid target UID
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.plone.org/pipermail/plone-product-developers/attachments/20100327/07e1bfeb/attachment.html>


More information about the Product-Developers mailing list