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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Encodian Populate a Wo...
Power Automate
Unanswered

Encodian Populate a Word Doc object reference not set to an instance of an object

(0) ShareShare
ReportReport
Posted on by 375

Hi all,

 

I am trying to pass in some JSON to the Encodian word populator but keep getting an error.

I don't know what I'm looking for so was hoping someone might be able to help with this.

 

I have taking all the image attachments on a SharePoint list item and put them into an array. Joined them together into a string separated by a comma delimitator and then put them into the JSON. The JSON and the error are below.

 

Error:

{
 "statusCode": 400,
 "headers": {
 "Pragma": "no-cache",
 "Request-Context": "appId=cid-v1:0dacbed6-da67-4d12-94b4-2378f6427ff0",
 "api-supported-versions": "1.0",
 "X-Cache": "CONFIG_NOCACHE",
 "X-Azure-Ref": "0hQ2JZAAAAAC9qxV3hqcuTrzvkvZWqNJ+TUVMMDFFREdFMjExMQAzOTcwZDFlNS1kODBiLTQ2NWEtYjM1Yi0wNzBjMDE2ZWU0NzI=",
 "Timing-Allow-Origin": "*",
 "x-ms-apihub-cached-response": "false",
 "x-ms-apihub-obo": "false",
 "Cache-Control": "no-store, no-cache",
 "Date": "Wed, 14 Jun 2023 00:44:59 GMT",
 "X-Powered-By": "ASP.NET",
 "Content-Length": "356",
 "Content-Type": "application/json"
 },
 "body": {
 "HttpStatusCode": 400,
 "HttpStatusMessage": "Bad request",
 "OperationId": "7ba9166b-3022-42e7-bb94-961e21ecfb40\\1",
 "Errors": [
 "The following error occurred populating the word document provided: Object reference not set to an instance of an object."
 ],
 "OperationStatus": "Error"
 }
}

 

JSON:

{"formContent":[{"content":"I have removed the content here but it was base64 from the Get File Content action."}]}

 

And this is what the word template looks like:

BradonK_0-1686703929586.png

 

 

Appreciate any help,

 

Thanks

Categories:
I have the same question (0)
  • SudeepGhatakNZ Profile Picture
    14,396 Most Valuable Professional on at

    Alex should be able to help.

     

    @AlexEncodian 

  • BradonK Profile Picture
    375 on at

    @AlexEncodian 

     

    I'm getting a different error after fixing the text box like you mentioned.

    "Errors": [
     "The following error occurred populating the word document provided: An error has been encountered at the end of expression 'value.content]>'. Can not get the value of member 'content' on type 'System.String'."
     ]

     

    This means an error with the JSON right?

     

    Thanks

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 594

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 281 Super User 2026 Season 1

Last 30 days Overall leaderboard