title: full path as the filename
body: <p>Maybe someone knows a simple solution to my problem. 
  I do not know the entry of the file so it's not a static value. 
  It can be changed through the BizTalk gui and there we have a URI through the receiveport. But I do not believe it's accessible that easy. What I want to do is write out the full path as the filename. It works well with the messageID where the file is given a specific filepath name. But the Path-Name where the file was dropped is not working that well.
  I keep getting this error : </p>
  
  <p>Message:
  Object reference not set to an instance of an object.</p>
  
  <p>the message resource is present but the message is not found in the string/message table
  -Does not say me much</p>
  
  <p>Below you can see a snip from my code</p>
  
  <pre><code>internal static string UpdateMacroPathProperty(IBaseMessage baseMessage, string macroPathProperty, string macroDefsFile)
  {
     if (macroName == "MessageID")
     {
        contextPropertyValue = baseMessage.MessageID.ToString();
     }
     else if (macroName == "SourceFileName")
     {               
        contextPropertyValue = Directory.GetCurrentDirectory();
     }
  }
  </code></pre>
  
  <p>This is an specific created pipeline. Has anyone encountered this problem or can point me in the right way. </p>
  
  <p>I know that BizTalk has a built in function for this, <a href="https://social.technet.microsoft.com/wiki/contents/articles/8823.biztalk-server-list-of-macros.aspx" rel="nofollow noreferrer">BizTalk Server: List of Macros</a> as the <code>%SourceFileName%</code> but I'm trying to save this as logs in a specific map structure so that it does not get processed. </p>