Schema Error

Viewing 1 reply thread
  • Author
    Posts
    • #18150

      Hi All,

      I have created a schema in BTS containing field element as FileName and FilePath and also promoted them in order to send there value to the .net method for some implementation upto this its working fine but now i have added two more field elements in it,they are FileCreatedDate and FileCreatedTime and promoted them also but now its showing error when i am trying to send these values to other .net method.

        Error:- A failure occurred while evaluating the distinguished field FileCreatedTime against the message part data. The message part data does not contain at least one of the nodes specified by the XPath expression (listed below) that corresponds to the distinguished field. The cause for this error may be that the message part data has not been initialized or that the message part data does not conform to the message part schema. Ensure that the message part data is initialized correctly. XPath expression: /*[local-name()='FileMetaData' and namespace-uri()='http://ReceiveMail.FileMetaData'%5D/*%5Blocal-name()='FileCreatedTime' and namespace-uri()=''].

      I have generated the instance properly but i have taken the data type of both FileCreatedDate and FileCreatedTime as string only.

      For FileCreatedTime i am assigning the values as shown below.

       FileCreatedTime = MessageIn(FILE.FileCreationTime);

      Please give me some idea of how to solve this error. Thanks in Advance.

    • #19219

      In case you hadn’t figured it out already…

      1. MessageIn(FILE.FileCreationTime) will return a System.DateTime object. Thus, FileCreatedTime must be created as a System.DateTime variable.
      2. FILE.FileCreationTime will only have a value when using a FILE port.
Viewing 1 reply thread
  • The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.