cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Bubba
Level: Powered On

Invalid Template - 'shared_connection' doesn't exist

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)

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

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,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Community Support Team
Community Support Team

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,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
firstImage

Better Together Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Users online (7,833)