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 / 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,394 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

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 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard