Skip to main content

Hi All,

 

I am trying to add a file to sharepoint. If I give a relative url with a hardcoded filename then file is adding to sharepoint.

/Documents/new.txt

However If I give the relative url by reading filename through a variable

"/Documents/" ++ vars.fileName

 

I am getting below error

Message : Input type not supported yet.

com.mulesoft.connectors.sharepoint.internal.error.exception.SharepointException: Input type not supported yet.

 

Please help

6 respostas
  1. 12 de abr. de 2022, 18:40

    Hi Tulasi,

     

    It seems that the problem is not around the file name only.

     

    This is not right :

       <sharepoint:file-content-stream>#payload</sharepoint:file-content-stream>

     

    I think this one is correct:

    <sharepoint:file-add doc:name="File add" doc:id="4a0364bd-262c-4333-90f3-1151ab8bcd8f" config-ref="Sharepoint_Sharepoint_online" fileServerRelativeUrl="#['/Documents/' ++ vars.fileName]">

    <sharepoint:file-content-stream ><![CDATA[#payload]]></sharepoint:file-content-stream>

    </sharepoint:file-add>

     

    Good luck!

0/9000