Skip to main content

Notifications

Power Automate - Using Connectors
Answered

Invalid Template - 'shared_connection' doesn't exist

(0) ShareShare
ReportReport
Posted on by 19

I need some guidance on the "InvalidTemplate...cannot be evaluated because the property [shared connector] doesn't exist" issue. 

 

Here's the current error message:

InvalidTemplate. Unable to process template language expressions in action 'Get_file_content' inputs at line '1' and column '2048': 'The template language expression 'json(decodeBase64(triggerOutputs().headers['X-MS-APIM-Tokens']))['$connections']['shared_onedriveforbusiness']['connectionId']' cannot be evaluated because property 'shared_onedriveforbusiness' doesn't exist, available properties are 'shared_sql'. Please see https://aka.ms/logicexpressions for usage details.'.

 

It appears the 'onedriveforbusiness' connector disappeared.  The other connector 'shared_sql' is still available.

 

I began to receive this message after modifying the filename in the OneDrive 'Get File content' action.  I have also received a similar error if I attempt to utilize the 'Populate a Word template' action in place of the 'get file content' action.

 

I have tried the following:  

  • delete and re-add the actions
  • Tried different actions ('OneDrive get file content' and 'populate a word template')
  • Deleting and re-adding the OneDrive for Business and Populate a Word Template data connections

Here's my flow.  Everything works as expected until the 'get file content' action.

Capture1.JPG

Any insight would be appreciated.  

 

(p.s.  I have not re-built the entire flow from scratch)

  • Verified answer
    v-bacao-msft Profile Picture
    v-bacao-msft on at
    Re: Invalid Template - 'shared_connection' doesn't exist

    Hi @Bubba ,

     

    This is due to the addition of a new connector (OneDrive for Business) in the exist Flow, so a similar error may occur.

    You could try to solve this problem using the following methods:

    • Export the Flow to a .zip file, and then re-import it as a new Flow. After configuring the connection, Flow will work normally. If you don't find Export option, do this in MS Flow portal.
    • Another way is to reconfigure such a Flow so that the problem can be solved.

    Please take a try and let me know if issue still exists.

     

    Best Regards,

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,343

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,703

Leaderboard

Featured topics