Skip to main content

Notifications

Power Automate - General Discussion
Unanswered

Error on Sharepoint and OneDrive

(0) ShareShare
ReportReport
Posted on by 173

Trying to do a simple attachment from email and save to OneDrive and I am getting this error:

 

Unable to process template language expressions in action 'Create_file' inputs at line '1' and column '2319': 'The template language function 'base64ToBinary' expects its parameter to be a string. The provided value is of type 'Null'. Please see https://aka.ms/logicexpressions#base64ToBinary for usage details.'.

 

 

In reality i am trying to do something far more comprehensive but in working backwards involving just going to onedrive and trying to eliminate variables this is the error i am getting.  It was working fine as of two days ago. Just looking to see if anyone is having similar issue. 

Categories:
  • v-yuazh-msft Profile Picture
    v-yuazh-msft on at
    Re: Error on Sharepoint and OneDrive

    Hi @ emckinney81,

     

    Could you please share a screenshot of the configuration of your flow?

     

    I have made a test on my side, and don’t have the issue that you mentioned.

    Please make sure you have set the “Has Attachment” field and the “Include Attachments” field to “Yes”.

     

    If you set the “Has Attachment” field and the “Include Attachments” field to the default value “No”, the error would occur as you as screenshots below:

    1.png

    Or if you set the “Has Attachment” field to “Yes” and set the “Include Attachments” field to “No”,the error would occur as you as screenshots below:

     2.png

    The screenshot of my flow as below:

     3.png

    When an email with attachment arrives, the flow would run successfully as below:

     4.png

     

    Regards,
    Alice Zhang

  • Eric McKinney Profile Picture
    Eric McKinney 173 on at
    Re: Error on Sharepoint and OneDrive

    Troubleshooting 101: Check the most obvious, didn't have send attachments turned on. I assumed it was on by default. 

  • Eric McKinney Profile Picture
    Eric McKinney 173 on at
    Re: Error on Sharepoint and OneDrive

    A little more information, I compared my failed flows to my succeeding flows from a couple days ago. I highlighted where it detects I have an attachment but it is making the content-bytes null where it expects a string. It clearly lists the size in the body below.  I also tried sending from Webmail and Outlook. I tried PDF's, Word Docs, Excel files, nothing seems to be going through. 

     

    {
      "Id""AAMkADk4YTg3YWFjLTgzZjUtNDNiYi04ZThmLTNmZDI0ZDllOTdlZgBGAAAAAADOLSqaAgzaQZDEWl2rvpWEBwB1SrX4n2BmTL1BH31CZ41OAAAG6HFhAACFXNhLr1eRSrPo7UifxpZKAAD3xM_rAAA=",
      "DateTimeReceived""2018-03-06T23:51:36+00:00",
      "HasAttachment"true,
      "Subject""test",
      "BodyPreview""",
      "Importance"1,
      "ConversationId""AAQkADk4YTg3YWFjLTgzZjUtNDNiYi04ZThmLTNmZDI0ZDllOTdlZgAQADeJ4XWwhlBDs4blA0u9z14=",
      "IsRead"false,
      "IsHtml"true,
      "Body""<html>\r\n<head>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\r\n<meta content=\"text/html; charset=iso-8859-1\">\r\n<style type=\"text/css\" style=\"display:none\">\r\n<!--\r\np\r\n\t{margin-top:0;\r\n\tmargin-bottom:0}\r\n-->\r\n</style>\r\n</head>\r\n<body dir=\"ltr\">\r\n<div id=\"divtagdefaultwrapper\" dir=\"ltr\" style=\"font-size:12pt; color:#000000; font-family:Calibri,Helvetica,sans-serif\">\r\n<p style=\"margin-top:0; margin-bottom:0\"><br>\r\n</p>\r\n</div>\r\n</body>\r\n</html>\r\n",
     
      "Attachments": [
        {
          "@odata.type""#Microsoft.OutlookServices.FileAttachment",
          "Id""AAMkADk4YTg3YWFjLTgzZjUtNDNiYi04ZThmLTNmZDI0ZDllOTdlZgBGAAAAAADOLSqaAgzaQZDEWl2rvpWEBwB1SrX4n2BmTL1BH31CZ41OAAAG6HFhAACFXNhLr1eRSrPo7UifxpZKAAD3xM_rAAABEgAQABLrfkWwJIlAkPLep_hf3EU=",
          "Name""ColRoutes.xlsx",
          "ContentType""application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
          "Size"41231,
          "ContentBytes"null
        }
      ]
    }
     
    ActionFailed. An action failed. N

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,304

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,703

Leaderboard