Dynamic Mapped Drive

Home Page Forums BizTalk 2004 – BizTalk 2010 Dynamic Mapped Drive

Viewing 1 reply thread
  • Author
    Posts
    • #16024

      I'm new to BT2006 and have run into a slight problem. I've written an Orch with an Expression Shape.

      In the Shape is the floowing code to set a dynamic port

      //Set FileName

      SupplierCode = System.Convert.ToString(POIn(PSSSchemas.PropertySchema.SupplierCode));

      OrderNumber = System.Convert.ToString(POIn(PSSSchemas.PropertySchema.BuyersOrderNumber));

      This works…  POOutPort(Microsoft.XLANGs.BaseTypes.Address)= "FILE://C:/POBiztalk/OUT/" + SupplierCode + "/O" + OrderNumber + ".xml";

      This Doesnt…POOutPort(Microsoft.XLANGs.BaseTypes.Address)= "FILE://PSS04787/POBiztalk/OUT/" + "/O" + OrderNumber + ".xml";

      PSS04786 is a network drive.

    • #16026

      Is your host running under an account with permission to write to that location?

       

      What error are you getting?

      • #16030

        Thanks for the reply.

        The error I am getting is as follows

        The FILE send adapter cannot open file PSS04787/POBiztalk/OUT/O1264519.xml for writing.
         Details: The system cannot find the path specified.
         

        Host is running as domain\myuser

        PSS04784/POBiztalk/OUT is same as c:/POBiztalk/OUT

         

        • #16048

          I think that error is usually a security / per missions issue.  Might want to make sure that user has full control of the location. 

           

          You could always log into BizTalk server with that user and try to navigate to the share – just to see if it works.

          • #16091

            I finally got it to work…..I had to use the format

            @"FILE//\\ServerName\DataDirectory\"

            i.e 

            SupplierCode = System.Convert.ToString(POIn(HSSSchemas.PropertySchema.SupplierCode));

            OrderNumber = System.Convert.ToString(POIn(HSSSchemas.PropertySchema.BuyersOrderNumber));

            POOutPort(Microsoft.XLANGs.BaseTypes.Address)= @"FILE://\\BiztalkMitcham\Data\PO\OUT\" + SupplierCode + @"\O" + OrderNumber + "TEST.xml";

Viewing 1 reply thread
  • The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.