web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to read File Conte...
Power Automate
Unanswered

How to read File Content from Model Driven App and Create a Note with attachment

(0) ShareShare
ReportReport
Posted on by 9

Hi Community

 

Recently i have been trying to work over the a scenario to move a attachment uploaded in File - (data type) of attribute to Notes Entity in Dynamics CRM

 

Steps followed :-

  • Created a Model Drive App
  • Created a new attribute of data type - FILE , added the same on form
  • On Create, i need to move the file attached in attribute to NOTES entity in Dynamics CRM


  • Created a flow 
  • Get the records
  • Get the file Content
  • And on creation of NOTE record with File Content facing Hexadecimal error
  • Tried converting the file content to binary and still facing the issue

 

Error message :-

{
  "error": {
    "code""0x80040278",
    "message""Invalid character in field 'document body': '\u0012', hexadecimal value 0x12, is an invalid character.",
    "@Microsoft.PowerApps.CDS.ErrorDetails.ApiExceptionSourceKey""Plugin/Microsoft.Crm.ObjectModel.AnnotationService",
    "@Microsoft.PowerApps.CDS.ErrorDetails.ApiStepKey""753b8615-ecd8-db11-b397-0019b9204da9",
    "@Microsoft.PowerApps.CDS.ErrorDetails.ApiDepthKey""1",
    "@Microsoft.PowerApps.CDS.ErrorDetails.ApiActivityIdKey""b4fbd92c-a517-4141-8380-1d759052fbc5",
    "@Microsoft.PowerApps.CDS.ErrorDetails.ApiPluginSolutionNameKey""System",
    "@Microsoft.PowerApps.CDS.ErrorDetails.ApiStepSolutionNameKey""System",
    "@Microsoft.PowerApps.CDS.ErrorDetails.ApiExceptionCategory""ClientError",
    "@Microsoft.PowerApps.CDS.ErrorDetails.ApiExceptionMesageName""InvalidCharactersInField",
    "@Microsoft.PowerApps.CDS.ErrorDetails.ApiExceptionHttpStatusCode""400",
    "@Microsoft.PowerApps.CDS.InnerError.Message""Invalid character in field 'documentbody': '\u0012', hexadecimal value 0x12, is an invalid character."
  }
}

 

Tried converting to BINARY as well as Placing the content directly
PowerAutomate.JPG

 

 

 

 

Categories:
I have the same question (0)
  • Verified answer
    Sumit.icfai196 Profile Picture
    9 on at

    Got the solution.. and it works perfectly fine.. 

    Just need to convert the file to base64()

  • Community Power Platform Member Profile Picture
    on at

    After converting file to base64() I get this error when opening the pdf from the notes. Any ideas on why and how to resolve it? 

     

    ssanthosh94_0-1629397766712.png

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard