6 Replies Latest reply: Aug 3, 2015 10:15 PM by Kaixiang Zhang RSS

    QMC:   An exception occurred while trying to populate task properties.

      Hi Community,

      Recently I've faced a problem of impossibility to publish QVW-documents through QMC (System version QV Server 11 SR2) using standard way - add reload task:

       

      An exception occurred while trying to populate task properties. See log for more detailed information.

      QMC-Error.jpg

       

      Daily log contains repetitions of following error (twice a minute message):

      21.08.2013 13:49:57.1480185InformationFailed to send message to execution service. Message is removed from queue. Error details : System.Exception: Failed to load because item with ID b1e8407a-e409-98b2-48ac-e7418cfaf7f8 does not exist.

         в QVPRXML.QVPRXMLStorage.Load(QVPRItem io_QvprItem, QVPRXMLTransaction io_QvprXmlTransaction)

         в QMSBackendCore.Domain.Tasks.DocumentTask.get_SourceDocument()

         в QMSBackendCore.Domain.Resources.DistributionServiceResource.<SendSaveAllTasks>b__19(DocumentTask x)

         в System.Linq.Enumerable.WhereListIterator`1.MoveNext()

         в System.Linq.Enumerable.<OfTypeIterator>d__aa`1.MoveNext()

         в System.Linq.Enumerable.<UnionIterator>d__88`1.MoveNext()

         в System.Linq.Enumerable.<UnionIterator>d__88`1.MoveNext()

         в System.Linq.Enumerable.<UnionIterator>d__88`1.MoveNext()

         в System.Linq.Enumerable.<UnionIterator>d__88`1.MoveNext()

         в System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()

         в System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)

         в System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)

         в QMSBackendCore.Domain.Resources.DistributionServiceResource.SendSaveAllTasks()

         в QMSBackendCore.QDSPostBox.QDSMsgSaveAllTasks.SendMessage()

       

      Earlier posts concerned the problem (Re: Scheduled jobs not running, Event Viewer Windows Logs, Application Error Message) advises to restore QVPR backup, but the question is: how to find appropriate backup because there was a lot of documents were deployed before the exception had risen.


      In my case the solution is to find orphaned IDs (b1e8407a-e409-98b2-48ac-e7418cfaf7f8, etc) through QVPR (e.g. QV Power Tools XMLDBViewer) and remove records it contains from DocumentTask.xml:
      <DocumentTask Name="Reload and Distribute of ***.qvw" ...

           SourceDocumentID="b1e8407a-e409-98b2-48ac-e7418cfaf7f8"

      ...

           VersionID="0c2bc28e-d7ef-43c7-bdae-953a68b80109" ID="088ddcd2-3051-4eb5-9517-0e264491da2d" ... />

      Also check dependent IDs persistence.